aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorSanjoy Das <sanjoyd@sourceware.org>2011-11-20 08:30:59 +0000
committerSanjoy Das <sanjoyd@sourceware.org>2011-11-20 08:30:59 +0000
commitf997c383549db91a3f3b994a89201ad6498942b5 (patch)
tree8958d8b22997cd9f3be92beb49a959cedba86905 /gdb/configure.ac
parentdc8c0494f2cc28e9ad3410a5dbd35c27a6ec98f5 (diff)
downloadgdb-f997c383549db91a3f3b994a89201ad6498942b5.zip
gdb-f997c383549db91a3f3b994a89201ad6498942b5.tar.gz
gdb-f997c383549db91a3f3b994a89201ad6498942b5.tar.bz2
gdb/
* Makefile.in: Add jit-reader.h as a header. Have it installed in $(includedir)/gdb. * configure.ac: Generate a correct value for TARGET_PTR for jit-reader.h. Tell configure to generate jit-reader.h from jit-reader.in. * configure: Re-generated by autoconf. * jit-reader.in: New file. * jit.c: Include jit-reader.h.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index fbbb2de..ac8707a 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -605,6 +605,28 @@ AC_SUBST(READLINE_DEPS)
AC_SUBST(READLINE_CFLAGS)
AC_SUBST(READLINE_TEXI_INCFLAG)
+# Generate jit-reader.h
+
+# This is typedeffed to GDB_CORE_ADDR in jit-reader.h
+TARGET_PTR=
+
+AC_CHECK_SIZEOF(unsigned long long)
+AC_CHECK_SIZEOF(unsigned long)
+AC_CHECK_SIZEOF(unsigned __int128)
+
+if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
+ TARGET_PTR="unsigned long"
+elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
+ TARGET_PTR="unsigned long long"
+elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
+ TARGET_PTR="unsigned __int128"
+else
+ TARGET_PTR="unsigned long"
+fi
+
+AC_SUBST(TARGET_PTR)
+AC_CONFIG_FILES([jit-reader.h:jit-reader.in])
+
AC_ARG_WITH(expat,
AS_HELP_STRING([--with-expat], [include expat support (auto/yes/no)]),
[], [with_expat=auto])