]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/configure.in
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gas / configure.in
index 6942f602cf62c859575a89f7fe2d6884bf12eee9..ae6ad9770feb217fdb60dc41ee992d303ffa2455 100644 (file)
@@ -5,7 +5,7 @@ dnl brackets, be sure changequote invocations surround it.
 dnl
 dnl
 dnl v2.5 needed for --bindir et al
-AC_PREREQ(2.5)
+AC_PREREQ(2.13)
 AC_INIT(as.h)
 
 AC_CANONICAL_SYSTEM
@@ -38,6 +38,8 @@ AC_ARG_ENABLE(commonbfdlib,
   *)   AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
 esac])dnl
 
+using_cgen=no
+
 # Generate a header file
 AM_CONFIG_HEADER(config.h:config.in)
 
@@ -75,6 +77,7 @@ changequote([,])dnl
       alpha*)          cpu_type=alpha ;;
       armeb)           cpu_type=arm endian=big ;;
       arm*)            cpu_type=arm endian=little ;;
+      strongarm*)      cpu_type=arm endian=little ;;
       thumb*)          cpu_type=arm endian=little ;;
       hppa*)           cpu_type=hppa ;;
 changequote(,)dnl
@@ -104,11 +107,6 @@ changequote([,])dnl
 
     if test ${this_target} = $target ; then
       target_cpu_type=${cpu_type}
-      if test x${endian} = xbig; then
-       AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 1)
-      elif test x${endian} = xlittle; then
-       AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 0)
-      fi
     elif test ${target_cpu_type} != ${cpu_type} ; then
       continue
     fi
@@ -140,6 +138,7 @@ changequote([,])dnl
       arm-*-aout)          fmt=aout ;;
       arm-*-coff | thumb-*-coff)           fmt=coff ;;
       arm-*-elf | thumb-*-elf)              fmt=elf ;;
+      arm-*-oabi | thumb-*-oabi)           fmt=elf ;;
       arm-*-riscix*)        fmt=aout ;;
       arm-*-pe | thumb-*-pe)               fmt=coff em=pe ;;
 
@@ -150,15 +149,14 @@ changequote([,])dnl
       dvp-*-*)             fmt=elf bfd_gas=yes install_tooldir= ;;
 # end-sanitize-sky
 
-# start-sanitize-fr30
       fr30-*-*)                    fmt=elf bfd_gas=yes ;;
-# end-sanitize-fr30
 
       hppa-*-*elf*)         fmt=elf em=hppa ;;
       hppa-*-lites*)        fmt=elf em=hppa ;;
       hppa-*-osf*)          fmt=som em=hppa ;;
       hppa-*-rtems*)        fmt=elf em=hppa ;;
       hppa-*-hpux*)         fmt=som em=hppa ;;
+      hppa-*-mpeix*)        fmt=som em=hppa ;;
       hppa-*-bsd*)          fmt=som em=hppa ;;
       hppa-*-hiux*)         fmt=som em=hppa ;;
 
@@ -240,7 +238,7 @@ dnl end-sanitize-beos
       # don't change em like *-*-bsd does
       mips-dec-netbsd*)            fmt=elf endian=little ;;
       mips-dec-openbsd*)    fmt=elf endian=little ;;
-      mips-dec-bsd*)        fmt=aout ;;
+      mips-dec-bsd*)        fmt=aout endian=little ;;
       mips-sony-bsd*)       fmt=ecoff ;;
       mips-*-bsd*)          AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
       mips-*-ultrix*)       fmt=ecoff endian=little ;;
@@ -304,6 +302,9 @@ dnl end-sanitize-beos
       sparc-*-netbsd*)      fmt=aout em=nbsd ;;
       sparc-*-openbsd*)     fmt=aout em=nbsd ;;
 
+      strongarm-*-coff)     fmt=coff ;;
+      strongarm-*-elf)      fmt=elf ;;
+
       tic30-*-*aout*)      fmt=aout bfd_gas=yes ;;
       tic30-*-*coff*)       fmt=coff bfd_gas=yes ;;
 # start-sanitize-tic80
@@ -311,11 +312,9 @@ dnl end-sanitize-beos
 # end-sanitize-tic80
 
       v850-*-*)                    fmt=elf bfd_gas=yes ;;
