Add support for m32r-linux target, including a RELA ABI and PIC.
[binutils-gdb.git] / gas / configure
index 39c926adb6857bc5862f1f33d0f785e6273d3b60..37926bca838dd3e720e066893140bb11a491179a 100755 (executable)
@@ -4000,6 +4000,8 @@ for this_target in $target $canon_targets ; do
       sparc*)          cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
       v850*)           cpu_type=v850 ;;
       xtensa*)         cpu_type=xtensa arch=xtensa ;;
+      m32r)             cpu_type=m32r target_cpu=m32r endian=big ;;
+      m32rle)           cpu_type=m32r target_cpu=m32r endian=little ;;
       *)               cpu_type=${cpu} ;;
     esac
 
@@ -4050,10 +4052,9 @@ for this_target in $target $canon_targets ; do
       arm-**-nto*)                     fmt=elf ;;
       arm-*-oabi | thumb-*-oabi)       fmt=elf ;;
       arm-epoc-pe | thumb-epoc-pe)     fmt=coff em=epoc-pe ;;
-      arm-*-wince)                     fmt=coff em=wince-pe ;;
+      arm-wince-pe | arm-*-wince)       fmt=coff em=wince-pe ;;
       arm-*-pe | thumb-*-pe)           fmt=coff em=pe ;;
       arm-*-riscix*)                   fmt=aout em=riscix ;;
-      arm-*-vxworks)                   fmt=coff ;;
 
       avr-*-*)                         fmt=elf ;;
 
@@ -4157,7 +4158,6 @@ _ACEOF
       i386-*-mingw32*)                 fmt=coff em=pe ;;
       i386-*-nto-qnx*)                 fmt=elf ;;
       i386-*-*nt*)                     fmt=coff em=pe ;;
-      i386-*-vxworks*)                 fmt=aout ;;
       i386-*-chaos)                    fmt=elf ;;
 
       i860-*-*)                                fmt=elf endian=little
@@ -4182,7 +4182,8 @@ echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a wo
 
       iq2000-*-elf)                    fmt=elf bfd_gas=yes ;;
 
-      m32r-*-*)                                fmt=elf ;;
+      m32r-*-elf*)                     fmt=elf ;;
+      m32r-*-linux*)                   fmt=elf em=linux;;
 
       m68hc11-*-* | m6811-*-*)         fmt=elf ;;
       m68hc12-*-* | m6812-*-*)         fmt=elf ;;
@@ -4238,7 +4239,6 @@ echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
       mips-*-elf* | mips-*-rtems*)     fmt=elf ;;
       mips-*-netbsd*)                  fmt=elf ;;
       mips-*-openbsd*)                 fmt=elf ;;
-      mips-*-vxworks*)                 fmt=elf ;;
 
       mmix-*-*)                                fmt=elf ;;
       mn10200-*-*)                     fmt=elf ;;
@@ -4252,12 +4252,19 @@ echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
 
       ppc-*-pe | ppc-*-cygwin*)                fmt=coff em=pe ;;
       ppc-*-winnt*)                    fmt=coff em=pe ;;
-      ppc-*-aix5*)                     fmt=coff em=aix5 ;;
+      ppc-*-aix5.[01])                 fmt=coff em=aix5 ;;
+      ppc-*-aix5.*)                    fmt=coff em=aix5
+
+cat >>confdefs.h <<\_ACEOF
+#define AIX_WEAK_SUPPORT 1
+_ACEOF
+
+      ;;
       ppc-*-aix*)                      fmt=coff ;;
       ppc-*-beos*)                     fmt=coff ;;
       ppc-*-*n*bsd* | ppc-*-elf*)      fmt=elf ;;
       ppc-*-eabi* | ppc-*-sysv4*)      fmt=elf ;;
-      ppc-*-linux-gnu*)                        fmt=elf
+      ppc-*-linux-gnu*)                        fmt=elf em=linux
            case "$endian" in
                big)  ;;
                *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
@@ -4281,8 +4288,6 @@ echo "$as_me: error: Solaris must be configured little endian" >&2;}
       ppc-*-macos* | ppc-*-mpw*)       fmt=coff em=macos ;;
       ppc-*-netware*)                  fmt=elf em=ppcnw ;;
       ppc-**-nto*)                     fmt=elf ;;
-      ppc-*-vxworks*)                  fmt=elf ;;
-      ppc-*-windiss*)                  fmt=elf ;;
       ppc-*-kaos*)                     fmt=elf ;;
 
       s390x-*-linux-gnu*)              fmt=elf em=linux ;;
@@ -4348,6 +4353,7 @@ echo "$as_me: error: Solaris must be configured little endian" >&2;}
       vax-*-netbsdelf*)                        fmt=elf em=nbsd ;;
       vax-*-netbsd*)                   fmt=aout em=nbsd ;;
       vax-*-bsd* | vax-*-ultrix*)      fmt=aout ;;
+      vax-*-linux-gnu*)                        fmt=elf em=linux bfd_gas=yes ;;
       vax-*-vms)                       fmt=vms ;;
 
       w65-*-*)                         fmt=coff ;;
@@ -4366,8 +4372,8 @@ echo "$as_me: error: Solaris must be configured little endian" >&2;}
       *-*-xray | *-*-hms)              fmt=coff ;;
       *-*-sim)                         fmt=coff ;;
       *-*-elf | *-*-sysv4* | *-*-solaris*) fmt=elf dev=yes ;;
-      *-*-aros*)                               fmt=elf em=linux bfd_gas=yes ;;
-      *-*-vxworks)                     fmt=aout ;;
+      *-*-aros*)                       fmt=elf em=linux bfd_gas=yes ;;
+      *-*-vxworks | *-*-windiss)       fmt=elf ;;
       *-*-netware)                     fmt=elf ;;
     esac