configure: fix check for sys/sysmacros.h under glibc 2.25+
authorAndrei Borzenkov <arvidjaar@gmail.com>
Thu, 22 Dec 2016 19:48:25 +0000 (22:48 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Thu, 22 Dec 2016 19:48:25 +0000 (22:48 +0300)
commit07662af7aed55bcec448bc2a6610de1f0cb62100
treea28f800543709ffbec332a9fe72d7afa87613be0
parent562c406763d6c078ccf9fad1058e6d618b2456da
configure: fix check for sys/sysmacros.h under glibc 2.25+

glibc 2.25 still includes sys/sysmacros.h in sys/types.h but also emits
deprecation warning. So test for sys/types.h succeeds in configure but later
compilation fails because we use -Werror by default.

While this is fixed in current autoconf GIT, we really cannot force everyone
to use bleeding edge (that is not even released right now). So run test under
-Werror as well to force proper detection.

This should have no impact on autoconf 2.70+ as AC_HEADER_MAJOR in this version
simply checks for header existence.

Reported and tested by Khem Raj <raj.khem@gmail.com>
configure.ac