glibc/sysdeps/powerpc/preconfigure

18 lines
437 B
Plaintext
Raw Normal View History

# preconfigure fragment for powerpc.
2013-10-18 21:03:40 +00:00
case "$machine" in
powerpc64*)
base_machine=powerpc machine=powerpc/powerpc64
;;
powerpc*)
# Check for e500.
2013-10-18 21:03:40 +00:00
$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null > conftest.i
if grep -q __NO_FPRS__ conftest.i && ! grep -q _SOFT_FLOAT conftest.i; then
base_machine=powerpc machine=powerpc/powerpc32/e500
else
base_machine=powerpc machine=powerpc/powerpc32
2013-10-18 21:03:40 +00:00
fi
rm -f conftest.i
;;
esac