1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local preconfigure fragment for sysdeps/arm
8 # If the compiler enables unwind tables by default, this causes
9 # problems with undefined symbols in -nostdlib link tests. To
10 # avoid this, add -fno-unwind-tables here and remove it in
11 # sysdeps/unix/sysv/linux/arm/configure.ac after those tests have
13 if test "${CFLAGS+set}" != "set"; then
16 CFLAGS="$CFLAGS -fno-unwind-tables"
19 AC_MSG_ERROR([Old ABI no longer supported])
24 # Lets ask the compiler which ARM family we've got
25 # Unfortunately it doesn't define any flags for implementations
26 # that you might pass to -mcpu or -mtune
27 # Note if you add patterns here you must ensure that
28 # an appropriate directory exists in sysdeps/arm
29 archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
30 sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
32 case "x$archcppflag" in
35 AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7])
40 AC_MSG_NOTICE([Found compiler is configured for $machine])
45 AC_MSG_NOTICE([Found compiler is configured for $machine])
49 AC_MSG_NOTICE([Found compiler is configured for $machine])
53 AC_MSG_WARN([arm/preconfigure: Did not find ARM architecture type; using default])