mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Improve consistency of --enable-kernel and default builds.
This commit is contained in:
@@ -87,29 +87,25 @@ if test -n "$minimum_kernel"; then
|
||||
minimum_kernel=$arch_minimum_kernel
|
||||
fi
|
||||
else
|
||||
if test $arch_minimum_kernel != '2.2.0'; then
|
||||
minimum_kernel=$arch_minimum_kernel
|
||||
fi
|
||||
minimum_kernel=$arch_minimum_kernel
|
||||
fi
|
||||
|
||||
if test -n "$minimum_kernel"; then
|
||||
AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
|
||||
AC_MSG_CHECKING(for kernel header at least $minimum_kernel)
|
||||
changequote(,)dnl
|
||||
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
|
||||
abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
|
||||
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
|
||||
abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
|
||||
changequote([,])dnl
|
||||
AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
|
||||
AC_EGREP_CPP([eat flaming death], [#include <linux/version.h>
|
||||
#if LINUX_VERSION_CODE < $decnum
|
||||
eat flaming death
|
||||
#endif], libc_minimum_kernel='too old!', libc_minimum_kernel=ok)
|
||||
AC_MSG_RESULT($libc_minimum_kernel)
|
||||
if test "$libc_minimum_kernel" = ok; then
|
||||
AC_DEFINE_UNQUOTED(__LINUX_KERNEL_VERSION, $decnum)
|
||||
AC_DEFINE_UNQUOTED(__ABI_TAG_VERSION, $abinum)
|
||||
else
|
||||
AC_MSG_ERROR([*** The available kernel headers are older than the requested
|
||||
AC_MSG_RESULT($libc_minimum_kernel)
|
||||
if test "$libc_minimum_kernel" = ok; then
|
||||
AC_DEFINE_UNQUOTED(__LINUX_KERNEL_VERSION, $decnum)
|
||||
AC_DEFINE_UNQUOTED(__ABI_TAG_VERSION, $abinum)
|
||||
else
|
||||
AC_MSG_ERROR([*** The available kernel headers are older than the requested
|
||||
*** compatible kernel version])
|
||||
fi
|
||||
fi
|
||||
|
||||
# The result of the above test for the use of the FDE code is invalid if
|
||||
|
||||
Reference in New Issue
Block a user