Re: buildconf and the generated configure script for PHP6 is faulty [the fix].
| From: | BuildSmart | Date: | Mon, 03 Sep 2007 22:10:40 +0000 |
| Subject: | Re: buildconf and the generated configure script for PHP6 is faulty [the fix]. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32027@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
For those interested in the fix.
ext/standard/config.m4:
dnl
dnl round fuzz
dnl
+AC_DEFUN([PHP_CHECK_ROUNDING_WORKS],[
AC_MSG_CHECKING([whether rounding works as expected])
AC_TRY_RUN([
#include <math.h>
/* keep this out-of-line to prevent use of gcc inline floor() */
double somefn(double n) {
return floor(n*pow(10,2) + 0.5);} int main() {
return somefn(0.045)/10.0 != 0.5;} ],[ PHP_ROUND_FUZZ=0.5 AC_MSG_RESULT(yes) ],[ PHP_ROUND_FUZZ=0.50000000001 AC_MSG_RESULT(no) ],[ PHP_ROUND_FUZZ=0.50000000001 AC_MSG_RESULT(cross compile) ]) AC_DEFINE_UNQUOTED(PHP_ROUND_FUZZ, $PHP_ROUND_FUZZ, [ see #24142 ]) +]) +PHP_CHECK_ROUNDING_WORKS -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (Darwin) iD8DBQFG3IZh0hzWbkf0eKgRAjsRAJ99kd45aNx3Ch53UAc6tHocYaSYtgCfUOUV shkWqcinQfP6no8fZ8iDaR4= =qfI+ -----END PGP SIGNATURE-----