1 sinclude(./aclocal.m4)dnl Autoconf lossage
2 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 # Local configure fragment for sysdeps/unix/sysv/linux.
5 # On Linux, the default is to use libio instead of stdio.
6 test $stdio = default && stdio=libio
8 # Don't bother trying to generate any glue code to be compatible with the
9 # existing system library, because we are the only system library.
12 AC_CACHE_CHECK(installed Linux kernel header files, libc_cv_linux201, [dnl
13 AC_TRY_COMPILE([#include <linux/version.h>],
14 [#if LINUX_VERSION_CODE < (2 *65536+ 0 *256+ 1) /* 2.0.1 */
17 libc_cv_linux201='2.0.1 or later',
18 libc_cv_linux201='TOO OLD!')])
19 if test "$libc_cv_linux201" != '2.0.1 or later'; then
20 AC_MSG_ERROR([GNU libc requires kernel header files from Linux 2.0.1
21 or later to be installed before configuring. The kernel header files
22 are found usually in /usr/include/asm and /usr/include/linux; make sure
23 these directories use files from Linux 2.0.1 or later. This check uses
24 <linux/version.h>, so make sure that file was built correctly when
25 installing the kernel header files.])