aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-06-08 04:00:56 +0000
committerAndrew Cagney <cagney@redhat.com>2000-06-08 04:00:56 +0000
commit1ba607adba3816e5352f639a27cffa20ee71813d (patch)
treef989fb450c87839938457515038372ca07f59acd /gdb/configure.in
parente28d556f6be67e728e296f83a55f6abaf4251a31 (diff)
downloadgdb-1ba607adba3816e5352f639a27cffa20ee71813d.zip
gdb-1ba607adba3816e5352f639a27cffa20ee71813d.tar.gz
gdb-1ba607adba3816e5352f639a27cffa20ee71813d.tar.bz2
Use config.bfd to determine the default architecture and byte order.
Flush all BYTE_ORDER_DEFAULT macros from mips. Can rely on BFD's value.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 3421028..f02365c 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -71,9 +71,22 @@ changequote(,)dnl
. ${srcdir}/configure.tgt
+targ=${target} ; . ${srcdir}/../bfd/config.bfd
+
dnl
changequote([,])dnl
+dnl use BFD to determine the default architecture and byte order
+dnl (bfd_vec->byteorder provides the latter).
+targ=${target}
+. ${srcdir}/../bfd/config.bfd
+if test x"${targ_archs}" != x ; then
+ AC_DEFINE_UNQUOTED(DEFAULT_BFD_ARCH, ${targ_archs})
+fi
+if test x"${targ_defvec}" != x ; then
+ AC_DEFINE_UNQUOTED(DEFAULT_BFD_VEC, ${targ_defvec})
+fi
+
AC_PROG_AWK
AC_PROG_INSTALL
AC_CHECK_TOOL(AR, ar)