From ea1c3b150ce191b041ad84959779a59b7c82a839 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Mon, 2 Aug 1999 12:34:15 +0000 Subject: [PATCH] Allow also non-long long but still quad platforms print quads. p4raw-id: //depot/cfgperl@3885 --- Configure | 52 ++++++++++++++++++++++++---------------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/Configure b/Configure index b71c18d..1e17dd4 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$$ <&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 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 #include 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 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 -- 2.7.4