summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-05-08 16:21:33 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-05-08 16:21:33 +0000
commitbd026c32438ec68a31fc6a7281cbf547c5a94cb4 (patch)
tree248732939efc3fb7628de8b996e725c8541f7c54 /Configure
parent0e032a1475d1a4a03404d2ba818b180356b8a19d (diff)
downloadperl-bd026c32438ec68a31fc6a7281cbf547c5a94cb4.tar.gz
Introduce NV_PRESERVED_BITS. Not yet used anywhere but
might be useful in future. p4raw-id: //depot/cfgperl@6095
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure37
1 files changed, 36 insertions, 1 deletions
diff --git a/Configure b/Configure
index 3ce1072d72..f503e2d313 100755
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sun May 7 18:52:04 EET DST 2000 [metaconfig 3.0 PL70]
+# Generated on Mon May 8 19:06:18 EET DST 2000 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.com)
cat >/tmp/c1$$ <<EOF
@@ -792,6 +792,7 @@ version=''
perl5=''
perladmin=''
perlpath=''
+d_nv_preserved_bits=''
d_nv_preserves_uv=''
i16size=''
i16type=''
@@ -10190,6 +10191,39 @@ esac
$rm -f try.* try
+case "$d_nv_preserves_uv" in
+"$define") d_nv_preserved_bits=`expr $uvsize \* 8` ;;
+*) $echo "Checking how many bits of your UVs your NVs can preserve..." >&4
+ $cat <<EOP >try.c
+#include <stdio.h>
+int main() {
+ $uvtype u = 0;
+ int n = 8 * $uvsize;
+ int i;
+ for (i = 0; i < n; i++) {
+ u = u << 1 | ($uvtype)1;
+ if (($uvtype)($nvtype)u != u)
+ break;
+ }
+ printf("%d\n", i);
+ exit(0);
+}
+EOP
+ set try
+ if eval $compile; then
+ d_nv_preserved_bits="`./try$exe_ext`"
+ fi
+ case "$d_nv_preserved_bits" in
+ [1-9]*) $echo "Your NVs can preserve $d_nv_preserved_bits of your NVs." 2>&1 ;;
+ *) $echo "Can't figure out how many bits your NVs preserve." 2>&1
+ d_nv_preserved_bits="$undef"
+ ;;
+ esac
+ $rm -f try.* try
+ ;;
+esac
+
+
: check for off64_t
echo " "
@@ -15315,6 +15349,7 @@ d_msync='$d_msync'
d_munmap='$d_munmap'
d_mymalloc='$d_mymalloc'
d_nice='$d_nice'
+d_nv_preserved_bits='$d_nv_preserved_bits'
d_nv_preserves_uv='$d_nv_preserves_uv'
d_off64_t='$d_off64_t'
d_old_pthread_create_joinable='$d_old_pthread_create_joinable'