aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
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)