]> sourceware.org Git - glibc.git/blame - sysdeps/unix/sysv/linux/configure
Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[glibc.git] / sysdeps / unix / sysv / linux / configure
CommitLineData
564210fe 1 # Local configure fragment for sysdeps/unix/sysv/linux.
96aa2d94 2
564210fe 3# On Linux, the default is to use libio instead of stdio.
96aa2d94 4test $stdio = default && stdio=libio
b86199fb
RM
5
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.
8inhibit_glue=yes
564210fe
RM
9
10echo $ac_n "checking installed Linux kernel header files""... $ac_c" 1>&6
036cc82f 11if eval "test \"`echo '$''{'libc_cv_linux203'+set}'`\" = set"; then
564210fe
RM
12 echo $ac_n "(cached) $ac_c" 1>&6
13else
14 cat > conftest.$ac_ext <<EOF
15#line 16 "configure"
16#include "confdefs.h"
17#include <linux/version.h>
18int main() { return 0; }
19int t() {
036cc82f 20#if LINUX_VERSION_CODE < (2 *65536+ 0 *256+ 3) /* 2.0.3 */
564210fe
RM
21eat flaming death
22#endif
23; return 0; }
24EOF
25if { (eval echo configure:26: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26 rm -rf conftest*
036cc82f 27 libc_cv_linux203='2.0.3 or later'
564210fe
RM
28else
29 rm -rf conftest*
036cc82f 30 libc_cv_linux203='TOO OLD!'
564210fe
RM
31fi
32rm -f conftest*
33
34fi
35
036cc82f
RM
36echo "$ac_t""$libc_cv_linux203" 1>&6
37if test "$libc_cv_linux203" != '2.0.3 or later'; then
38 { echo "configure: error: GNU libc requires kernel header files from
39Linux 2.0.3 or later to be installed before configuring.
40The kernel header files are found usually in /usr/include/asm and
41/usr/include/linux; make sure these directories use files from
42Linux 2.0.3 or later. This check uses <linux/version.h>, so
43make sure that file was built correctly when installing the kernel header
44files." 1>&2; exit 1; }
564210fe 45fi
This page took 0.048967 seconds and 5 git commands to generate.