Tue Aug 8 23:41:25 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
[deliverable/binutils-gdb.git] / gas / configure.in
index 3f4362d1485d42c16e4f6f264da3a56483bfc7eb..bb9034981db84ec6dcd79a49d148dc0dc42e979d 100644 (file)
@@ -39,7 +39,7 @@ te_file=generic
 # check for architecture variants
 case ${target_cpu} in
   armeb)       cpu_type=arm endian=big ;;
-  arm*)                cpu_tpye=arm endian=little ;;
+  arm*)                cpu_type=arm endian=little ;;
   hppa*)       cpu_type=hppa ;;
 changequote(,)dnl
   i[45]86)     cpu_type=i386 ;;
@@ -109,7 +109,7 @@ changequote([,])dnl
       rs6000*)         cpu_type=ppc ;;
       sparc64)         cpu_type=sparc obj_format=elf want_sparcv9=true ;;
       sparclite*)      cpu_type=sparc ;;
-      *)               cpu_type=${target_cpu} ;;
+      *)               cpu_type=${cpu} ;;
     esac
 
     if test ${this_target} = $target ; then
@@ -137,8 +137,7 @@ changequote([,])dnl
       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
 # end-sanitize-arc
 
-      arm-*-riscix*)       fmt=aout targ=arm-lit
-                           emulation=riscix ;;
+      arm-*-riscix*)       fmt=aout targ=arm-lit ;;
       arm-*-aout)          fmt=aout
                            case "$endian" in
                              big)      targ=arm-big ;;
@@ -162,7 +161,7 @@ changequote([,])dnl
       i386-*-bsd*)          fmt=aout em=386bsd ;;
       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
-      i386-*-linux*aout*)   fmt=aout  em=linux ;;
+      i386-*-linux*aout* | i386-*-linuxoldld)   fmt=aout em=linux ;;
       i386-*-linux*coff*)   fmt=coff em=linux
                             targ=i386coff ;;
       i386-*-linux*)        fmt=elf em=linux ;;
@@ -174,11 +173,13 @@ changequote([,])dnl
                            fmt=coff targ=i386coff ;;
       i386-*-vsta)          fmt=aout ;;
       i386-*-go32)          fmt=coff targ=i386coff ;;
-      i386-*-gnu*elf*)      fmt=elf ;;
-      i386-*-mach* | i386-*-gnu*)
+      i386-*-gnu*)          fmt=elf ;;
+      i386-*-mach*)
                            fmt=aout em=mach bfd_gas=yes ;;
       i386-*-msdos*)        fmt=aout ;;
+      i386-*-moss*)        fmt=elf ;;
       i386-*-pe)            fmt=coff targ=i386coff em=pe ;;
+      i386-*-win32)         fmt=coff targ=i386coff em=pe ;;
       i386-*-*nt)           fmt=coff targ=i386coff em=pe ;;
       i960-*-bout)          fmt=bout ;;
       i960-*-coff)          fmt=coff em=ic960 targ=ic960coff ;;
@@ -336,6 +337,10 @@ changequote([,])dnl
 
     test -n "$want_sparcv9" && AC_DEFINE(sparcv9)
 
+    case ${cpu_type} in
+      m68k) extra_objects="$extra_objects m68k-parse.o" ;;
+    esac
+
 done
 
 # Assign floating point type.  Most processors with FP support
@@ -354,8 +359,8 @@ dnl
 dnl Make sure the desired support files exist.
 dnl
 
-if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then
-  AC_MSG_ERROR(GAS does not support target CPU ${cpu_type})
+if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
+  AC_MSG_ERROR(GAS does not support target CPU ${target_cpu_type})
 fi
 
 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
@@ -460,14 +465,14 @@ AC_SUBST(extra_objects)
 AC_DEFINE_UNQUOTED(EMULATIONS, $EMULATIONS)
 AC_DEFINE_UNQUOTED(DEFAULT_EMULATION, "$DEFAULT_EMULATION")
 
-files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
+files="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
        config/obj-${obj_format}.h config/obj-${obj_format}.c \
        config/te-${te_file}.h config/atof-${atof}.c \
        $extra_files"
 links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
        $extra_links"
 
-case ${primary_bfd_gas}-${cpu_type}-${obj_format} in
+case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
   yes-*-coff)  need_bfd=yes ;;
   no-*-coff)   need_bfd=yes
                AC_DEFINE(MANY_SEGMENTS) ;;
@@ -481,7 +486,7 @@ case ${reject_dev_configs}-${dev} in
     ;;
 esac
 
-AC_SUBST(cpu_type)
+AC_SUBST(target_cpu_type)
 AC_SUBST(obj_format)
 AC_SUBST(atof)
 dnl AC_SUBST(emulation)
@@ -531,6 +536,9 @@ AC_C_INLINE
 # VMS doesn't have unlink.
 AC_CHECK_FUNCS(unlink remove, break)
 
+# Some systems don't have sbrk().
+AC_CHECK_FUNCS(sbrk)
+
 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
 # enough, but on some of those systems, the assert macro relies on requoting
 # working properly!
This page took 0.027151 seconds and 4 git commands to generate.