failure to detect format of `double' on MS-Windows
Vincent Lefevre
vincent at vinc17.net
Wed Sep 4 13:16:34 UTC 2019
Hi,
With 17862:b1ea8c11ae1e, I get:
$ ./configure '--host=i586-mingw32msvc' '--disable-shared' 'host_alias=i586-mingw32msvc'
[...]
checking format of `double' floating point... od: conftest: No such file or directory
od: conftest: No such file or directory
unknown
configure: WARNING: Could not determine float format.
configure: WARNING: Conversions to and from "double" may be slow.
[...]
One needs to change "conftest" to "conftest$EXEEXT".
Patch attached.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
-------------- next part --------------
diff -r b1ea8c11ae1e acinclude.m4
--- a/acinclude.m4 Wed Sep 04 06:18:08 2019 +0200
+++ b/acinclude.m4 Wed Sep 04 15:15:00 2019 +0200
@@ -3316,7 +3316,7 @@
return 0;
}]
EOF
-gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest >&AC_FD_CC 2>&1"
+gmp_compile="$CC $CFLAGS $CPPFLAGS conftest.c -o conftest$EXEEXT >&AC_FD_CC 2>&1"
if AC_TRY_EVAL(gmp_compile); then
cat >conftest.awk <<\EOF
[
@@ -3469,11 +3469,11 @@
}
]
EOF
- gmp_cv_c_double_format=`od -b conftest | $AWK -f conftest.awk`
+ gmp_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk`
case $gmp_cv_c_double_format in
unknown*)
- echo "cannot match anything, conftest contains" >&AC_FD_CC
- od -b conftest >&AC_FD_CC
+ echo "cannot match anything, conftest$EXEEXT contains" >&AC_FD_CC
+ od -b conftest$EXEEXT >&AC_FD_CC
;;
esac
else
More information about the gmp-bugs
mailing list