aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure.ac
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-09-17 23:14:37 +0000
committerDaniel Jacobowitz <drow@false.org>2005-09-17 23:14:37 +0000
commit3db0444b44b5218917e326666590c22c03405916 (patch)
tree7282cd24bbb1e36a6c6963ade42e8e6681e118af /gdb/gdbserver/configure.ac
parent4b9c52dc3f431aee1757785a92c6a4c26f7c1146 (diff)
downloadgdb-3db0444b44b5218917e326666590c22c03405916.zip
gdb-3db0444b44b5218917e326666590c22c03405916.tar.gz
gdb-3db0444b44b5218917e326666590c22c03405916.tar.bz2
* acinclude.m4: Correct quoting.
* aclocal.m4: Regenerated. Suggested by SZOKOVACS Robert <szo@ies.hu>: * thread-db.c (thread_db_err_str): Handle TD_VERSION. (thread_db_init): Call thread_db_err_str. * configure.ac: Check for TD_VERSION. * config.in, configure: Regenerated.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r--gdb/gdbserver/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index ffef1bd..c92bfba 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -142,6 +142,13 @@ fi
if test "$srv_linux_thread_db" = "yes"; then
srv_thread_depfiles="thread-db.o proc-service.o"
USE_THREAD_DB="-DUSE_THREAD_DB"
+ AC_CACHE_CHECK([for TD_VERSION], gdbsrv_cv_have_td_version,
+ [AC_TRY_COMPILE([#include <thread_db.h>], [TD_VERSION;],
+ [gdbsrv_cv_have_td_version=yes],
+ [gdbsrv_cv_have_td_version=no])])
+ if test $gdbsrv_cv_have_td_version = yes; then
+ AC_DEFINE(HAVE_TD_VERSION, 1, [Define if TD_VERSION is available.])
+ fi
fi
GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"