summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-06-04 14:29:17 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2020-06-04 14:29:17 +0000
commit3c5d92e155db70538990762b6c8374aa1e652950 (patch)
tree8ceca8009fa4d5fa08d972d855c62740c82e3c12 /acinclude.m4
parent061ccbceecb671facb073fda87435297441b1d5a (diff)
downloadmpfr-3c5d92e155db70538990762b6c8374aa1e652950.tar.gz
[acinclude.m4] Fixed r13938: the new MPFR_C_REALFP_FORMAT macro also
needs to take the printf length modifier in argument. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13939 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 6 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 956622362..981662b73 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -526,7 +526,7 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
LIBS="$saved_LIBS"
dnl Try to determine the format of double
-MPFR_C_REALFP_FORMAT(double)
+MPFR_C_REALFP_FORMAT(double,)
case $mpfr_cv_c_double_format in
"IEEE double, big endian"*)
AC_DEFINE(HAVE_DOUBLE_IEEE_BIG_ENDIAN, 1)
@@ -542,7 +542,7 @@ case $mpfr_cv_c_double_format in
esac
dnl Now try to determine the format of long double
-MPFR_C_REALFP_FORMAT(long double)
+MPFR_C_REALFP_FORMAT(long double,L)
case $mpfr_cv_c_long_double_format in
"IEEE double, big endian"*)
AC_DEFINE(HAVE_LDOUBLE_IS_DOUBLE, 1)
@@ -1104,8 +1104,9 @@ AC_DEFUN([MPFR_PARSE_DIRECTORY],
dnl MPFR_C_REALFP_FORMAT
dnl --------------------
-dnl Determine the format of a real floating type, actually either
-dnl double or long double.
+dnl Determine the format of a real floating type (first argument),
+dnl actually either double or long double. The second argument is
+dnl the printf length modifier.
dnl
dnl The object file is grepped, so as to work when cross-compiling.
dnl Start and end sequences are included to avoid false matches, and
@@ -1163,7 +1164,7 @@ foo_t foo = {
int main (void) {
int i;
for (i = 0; i < 8; i++)
- printf ("%d %Lf\n", foo.before[i] + foo.after[i], foo.x);
+ printf ("%d %$2f\n", foo.before[i] + foo.after[i], foo.x);
return 0;
}
]