summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-02 12:34:15 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-02 12:34:15 +0000
commitea1c3b150ce191b041ad84959779a59b7c82a839 (patch)
tree0b0ffc0b23c20c2e8a645e4ef057d5f849bc7d07 /Configure
parentf478a152c3d5384f11edf751ff2ce0dcae3ebde5 (diff)
downloadperl-ea1c3b150ce191b041ad84959779a59b7c82a839.tar.gz
Allow also non-long long but still quad platforms print quads.
p4raw-id: //depot/cfgperl@3885
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure52
1 files changed, 24 insertions, 28 deletions
diff --git a/Configure b/Configure
index b71c18d86e..1e17dd4cb1 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 Mon Aug 2 13:06:47 EET DST 1999 [metaconfig 3.0 PL70]
+# Generated on Mon Aug 2 15:32:21 EET DST 1999 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.com)
cat >/tmp/c1$$ <<EOF
@@ -6709,8 +6709,7 @@ $rm -f try.c try
echo " "
-case "$d_longlong" in
-$define)
+if $test X"$intsize" = X8 -o X"$longsize" = X8 -o X"$d_int64t" = X"$define" -o X"$d_longlong" = X"$define"; then
echo "Checking how to print 64-bit integers..." >&4
@@ -6855,8 +6854,9 @@ if $test X"$sPRId64" = X; then
echo "Cannot figure out how to print 64-bit integers." >&4
fi
-;;
-esac # case "$d_longlong"
+$rm -f try try.*
+
+fi # intsize -o longsize -o d_int64t -o d_longlong
case "$sPRId64" in
'') d_PRId64="$undef"; d_PRIi64="$undef"; d_PRIu64="$undef";
@@ -6867,8 +6867,6 @@ case "$sPRId64" in
;;
esac
-$rm -f try try.*
-
: check for length of double
echo " "
case "$doublesize" in
@@ -6944,8 +6942,7 @@ $rm -f try.c try
echo " "
-case "$d_longdbl" in
-$define)
+if $test X"$d_longdbl" = X"$define"; then
echo "Checking how to print long doubles..." >&4
@@ -6977,7 +6974,7 @@ if $test X"$sPRIfldbl" = X; then
#include <stdio.h>
int main() {
long double d = 123.456;
- printf("%.3Lf\n", d);
+ printf("%.3llf\n", d);
}
EOCP
set try
@@ -6985,21 +6982,25 @@ EOCP
yyy=`./try$exe_ext`
case "$yyy" in
123.456)
- sPRIfldbl='"Lf"'; sPRIgldbl='"Lg"'; sPRIeldbl='"Le"';
- sPRIFldbl='"LF"'; sPRIGldbl='"LG"'; sPRIEldbl='"LE"';
- echo "We will use %Lf."
+ sPRIfldbl='"llf"'; sPRIgldbl='"llg"'; sPRIeldbl='"lle"';
+ sPRIFldbl='"llF"'; sPRIGldbl='"llG"'; sPRIEldbl='"llE"';
+ echo "We will use %llf."
;;
esac
fi
fi
if $test X"$sPRIfldbl" = X; then
+ echo "Cannot figure out how to print long doubles." >&4
+fi
+
+if $test X"$sPRIfldbl" = X; then
$cat >try.c <<'EOCP'
#include <sys/types.h>
#include <stdio.h>
int main() {
long double d = 123.456;
- printf("%.3lf\n", d);
+ printf("%.3Lf\n", d);
}
EOCP
set try
@@ -7007,9 +7008,9 @@ EOCP
yyy=`./try$exe_ext`
case "$yyy" in
123.456)
- sPRIfldbl='"lf"'; sPRIgldbl='"lg"'; sPRIeldbl='"le"';
- sPRIFldbl='"lF"'; sPRIGldbl='"lG"'; sPRIEldbl='"lE"';
- echo "We will use %lf."
+ sPRIfldbl='"Lf"'; sPRIgldbl='"Lg"'; sPRIeldbl='"Le"';
+ sPRIFldbl='"LF"'; sPRIGldbl='"LG"'; sPRIEldbl='"LE"';
+ echo "We will use %Lf."
;;
esac
fi
@@ -7021,7 +7022,7 @@ if $test X"$sPRIfldbl" = X; then
#include <stdio.h>
int main() {
long double d = 123.456;
- printf("%.3llf\n", d);
+ printf("%.3lf\n", d);
}
EOCP
set try
@@ -7029,20 +7030,17 @@ EOCP
yyy=`./try$exe_ext`
case "$yyy" in
123.456)
- sPRIfldbl='"llf"'; sPRIgldbl='"llg"'; sPRIeldbl='"lle"';
- sPRIFldbl='"llF"'; sPRIGldbl='"llG"'; sPRIEldbl='"llE"';
- echo "We will use %llf."
+ sPRIfldbl='"lf"'; sPRIgldbl='"lg"'; sPRIeldbl='"le"';
+ sPRIFldbl='"lF"'; sPRIGldbl='"lG"'; sPRIEldbl='"lE"';
+ echo "We will use %lf."
;;
esac
fi
fi
-if $test X"$sPRIfldbl" = X; then
- echo "Cannot figure out how to print long doubles." >&4
-fi
+$rm -f try try.*
-;;
-esac # case "$d_longdbl"
+fi # d_longdbl
case "$sPRIfldbl" in
'') d_PRIfldbl="$undef"; d_PRIgldbl="$undef"; d_PRIeldbl="$undef";
@@ -7053,8 +7051,6 @@ case "$sPRIfldbl" in
;;
esac
-$rm -f try try.*
-
: Initialize h_fcntl
h_fcntl=false