summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/configure.in
blob: 28cc85934d7d4d24e46298270941075f25c65a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/powerpc.

# Accept binutils which knows about ".machine".
AC_CACHE_CHECK(for .machine support, libc_cv_ppc_machine, [dnl
cat > conftest.s <<\EOF
	.machine "altivec"
	blr
EOF
if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
  libc_cv_ppc_machine=yes
else
  libc_cv_ppc_machine=no
fi
rm -f conftest*])
if test $libc_cv_ppc_machine != yes; then
  AC_MSG_ERROR([
*** A binutils version which can handle
***    .machine "altivec"
*** is needed.])
fi