1# This file is generated from configure.ac by Autoconf. DO NOT EDIT! 2 # Local configure fragment for sysdeps/unix/sysv/linux. 3 4if test -n "$sysheaders"; then 5 OLD_CPPFLAGS=$CPPFLAGS 6 CPPFLAGS="$CPPFLAGS $SYSINCLUDES" 7fi 8 9 10{ $as_echo "$as_me:${as_lineno-$LINENO}: checking installed Linux kernel header files" >&5 11$as_echo_n "checking installed Linux kernel header files... " >&6; } 12if ${libc_cv_linux320+:} false; then : 13 $as_echo_n "(cached) " >&6 14else 15 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16/* end confdefs.h. */ 17#include <linux/version.h> 18#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < (3 *65536+ 2 *256+ 0) /* 3.2.0 */ 19# error kernel headers missing or too old 20#endif 21int 22main () 23{ 24 25 ; 26 return 0; 27} 28_ACEOF 29if ac_fn_c_try_cpp "$LINENO"; then : 30 libc_cv_linux320='3.2.0 or later' 31else 32 libc_cv_linux320='missing or too old!' 33fi 34rm -f conftest.err conftest.i conftest.$ac_ext 35fi 36{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_linux320" >&5 37$as_echo "$libc_cv_linux320" >&6; } 38if test "$libc_cv_linux320" != '3.2.0 or later'; then 39 as_fn_error $? "GNU libc requires kernel header files from 40Linux 3.2.0 or later to be installed before configuring. 41The kernel header files are found usually in /usr/include/asm and 42/usr/include/linux; make sure these directories use files from 43Linux 3.2.0 or later. This check uses <linux/version.h>, so 44make sure that file was built correctly when installing the kernel header 45files. To use kernel headers not from /usr/include/linux, use the 46configure option --with-headers." "$LINENO" 5 47fi 48 49# If the user gave a minimal version number test whether the available 50# kernel headers are young enough. Additionally we have minimal 51# kernel versions for some architectures. If a previous configure fragment 52# set arch_minimum_kernel already, let that override our defaults here. 53# Note that we presume such a fragment has set libc_cv_gcc_unwind_find_fde 54# if appropriate too. 55test -n "$arch_minimum_kernel" || arch_minimum_kernel=3.2.0 56if test -n "$minimum_kernel"; then 57 58 user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`)) 59 arch_version=$((`echo "$arch_minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`)) 60 61 if test $user_version -lt $arch_version; then 62 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: minimum kernel version reset to $arch_minimum_kernel" >&5 63$as_echo "$as_me: WARNING: minimum kernel version reset to $arch_minimum_kernel" >&2;} 64 minimum_kernel=$arch_minimum_kernel 65 fi 66else 67 minimum_kernel=$arch_minimum_kernel 68fi 69 70{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel header at least $minimum_kernel" >&5 71$as_echo_n "checking for kernel header at least $minimum_kernel... " >&6; } 72decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`; 73abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`; 74cat confdefs.h - <<_ACEOF >conftest.$ac_ext 75/* end confdefs.h. */ 76#include <linux/version.h> 77#if LINUX_VERSION_CODE < $decnum 78# error kernel headers too old 79#endif 80int 81main () 82{ 83 84 ; 85 return 0; 86} 87_ACEOF 88if ac_fn_c_try_cpp "$LINENO"; then : 89 libc_minimum_kernel=ok 90else 91 libc_minimum_kernel='too old!' 92fi 93rm -f conftest.err conftest.i conftest.$ac_ext 94{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_minimum_kernel" >&5 95$as_echo "$libc_minimum_kernel" >&6; } 96if test "$libc_minimum_kernel" = ok; then 97 cat >>confdefs.h <<_ACEOF 98#define __LINUX_KERNEL_VERSION $decnum 99_ACEOF 100 101 cat >>confdefs.h <<_ACEOF 102#define __ABI_TAG_VERSION $abinum 103_ACEOF 104 105else 106 as_fn_error $? "*** The available kernel headers are older than the requested 107*** compatible kernel version" "$LINENO" 5 108fi 109 110if test -n "$sysheaders"; then 111 CPPFLAGS=$OLD_CPPFLAGS 112fi 113 114if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then 115 if test $enable_sanity = yes; then 116 echo "\ 117*** On GNU/Linux systems the GNU C Library should not be installed into 118*** /usr/local since this might make your system totally unusable. 119*** We strongly advise to use a different prefix. For details read the FAQ. 120*** If you really mean to do this, run configure again using the extra 121*** parameter \`--disable-sanity-checks'." 122 exit 1 123 else 124 echo "\ 125*** WARNING: Do you really want to install the GNU C Library into /usr/local? 126*** This might make your system totally unusable, for details read the FAQ." 127 fi 128fi 129 130 131# One Linux we use ldconfig. 132use_ldconfig=yes 133 134if test $host = $build; then 135 # If $prefix/include/{net,scsi} are symlinks, make install will 136 # clobber what they're linked to (probably a kernel tree). 137 # test -L ought to work on all Linux boxes. 138 if test "x$prefix" != xNONE; then 139 ac_prefix=$prefix 140 else 141 ac_prefix=$ac_default_prefix 142 fi 143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlinks in ${ac_prefix}/include" >&5 144$as_echo_n "checking for symlinks in ${ac_prefix}/include... " >&6; } 145 ac_message= 146 if test -L ${ac_prefix}/include/net; then 147 ac_message="$ac_message 148 ${ac_prefix}/include/net is a symlink" 149 fi 150 if test -L ${ac_prefix}/include/scsi; then 151 ac_message="$ac_message 152 ${ac_prefix}/include/scsi is a symlink" 153 fi 154 if test -n "$ac_message"; then 155 as_fn_error $? "$ac_message 156\`make install' will destroy the target of the link(s). 157Delete the links and re-run configure, or better still, move the entire 158${ac_prefix}/include directory out of the way." "$LINENO" 5 159 else 160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 161$as_echo "ok" >&6; } 162 fi 163fi 164 165# We have inlined syscalls. 166$as_echo "#define HAVE_INLINED_SYSCALLS 1" >>confdefs.h 167 168