-
-# start-sanitize-v850e
       v850e-*-*)           fmt=elf bfd_gas=yes ;;
       v850ea-*-*)          fmt=elf bfd_gas=yes ;;
-# end-sanitize-v850e
+
       vax-*-bsd* | vax-*-ultrix*)
                            fmt=aout ;;
       vax-*-vms)            fmt=vms ;;
@@ -341,6 +340,14 @@ dnl end-sanitize-beos
       *-*-netware)          fmt=elf ;;
     esac
 
+    if test ${this_target} = $target ; then
+      if test x${endian} = xbig; then
+       AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 1)
+      elif test x${endian} = xlittle; then
+       AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 0)
+      fi
+    fi
+
     case ${cpu_type}-${fmt} in
       alpha*-*)        bfd_gas=yes ;;
       arm-*)   bfd_gas=yes ;;
@@ -350,6 +357,7 @@ dnl end-sanitize-beos
       ns32k-*) bfd_gas=yes ;;
       ppc-*)   bfd_gas=yes ;;
       sparc-*) bfd_gas=yes ;;
+      strongarm-*)     bfd_gas=yes ;;
       *-elf)   bfd_gas=yes ;;
       *-ecoff) bfd_gas=yes ;;
       *-som)   bfd_gas=yes ;;
@@ -358,10 +366,11 @@ dnl end-sanitize-beos
 
 # Other random stuff.
 
-    # do we need the opcodes library?
+    # Do we need the opcodes library?
     case ${cpu_type} in
       vax | i386 | tic30)
        ;;
+
       *)
        need_opcodes=yes
 
@@ -377,27 +386,12 @@ dnl end-sanitize-beos
        ;;
     esac
 
+    # Any other special object files needed ?
     case ${cpu_type} in
-      m32r)
-       case "x${extra_objects}" in
-       *cgen.o*) ;;
-       *) extra_objects="$extra_objects cgen.o"
-          AC_DEFINE(USING_CGEN)
-          ;;
-       esac
+      fr30 | m32r)
+       using_cgen=yes
        ;;
 
-# start-sanitize-fr30
-      fr30)
-       case "x${extra_objects}" in
-       *cgen.o*) ;;
-       *) extra_objects="$extra_objects cgen.o"
-          AC_DEFINE(USING_CGEN)
-          ;;
-       esac
-       ;;
-# end-sanitize-fr30
-
       m68k)
        case ${extra_objects} in
        *m68k-parse.o*) ;;
@@ -432,6 +426,13 @@ dnl end-sanitize-beos
        ;;
     esac
 
+    if test $using_cgen = yes ; then
+       case "x${extra_objects}" in
+       *cgen.o*) ;;
+       *) extra_objects="$extra_objects cgen.o" ;;
+       esac
+    fi
+
 # See if we really can support this configuration with the emulation code.
 
     if test $this_target = $target ; then
@@ -489,14 +490,13 @@ esac
 
 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
 cgen_cpu_prefix=""
-case "x${extra_objects}" in
-  *cgen.o*)
-       case ${target_cpu} in
-         *) cgen_cpu_prefix=${target_cpu} ;;
-       esac
-       ;;
-esac
-AC_SUBST(cgen_cpu_prefix)
+if test $using_cgen = yes ; then
+  case ${target_cpu} in
+    *) cgen_cpu_prefix=${target_cpu} ;;
+  esac
+  AC_SUBST(cgen_cpu_prefix)
+  AC_DEFINE(USING_CGEN)
+fi
 
 dnl
 dnl Make sure the desired support files exist.
@@ -664,8 +664,7 @@ ALL_LINGUAS=
 CY_GNU_GETTEXT
 
 AM_MAINTAINER_MODE
-AM_CYGWIN32
-AM_EXEEXT
+AC_EXEEXT
 
 AC_CHECK_HEADERS(string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h)
 
@@ -744,14 +743,12 @@ AC_OUTPUT(Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in,
  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
- case ${target_cpu_type} in
- m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
-# start-sanitize-fr30
- fr30) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
-# end-sanitize-fr30
- esac
+ if test "x$cgen_cpu_prefix" != x ; then
+   echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
+ fi
 
  sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile],
 [target_cpu_type=${target_cpu_type}
+ cgen_cpu_prefix=${cgen_cpu_prefix}
  obj_format=${obj_format}
  te_file=${te_file}])