aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-02-14 23:13:13 +0000
committerIan Lance Taylor <ian@airs.com>1996-02-14 23:13:13 +0000
commitae09d880bdb0dd56036953766f30a83826896e79 (patch)
treea93e714cfd5d3a06dd5be3c2be2c60cac9ea14f2 /gas/configure.in
parent7393a6f0b1947ba825d4107b297a709559ad1dca (diff)
downloadgdb-ae09d880bdb0dd56036953766f30a83826896e79.zip
gdb-ae09d880bdb0dd56036953766f30a83826896e79.tar.gz
gdb-ae09d880bdb0dd56036953766f30a83826896e79.tar.bz2
From Alan Modra <alan@spri.levels.unisa.edu.au>:
* configure.in: Remove duplicate setting of cpu_type. Check whether opcodes library is required for on all targets, not just primary one. * configure: Rebuild.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in109
1 files changed, 44 insertions, 65 deletions
diff --git a/gas/configure.in b/gas/configure.in
index d8d0356..e38700d 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -41,57 +41,6 @@ AC_ARG_PROGRAM
te_file=generic
-# assign cpu type
-
-# check for architecture variants
-case ${target_cpu} in
- armeb) cpu_type=arm endian=big ;;
- arm*) cpu_type=arm endian=little ;;
- hppa*) cpu_type=hppa ;;
-changequote(,)dnl
- i[45]86) cpu_type=i386 ;;
- m680[012346]0) cpu_type=m68k ;;
- m68008) cpu_type=m68k ;;
- m683??) cpu_type=m68k ;;
-changequote([,])dnl
- m8*) cpu_type=m88k ;;
- mips*el) cpu_type=mips endian=little;;
- mips*) cpu_type=mips endian=big ;;
- powerpcle*) cpu_type=ppc endian=little ;;
- powerpc*) cpu_type=ppc endian=big ;;
- rs6000*) cpu_type=ppc ;;
- sparc64) cpu_type=sparc
- AC_DEFINE(SPARC_V9) ;;
- sparc*) cpu_type=sparc ;;
- *) cpu_type=${target_cpu} ;;
-esac
-
-# do we need the opcodes library?
-case ${cpu_type} in
- alpha | vax)
- ;;
- *)
- OPCODES_DEP=../opcodes/libopcodes.a
- OPCODES_LIB='-L../opcodes -lopcodes'
-
- # We need to handle some special cases if opcodes was built shared.
- if test "${shared}" = "true"; then
- case "${host}" in
- *-*-sunos*)
- # On SunOS, we must link against the name we are going to install,
- # not -lbfd, since SunOS does not support SONAME.
- OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
- ;;
- esac
- fi
- ;;
-esac
-AC_SUBST(OPCODES_DEP)
-AC_SUBST(OPCODES_LIB)
-
-gas_target=${cpu_type}
-this_target=${generic_target}
-
canon_targets=""
if test -n "$enable_targets" ; then
for t in `echo $enable_targets | sed 's/,/ /g'`; do
@@ -114,6 +63,8 @@ for this_target in $target $canon_targets ; do
# check for architecture variants
case ${cpu} in
+ armeb) cpu_type=arm endian=big ;;
+ arm*) cpu_type=arm endian=little ;;
hppa*) cpu_type=hppa ;;
changequote(,)dnl
i[45]86) cpu_type=i386 ;;
@@ -340,6 +291,12 @@ changequote([,])dnl
# Other random stuff.
+ # do we need the opcodes library?
+ case ${cpu_type} in
+ alpha | vax) ;;
+ *) need_opcodes=yes ;;
+ esac
+
test -n "$want_sparc_v9" && AC_DEFINE(SPARC_V9)
case ${cpu}-${vendor}-${os} in
@@ -545,22 +502,44 @@ case "${primary_bfd_gas}" in
need_bfd=yes ;;
esac
+# do we need the opcodes library?
+case "${need_opcodes}" in
+ yes)
+ OPCODES_DEP=../opcodes/libopcodes.a
+ OPCODES_LIB='-L../opcodes -lopcodes'
+
+ # We need to handle some special cases if opcodes was built shared.
+ if test "${shared}" = "true"; then
+ case "${host}" in
+ *-*-sunos*)
+ # On SunOS, we must link against the name we are going to install,
+ # not -lbfd, since SunOS does not support SONAME.
+ OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
+ ;;
+ esac
+ fi
+ ;;
+esac
+AC_SUBST(OPCODES_DEP)
+AC_SUBST(OPCODES_LIB)
+
case "${need_bfd}" in
- yes) BFDDEP=../bfd/libbfd.a
- BFDLIB='-L../bfd -lbfd'
- ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
-
- # We need to handle some special cases if BFD was built shared.
- if test "${shared}" = "true"; then
- case "${host}" in
- *-*-sunos*)
- # On SunOS, we must link against the name we are going to install,
- # not -lbfd, since SunOS does not support SONAME.
- BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
- ;;
- esac
- fi
+ yes)
+ BFDDEP=../bfd/libbfd.a
+ BFDLIB='-L../bfd -lbfd'
+ ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
+
+ # We need to handle some special cases if BFD was built shared.
+ if test "${shared}" = "true"; then
+ case "${host}" in
+ *-*-sunos*)
+ # On SunOS, we must link against the name we are going to install,
+ # not -lbfd, since SunOS does not support SONAME.
+ BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
;;
+ esac
+ fi
+ ;;
esac
AC_SUBST(BFDDEP)
AC_SUBST(BFDLIB)