aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2003-02-26 15:10:47 +0000
committerMichael Chastain <mec@google.com>2003-02-26 15:10:47 +0000
commit27ca5dad5fc5de0668347e801686ceb579a7c150 (patch)
tree9f4963300861a96c072c4f15f90dd7eeded7fb40 /gdb/configure.in
parent6f88d630226e1c92c8fdaef7ba08e5b13d03205c (diff)
downloadgdb-27ca5dad5fc5de0668347e801686ceb579a7c150.zip
gdb-27ca5dad5fc5de0668347e801686ceb579a7c150.tar.gz
gdb-27ca5dad5fc5de0668347e801686ceb579a7c150.tar.bz2
2003-02-26 Michael Chastain <mec@shout.net>
* configure.in: New variable HAVE_UINTPTR_T. * configure, config.in: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 63f2daa..07aab35 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -511,6 +511,18 @@ if test $gdb_cv_have_pt_getxmmregs = yes; then
AC_DEFINE(HAVE_PT_GETXMMREGS)
fi
+# See if stdint.h provides the uintptr_t type.
+# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
+AC_CACHE_CHECK([for uintptr_t in stdint.h], gdb_cv_have_uintptr_t,
+ [AC_TRY_COMPILE(
+ [#include <stdint.h>],
+ [uintptr_t foo = 0;],
+ gdb_cv_have_uintptr_t=yes,
+ gdb_cv_have_uintptr_t=no)])
+AC_MSG_RESULT($gdb_cv_have_uintptr_t)
+if test $gdb_cv_have_uintptr_t = yes; then
+ AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if <stdint.h> provides the uintptr_t type.])
+fi
BFD_NEED_DECLARATION(malloc)
BFD_NEED_DECLARATION(realloc)