Require Linux kernel 3.2 or later on x86 / x86_64.
[glibc.git] / sysdeps / unix / sysv / linux / i386 / configure.ac
blob9e980784bb826463b448ce823a8cc0e22ab8d645
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/unix/sysv/linux/i386.
4 # Check if CFLAGS allows compiler to use ebp register in inline assembly.
5 AC_CACHE_CHECK([if compiler flags allows ebp in inline assembly],
6                 libc_cv_can_use_register_asm_ebp, [
7 AC_COMPILE_IFELSE(
8   [AC_LANG_PROGRAM([
9     void foo (int i)
10     {
11       register int reg asm ("ebp") = i;
12       asm ("# %0" : : "r" (reg));
13     }])],
14   [libc_cv_can_use_register_asm_ebp=yes],
15   [libc_cv_can_use_register_asm_ebp=no])
17 if test $libc_cv_can_use_register_asm_ebp = yes; then
18   AC_DEFINE(CAN_USE_REGISTER_ASM_EBP)
21 libc_cv_gcc_unwind_find_fde=yes
22 ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed