about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/configure')
-rw-r--r--sysdeps/unix/sysv/linux/configure27
1 files changed, 24 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure
index db1666d258..72fa8430ac 100644
--- a/sysdeps/unix/sysv/linux/configure
+++ b/sysdeps/unix/sysv/linux/configure
@@ -54,6 +54,11 @@ fi
 case "$machine" in
   alpha*)
     arch_minimum_kernel=2.1.100
+    libc_cv_gcc_unwind_find_fde=yes
+    ;;
+  i386*)
+    libc_cv_gcc_unwind_find_fde=yes
+    arch_minimum_kernel=2.0.10
     ;;
   ia64*)
     arch_minimum_kernel=2.4.0
@@ -63,9 +68,19 @@ case "$machine" in
     ;;
   mips*)
     arch_minimum_kernel=2.2.15
+    libc_cv_gcc_unwind_find_fde=yes
+    ;;
+  powerpc)
+    libc_cv_gcc_unwind_find_fde=yes
+    arch_minimum_kernel=2.0.10
     ;;
   sh*)
     arch_minimum_kernel=2.3.99
+    libc_cv_gcc_unwind_find_fde=yes
+    ;;
+  sparc*)
+    libc_cv_gcc_unwind_find_fde=yes
+    arch_minimum_kernel=2.0.10
     ;;
   x86_64*)
     arch_minimum_kernel=2.4.0
@@ -91,11 +106,11 @@ fi
 
 if test -n "$minimum_kernel"; then
   echo $ac_n "checking for kernel header at least $minimum_kernel""... $ac_c" 1>&6
-echo "configure:95: checking for kernel header at least $minimum_kernel" >&5
+echo "configure:110: checking for kernel header at least $minimum_kernel" >&5
   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/'`;
   cat > conftest.$ac_ext <<EOF
-#line 99 "configure"
+#line 114 "configure"
 #include "confdefs.h"
 #include <linux/version.h>
 #if LINUX_VERSION_CODE < $decnum
@@ -128,6 +143,12 @@ EOF
   fi
 fi
 
+# The result of the above test for the use of the FDE code is invalid if
+# the user overrides the decision about the minimum ABI.
+if test "$oldest_abi" != default && test "2.2.4" \< "$oldest_abi"; then
+  libc_cv_gcc_unwind_find_fde=no
+fi
+
 if test -n "$sysheaders"; then
   CPPFLAGS=$OLD_CPPFLAGS
 fi
@@ -219,7 +240,7 @@ if test $host = $build; then
     ac_prefix=$ac_default_prefix
   fi
   echo $ac_n "checking for symlinks in ${ac_prefix}/include""... $ac_c" 1>&6
-echo "configure:223: checking for symlinks in ${ac_prefix}/include" >&5
+echo "configure:244: checking for symlinks in ${ac_prefix}/include" >&5
   ac_message=
   if test -L ${ac_prefix}/include/net; then
     ac_message="$ac_message