if zlib version >= 1.2.5... no
This was fixed (independently?) in r-devel today: Peter-Dalgaards-MacBook-Air:R pd$ svn log m4/R.m4 | head ------------------------------------------------------------------------ r71889 | lawrence | 2017-01-04 04:57:31 +0100 (Wed, 04 Jan 2017) | 4 lines R_ZLIB macro tests ZLIB_VERNUM to handle zlib 1.2.10 (6 chars) Thanks to George Hartzell for the fix. --- -pd
On 04 Jan 2017, at 17:09 , bastl73 <bastl73 at freenet.de> wrote: Configuring R with zlib-1.2.10 I get this error: checking for zlib.h... yes checking if zlib version >= 1.2.5... no checking whether zlib support suffices... configure: error: zlib library and headers are required So I asked Mark from zlib about this problem and he wrote back:
exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0);
strcmp("1.2.10", "1.2.5") will indicate incorrectly that the 1.2.10 is *less* than
1.2.5. This is why there is ZLIB_VERNUM, which is a number that can be compared. So
it should be simply:
exit(ZLIB_VERNUM < 0x1250);
bastl
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com