aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/powerpc/preconfigure
blob: e3ad6ec57f7225e6df023d4cefd863d864651c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# preconfigure fragment for powerpc.

case "$machine" in
powerpc64le)
  base_machine=powerpc machine=powerpc/powerpc64/le
  ;;
powerpc64*)
  base_machine=powerpc machine=powerpc/powerpc64/be
  ;;
powerpc*)
  # Check for e500.
  $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
  fi
  rm -f conftest.i
  with_fp_cond="!defined __NO_FPRS__"
  ;;
esac