diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-11 11:55:01 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-13 22:20:26 -0400 |
commit | 688e39e5be03cbe5de5756e5f52d834807649477 (patch) | |
tree | 135ea1551e043a67510ac458cac05de5a5009816 | |
parent | dc91db6cfbf31ad1bbc0d43f7c74251f6411d2d2 (diff) | |
download | perl-688e39e5be03cbe5de5756e5f52d834807649477.tar.gz |
Configure scan for ldexpl
-rwxr-xr-x | Configure | 9 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 1 | ||||
-rw-r--r-- | NetWare/config.wc | 1 | ||||
-rw-r--r-- | Porting/Glossary | 4 | ||||
-rw-r--r-- | Porting/config.sh | 1 | ||||
-rwxr-xr-x | config_h.SH | 7 | ||||
-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 | 17 | ||||
-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, 48 insertions, 2 deletions
@@ -585,6 +585,7 @@ d_isnanl='' d_killpg='' d_lchown='' d_ldbl_dig='' +d_ldexpl='' d_libm_lib_version='' d_link='' d_localtime_r='' @@ -15427,6 +15428,10 @@ $rm -f ldbl_dig.? set d_ldbl_dig eval $setvar +: see if ldexpl exists +set ldexpl d_ldexpl +eval $inlibc + : see if this is a math.h system set math.h i_math eval $inhdr @@ -15793,6 +15798,9 @@ if $test "$uselongdouble" = "$define"; then message="$message frexpl" fi fi + if $test "$d_ldexpl" != "$define"; then + message="$message ldexpl" + fi if $test "$message" != ""; then $cat <<EOM >&4 @@ -23308,6 +23316,7 @@ d_isnanl='$d_isnanl' d_killpg='$d_killpg' d_lchown='$d_lchown' d_ldbl_dig='$d_ldbl_dig' +d_ldexpl='$d_ldexpl' d_libm_lib_version='$d_libm_lib_version' d_libname_unique='$d_libname_unique' d_link='$d_link' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index e0ba68b2a8..abccb2c7a2 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -300,6 +300,7 @@ d_isnanl='define' d_killpg='define' d_lchown='define' d_ldbl_dig='define' +d_ldexpl='define' d_libm_lib_version='define' d_link='define' d_localtime64='undef' diff --git a/NetWare/config.wc b/NetWare/config.wc index 54b4c9d453..fde25b164c 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -289,6 +289,7 @@ d_isnanl='undef' d_killpg='undef' d_lchown='undef' d_ldbl_dig='define' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='define' d_localtime64='undef' diff --git a/Porting/Glossary b/Porting/Glossary index 99cef06a97..eb50a61e77 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -1336,6 +1336,10 @@ d_ldbl_dig (d_ldbl_dig.U): header files provide LDBL_DIG, which is the number of significant digits in a long double precision number. +d_ldexpl (d_ldexpl.U): + This variable conditionally defines the HAS_LDEXPL symbol, which + indicates to the C program that the ldexpl() routine is available. + d_libm_lib_version (d_libm_lib_version.U): This variable conditionally defines the LIBM_LIB_VERSION symbol, which indicates to the C program that math.h defines _LIB_VERSION diff --git a/Porting/config.sh b/Porting/config.sh index 1c30d0862b..6f76268348 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -309,6 +309,7 @@ d_isnanl='define' d_killpg='define' d_lchown='define' d_ldbl_dig='define' +d_ldexpl='define' d_libm_lib_version='define' d_libname_unique='undef' d_link='define' diff --git a/config_h.SH b/config_h.SH index ff7308e860..168feee160 100755 --- a/config_h.SH +++ b/config_h.SH @@ -3617,6 +3617,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$d_frexpl HAS_FREXPL /**/ +/* HAS_LDEXPL: + * This symbol, if defined, indicates that the ldexpl routine is + * available to shift a long double floating-point number + * by an integral power of 2. + */ +#$d_ldexpl HAS_LDEXPL /**/ + /* HAS_STRUCT_FS_DATA: * This symbol, if defined, indicates that the struct fs_data * to do statfs() is supported. diff --git a/configure.com b/configure.com index a147e5d7ae..ae7615596a 100644 --- a/configure.com +++ b/configure.com @@ -3343,6 +3343,7 @@ $ uquadtype = "unsigned long long" $ quadkind = "3" $! $ d_frexpl = "define" +$ d_ldexpl = "define" $ d_modfl = "define" $ d_modflproto = "define" $ ELSE @@ -3364,6 +3365,7 @@ $ uquadtype = "undef" $ quadkind = "undef" $! $ d_frexpl = "undef" +$ d_ldexpl = "undef" $ d_modfl = "undef" $ d_modflproto = "undef" $ ENDIF @@ -6063,6 +6065,7 @@ $ WC "d_isnanl='" + d_isnanl + "'" $ WC "d_killpg='undef'" $ WC "d_lchown='" + d_lchown + "'" $ WC "d_ldbl_dig='define'" +$ WC "d_ldexpl='" + d_ldexpl + "'" $ WC "d_libm_lib_version='undef'" $ WC "d_link='" + d_link + "'" $ WC "d_llseek='undef'" diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index c8ae07a32e..bbe15afc7b 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -300,6 +300,7 @@ d_isnanl='undef' d_killpg='undef' d_lchown='undef' d_ldbl_dig='define' +d_ldexpl='undef' d_libm_lib_version='0' d_link='define' d_localtime64='undef' diff --git a/symbian/config.sh b/symbian/config.sh index fa1249324b..27f5a5b54d 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -246,6 +246,7 @@ d_isnanl='undef' d_killpg='undef' d_lchown='undef' d_ldbl_dig='undef' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='undef' d_localtime64='undef' @@ -1906,6 +1906,9 @@ * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN + * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN + * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN + * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN * LONG_DOUBLE_IS_UNKNOWN_FORMAT * It is only defined if the system supports long doubles. */ @@ -1917,6 +1920,9 @@ #define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1 #define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2 #define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3 +#define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4 +#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN 5 +#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN 6 #define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1 #endif @@ -3576,6 +3582,13 @@ */ /*#define HAS_FREXPL / **/ +/* HAS_LDEXPL: + * This symbol, if defined, indicates that the ldexpl routine is + * available to shift a long double floating-point number + * by an integral power of 2. + */ +/*#define HAS_LDEXPL / **/ + /* HAS_STRUCT_FS_DATA: * This symbol, if defined, indicates that the struct fs_data * to do statfs() is supported. @@ -4757,6 +4770,6 @@ #endif /* Generated from: - * c4bf570c111b3c66095fb11639d17a0af192b7c0a37356b5aee77aba07159a26 config_h.SH - * bcda3e57ce7783c031fe7cc8670ceac0dd6344d01f9a36ede1b34c48cb7d4f21 uconfig.sh + * 5f68e17a9d9e989b824daf55d2adcad3b7af2becfa8f627c6cb1d0e376f7e1a5 config_h.SH + * 98397a7d818a024628d6b34e5903a8f408da96601a2a19471c480511f3c8d914 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index e840f3ea77..15fd327db3 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -239,6 +239,7 @@ d_isnanl='undef' d_killpg='undef' d_lchown='undef' d_ldbl_dig='undef' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='undef' d_localtime64='undef' diff --git a/uconfig64.sh b/uconfig64.sh index 600962b176..06537c3c5a 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -240,6 +240,7 @@ d_isnanl='undef' d_killpg='undef' d_lchown='undef' d_ldbl_dig='undef' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='undef' d_localtime64='undef' diff --git a/win32/config.ce b/win32/config.ce index aa8f756545..78254ee665 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -287,6 +287,7 @@ d_isnanl='undef' d_killpg='undef' d_lchown='undef' d_ldbl_dig='define' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='define' d_localtime64='undef' diff --git a/win32/config.gc b/win32/config.gc index 2cf0fb9be0..94e3596b75 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -287,6 +287,7 @@ d_isnanl='undef' d_killpg='define' d_lchown='undef' d_ldbl_dig='define' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='define' d_localtime64='undef' diff --git a/win32/config.vc b/win32/config.vc index 8ebdb617cf..a4ef3146bf 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -287,6 +287,7 @@ d_isnanl='undef' d_killpg='define' d_lchown='undef' d_ldbl_dig='define' +d_ldexpl='undef' d_libm_lib_version='undef' d_link='define' d_localtime64='undef' |