summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-08-24 18:40:19 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-08-24 22:31:50 -0400
commitadd0623764a32547ebb7fda010f508ce3c242bf7 (patch)
tree9e729e8a7052e45e4b760992e16213400fcf0ca8
parent1a322af203cb5af4d63f8aab7200b508d14420ff (diff)
downloadperl-add0623764a32547ebb7fda010f508ce3c242bf7.tar.gz
Configure scan for fp_classify().
-rwxr-xr-xConfigure6
-rw-r--r--Cross/config.sh-arm-linux1
-rw-r--r--NetWare/config.wc1
-rw-r--r--Porting/Glossary4
-rw-r--r--Porting/config.sh1
-rwxr-xr-xconfig_h.SH13
-rw-r--r--configure.com1
-rw-r--r--plan9/config_sh.sample1
-rw-r--r--symbian/config.sh1
-rw-r--r--uconfig.h17
-rw-r--r--uconfig.sh1
-rw-r--r--uconfig64.sh1
-rw-r--r--win32/config.ce1
-rw-r--r--win32/config.gc1
-rw-r--r--win32/config.vc1
15 files changed, 49 insertions, 2 deletions
diff --git a/Configure b/Configure
index 90094aaee5..651d3af45c 100755
--- a/Configure
+++ b/Configure
@@ -469,6 +469,7 @@ d_flock=''
d_flockproto=''
d_fork=''
d_fp_class=''
+d_fp_classify=''
d_fpclass=''
d_fpclassify=''
d_fpclassl=''
@@ -13706,6 +13707,10 @@ eval $inlibc
set fpclassify d_fpclassify
eval $inlibc
+: see if fp_classify exists
+set fpclassify d_fp_classify
+eval $inlibc
+
: see if fpclassl exists
set fpclassl d_fpclassl
eval $inlibc
@@ -23228,6 +23233,7 @@ d_flock='$d_flock'
d_flockproto='$d_flockproto'
d_fork='$d_fork'
d_fp_class='$d_fp_class'
+d_fp_classify='$d_fp_class'
d_fpathconf='$d_fpathconf'
d_fpclass='$d_fpclass'
d_fpclassify='$d_fpclassify'
diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux
index bb9821bb3f..930002fed5 100644
--- a/Cross/config.sh-arm-linux
+++ b/Cross/config.sh-arm-linux
@@ -199,6 +199,7 @@ d_flock='define'
d_flockproto='define'
d_fork='define'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='define'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/NetWare/config.wc b/NetWare/config.wc
index a8fa0364bc..a4fc0d6673 100644
--- a/NetWare/config.wc
+++ b/NetWare/config.wc
@@ -187,6 +187,7 @@ d_flock='define'
d_flockproto='undef'
d_fork='undef'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/Porting/Glossary b/Porting/Glossary
index 7bd9a408f2..f36b0b62c5 100644
--- a/Porting/Glossary
+++ b/Porting/Glossary
@@ -838,6 +838,10 @@ d_fp_class (d_fp_class.U):
This variable conditionally defines the HAS_FP_CLASS symbol, which
indicates to the C program that the fp_class() routine is available.
+d_fp_classify (d_fp_classify.U):
+ This variable conditionally defines the HAS_FP_CLASSIFY symbol, which
+ indicates to the C program that the fp_classify() routine is available.
+
d_fpathconf (d_pathconf.U):
This variable conditionally defines the HAS_FPATHCONF symbol, which
indicates to the C program that the pathconf() routine is available
diff --git a/Porting/config.sh b/Porting/config.sh
index 4a74968eda..2b285ddfd5 100644
--- a/Porting/config.sh
+++ b/Porting/config.sh
@@ -208,6 +208,7 @@ d_flock='define'
d_flockproto='define'
d_fork='define'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='define'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/config_h.SH b/config_h.SH
index f8c4fed675..8d09829963 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -3561,6 +3561,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
#$d_fp_class HAS_FP_CLASS /**/
+/* HAS_FP_CLASSIFY:
+ * This symbol, if defined, indicates that the fp_classify routine is
+ * available to classify doubles.
+ * The returned values are defined in <math.h> and are:
+ *
+ * FP_NAN
+ * FP_INFINITE
+ * FP_NORMAL
+ * FP_SUBNORMAL
+ * FP_ZERO
+ */
+#$d_fp_classify HAS_FP_CLASSIFY /**/
+
/* HAS_FPCLASS:
* This symbol, if defined, indicates that the fpclass routine is
* available to classify doubles. Available for example in Solaris/SVR4.
diff --git a/configure.com b/configure.com
index 479b4ba33d..e5c967fe2d 100644
--- a/configure.com
+++ b/configure.com
@@ -5981,6 +5981,7 @@ $ WC "d_flock='undef'"
$ WC "d_flockproto='undef'"
$ WC "d_fork='undef'"
$ WC "d_fp_class='undef'"
+$ WC "d_fp_classify='undef'"
$ WC "d_fpathconf='" + d_fpathconf + "'"
$ WC "d_fpclass='undef'"
$ WC "d_fpclassify='undef'"
diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample
index 1417b4d3db..c70d96baae 100644
--- a/plan9/config_sh.sample
+++ b/plan9/config_sh.sample
@@ -199,6 +199,7 @@ d_flock='undef'
d_flockproto='undef'
d_fork='define'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='define'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/symbian/config.sh b/symbian/config.sh
index 52cae85788..754bb1e445 100644
--- a/symbian/config.sh
+++ b/symbian/config.sh
@@ -143,6 +143,7 @@ d_flock='undef'
d_flockproto='undef'
d_fork='undef'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/uconfig.h b/uconfig.h
index 522e960878..88b443a73f 100644
--- a/uconfig.h
+++ b/uconfig.h
@@ -3526,6 +3526,19 @@
*/
/*#define HAS_FP_CLASS / **/
+/* HAS_FP_CLASSIFY:
+ * This symbol, if defined, indicates that the fp_classify routine is
+ * available to classify doubles.
+ * The returned values are defined in <math.h> and are:
+ *
+ * FP_NAN
+ * FP_INFINITE
+ * FP_NORMAL
+ * FP_SUBNORMAL
+ * FP_ZERO
+ */
+/*#define HAS_FP_CLASSIFY / **/
+
/* HAS_FPCLASS:
* This symbol, if defined, indicates that the fpclass routine is
* available to classify doubles. Available for example in Solaris/SVR4.
@@ -4782,6 +4795,6 @@
#endif
/* Generated from:
- * 3a8b6e52ff62682a65ae8226490afb36ea008df0a79fd0d937208d700652f767 config_h.SH
- * 3d7a2b8d30cfcbe1bd9cc89f0f87458c63713edef6604af2eb999f63eb6db629 uconfig.sh
+ * eea1777e1cae43debb19e13948791a5e43ed8c3926cdd93fe13a15f1ac584f99 config_h.SH
+ * 5e0d1abf03833f9d8aac2f5eb4332356c3503d1f0538f03cd9078423015eed73 uconfig.sh
* ex: set ro: */
diff --git a/uconfig.sh b/uconfig.sh
index 8245138a57..a11aedc7a5 100644
--- a/uconfig.sh
+++ b/uconfig.sh
@@ -137,6 +137,7 @@ d_flock='undef'
d_flockproto='undef'
d_fork='define'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/uconfig64.sh b/uconfig64.sh
index 2d4b7e479d..68b55098a3 100644
--- a/uconfig64.sh
+++ b/uconfig64.sh
@@ -138,6 +138,7 @@ d_flock='undef'
d_flockproto='undef'
d_fork='define'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/win32/config.ce b/win32/config.ce
index eef6ea8599..2ce82731dc 100644
--- a/win32/config.ce
+++ b/win32/config.ce
@@ -185,6 +185,7 @@ d_flock='undef'
d_flockproto='undef'
d_fork='undef'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/win32/config.gc b/win32/config.gc
index e772c77e1d..08eab23b71 100644
--- a/win32/config.gc
+++ b/win32/config.gc
@@ -186,6 +186,7 @@ d_flock='define'
d_flockproto='define'
d_fork='undef'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'
diff --git a/win32/config.vc b/win32/config.vc
index 66c5ec7fbc..d2f0b74b7e 100644
--- a/win32/config.vc
+++ b/win32/config.vc
@@ -186,6 +186,7 @@ d_flock='define'
d_flockproto='define'
d_fork='undef'
d_fp_class='undef'
+d_fp_classify='undef'
d_fpathconf='undef'
d_fpclass='undef'
d_fpclassify='undef'