aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-10-17 05:38:42 +0000
committerAlan Modra <amodra@gmail.com>2001-10-17 05:38:42 +0000
commitc1e4eef7ce1250a121d5bec82e0f4b31177c0bd0 (patch)
treeedf2cb4d0b6cdb042e1f2ce893b2106f047d095e /gas/configure.in
parent3f1c8673e3944460e337d4b9166259d9138737f9 (diff)
downloadgdb-c1e4eef7ce1250a121d5bec82e0f4b31177c0bd0.zip
gdb-c1e4eef7ce1250a121d5bec82e0f4b31177c0bd0.tar.gz
gdb-c1e4eef7ce1250a121d5bec82e0f4b31177c0bd0.tar.bz2
* configure.in (MIPS_STABS_ELF): AC_DEFINE in only one place so
that autoheader doesn't duplicate config.in entries. (DEFAULT_ARCH): Ditto. * configure: Regenerate. * config.in: Regenerate.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in30
1 files changed, 9 insertions, 21 deletions
diff --git a/gas/configure.in b/gas/configure.in
index ede3a48..b49ad92 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -164,6 +164,7 @@ changequote([,])dnl
dev=no
bfd_gas=no
em=generic
+ mips_stabs_elf=
# assign object format
case ${generic_target} in
@@ -351,20 +352,13 @@ changequote([,])dnl
mips-*-irix*) fmt=ecoff ;;
mips-*-lnews*) fmt=ecoff em=lnews ;;
mips-*-riscos*) fmt=ecoff ;;
- mips*-*-linux*)
- fmt=elf em=tmips
- AC_DEFINE(MIPS_STABS_ELF, 1,
- [Use ELF stabs for MIPS, not ECOFF stabs])
- ;;
+ mips*-*-linux*) fmt=elf em=tmips mips_stabs_elf=y ;;
mips-*-sysv4*MP* | mips-*-gnu*)
fmt=elf em=tmips ;;
mips-*-sysv*) fmt=ecoff ;;
mips-*-elf* | mips-*-rtems* | mips-*-openbsd*)
fmt=elf ;;
- mips-*-vxworks*) fmt=elf
- AC_DEFINE(MIPS_STABS_ELF, 1,
- [Use ELF stabs for MIPS, not ECOFF stabs])
- ;;
+ mips-*-vxworks*) fmt=elf mips_stabs_elf=y ;;
mn10200-*-*) fmt=elf bfd_gas=yes ;;
mn10300-*-*) fmt=elf bfd_gas=yes ;;
openrisc-*-*) fmt=elf bfd_gas=yes ;;
@@ -489,6 +483,11 @@ changequote([,])dnl
fi
fi
+ if test x${mips_stabs_elf} != x; then
+ AC_DEFINE(MIPS_STABS_ELF, 1,
+ [Use ELF stabs for MIPS, not ECOFF stabs])
+ fi
+
case ${cpu_type}-${fmt} in
alpha*-*) bfd_gas=yes ;;
arm-*) bfd_gas=yes ;;
@@ -547,12 +546,6 @@ changequote([,])dnl
esac
;;
- s390)
- if test $this_target = $target ; then
- AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
- fi
- ;;
-
mips)
echo ${extra_objects} | grep -s "itbl-parse.o"
if test $? -ne 0 ; then
@@ -570,12 +563,7 @@ changequote([,])dnl
fi
;;
- i386)
- if test $this_target = $target ; then
- AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
- fi
- ;;
- sparc)
+ i386 | s390 | sparc)
if test $this_target = $target ; then
AC_DEFINE_UNQUOTED(DEFAULT_ARCH, "${arch}", [Default architecture.])
fi