Move all files into ports/ subdirectory in preparation for merge with glibc
[glibc.git] / ports / sysdeps / m68k / preconfigure
blob94fc1aabc2affa63cc6cc41b9848aa454d634cb7
1 # This fragment canonicalizes the machine names for m68k variants.
3 case "$machine" in
4 m680?0)         base_machine=m68k machine=m68k/m680x0/$machine ;;
5 m68k)           variant=`(echo "#ifdef __mcoldfire__"
6                           echo "coldfire"
7                           echo "#else"
8                           echo "m680x0/m68020"
9                           echo "#endif") |
10                          $CC $CFLAGS $CPPFLAGS -E - |
11                          grep '^[a-z]'`
12                 if test -z "$variant"; then
13                   echo >&2 "Cannot determine m68k processor variant"
14                   exit 1
15                 fi
16                 base_machine=m68k machine=m68k/$variant ;;
17 esac