* posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
[glibc.git] / sysdeps / unix / sysv / linux / configure
blobfd72c092adb4d6c702e1e0aafc8b88a8d373c715
1  # Local configure fragment for sysdeps/unix/sysv/linux.
3 # On Linux, the default is to use libio instead of stdio.
4 test $stdio = default && stdio=libio
6 # Don't bother trying to generate any glue code to be compatible with the
7 # existing system library, because we are the only system library.
8 inhibit_glue=yes
10 echo $ac_n "checking installed Linux kernel header files""... $ac_c" 1>&6
11 if eval "test \"`echo '$''{'libc_cv_linux201'+set}'`\" = set"; then
12   echo $ac_n "(cached) $ac_c" 1>&6
13 else
14   cat > conftest.$ac_ext <<EOF
15 #line 16 "configure"
16 #include "confdefs.h"
17 #include <linux/version.h>
18 int main() { return 0; }
19 int t() {
20 #if LINUX_VERSION_CODE < (2 *65536+ 0 *256+ 1) /* 2.0.1 */
21 eat flaming death
22 #endif
23 ; return 0; }
24 EOF
25 if { (eval echo configure:26: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26   rm -rf conftest*
27   libc_cv_linux201='2.0.1 or later'
28 else
29   rm -rf conftest*
30   libc_cv_linux201='TOO OLD!'
32 rm -f conftest*
36 echo "$ac_t""$libc_cv_linux201" 1>&6
37 if test "$libc_cv_linux201" != '2.0.1 or later'; then
38   { echo "configure: error: GNU libc requires kernel header files from Linux 2.0.1
39 or later to be installed before configuring.  The kernel header files
40 are found usually in /usr/include/asm and /usr/include/linux; make sure
41 these directories use files from Linux 2.0.1 or later.  This check uses
42 <linux/version.h>, so make sure that file was built correctly when
43 installing the kernel header files." 1>&2; exit 1; }