aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-02 12:40:09 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-02 12:40:09 +0000
commit78434e59854dbc1662a4278502f016e68c5bff3a (patch)
tree62fe07b96fe27ecfb9f2b9cc22c8ac86e570310c /gdb/configure.in
parentc9e214e571d08fa968a53210682a14060261b91c (diff)
downloadgdb-78434e59854dbc1662a4278502f016e68c5bff3a.zip
gdb-78434e59854dbc1662a4278502f016e68c5bff3a.tar.gz
gdb-78434e59854dbc1662a4278502f016e68c5bff3a.tar.bz2
* configure.in: Check for <machine/reg.h>. Check for `struct reg'
in <machine/reg.h>. * configure, config.in: Regenerate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 72599be..2ab32fe 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -343,6 +343,7 @@ AC_HEADER_DIRENT
AC_HEADER_STAT
AC_HEADER_STDC
AC_CHECK_HEADERS(link.h)
+AC_CHECK_HEADERS(machine/reg.h)
AC_CHECK_HEADERS(nlist.h)
AC_CHECK_HEADERS(poll.h sys/poll.h)
AC_CHECK_HEADERS(proc_service.h thread_db.h)
@@ -491,6 +492,16 @@ if test "$gdb_with_regex" = yes; then
[Define to 1 if the regex included in libiberty should be used.])
fi
+# See if <machine/reg.h> degines `struct reg'.
+AC_CACHE_CHECK([for struct reg in machine/reg.h], gdb_cv_struct_reg,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <machine/reg.h>], [struct reg r;],
+gdb_cv_struct_reg=yes, gdb_cv_struct_reg=no)])
+if test $gdb_cv_struct_reg = yes; then
+ AC_DEFINE(HAVE_STRUCT_REG, 1,
+ [Define to 1 if your system has struct reg in <machine/reg.h>.])
+fi
+
# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_reg_r_fs,