aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-02 14:58:15 +0000
committerTom Tromey <tromey@redhat.com>2013-01-02 14:58:15 +0000
commit4f05add48d231b7945916ec0fa0fe0f640e58b5c (patch)
tree5c313601745dc305e65d970fac2a33d7c408fe09 /gdb/configure.ac
parent95830fd17d6ae253d8f6c2595188cadd59058799 (diff)
downloadgdb-4f05add48d231b7945916ec0fa0fe0f640e58b5c.zip
gdb-4f05add48d231b7945916ec0fa0fe0f640e58b5c.tar.gz
gdb-4f05add48d231b7945916ec0fa0fe0f640e58b5c.tar.bz2
* config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
* configure.ac: Check for Mach-O support in BFD. Update CONFIG_OBS. * configure: Rebuild.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index a27bc92..de096b8 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -2027,6 +2027,13 @@ if test $gdb_cv_var_elf = yes; then
fi
fi
+# Add macho support to GDB, but only if BFD includes it.
+GDB_AC_CHECK_BFD([for Mach-O support in BFD], gdb_cv_var_macho,
+ [bfd_mach_o_lookup_command (NULL, 0, NULL)], mach-o.h)
+if test $gdb_cv_var_macho = yes; then
+ CONFIG_OBS="$CONFIG_OBS machoread.o"
+fi
+
# Add any host-specific objects to GDB.
CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"