summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-10-29 17:43:44 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-10-29 17:43:44 +0000
commitf86f9b604fdc44d0d6a4ce94cd3ea3894cf7ebfc (patch)
treeb9f5f4aac2a5628392f9397a347ae11c65569eab /gdb/gdbserver/configure
parentcf732a9dc6309eceadbb10668e1e516579ece4a2 (diff)
downloadgdb-f86f9b604fdc44d0d6a4ce94cd3ea3894cf7ebfc.tar.gz
2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
* configure.ac: New --with-libthread-db option. * thread-db.c: Allow direct dependence on libthread_db. (thread_db_free): Adjust. * config.in: Regenerate. * configure: Likewise.
Diffstat (limited to 'gdb/gdbserver/configure')
-rwxr-xr-xgdb/gdbserver/configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index b88ed5b605d..687105a5c85 100755
--- a/gdb/gdbserver/configure
+++ b/gdb/gdbserver/configure
@@ -668,6 +668,7 @@ ac_user_opts='
enable_option_checking
with_pkgversion
with_bugurl
+with_libthread_db
'
ac_precious_vars='build_alias
host_alias
@@ -1297,6 +1298,8 @@ Optional Packages:
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-pkgversion=PKG Use PKG in the version string in place of "GDB"
--with-bugurl=URL Direct users to URL to report a bug
+ --with-libthread-db=PATH
+ use given libthread_db directly
Some influential environment variables:
CC C compiler command
@@ -4268,6 +4271,18 @@ $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
fi
fi
+
+# Check whether --with-libthread-db was given.
+if test "${with_libthread_db+set}" = set; then :
+ withval=$with_libthread_db; srv_libthread_db_path="${withval}"
+
+$as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
+
+ srv_libs="$srv_libthread_db_path"
+
+fi
+
+
if test "$srv_xmlfiles" != ""; then
srv_xmlbuiltin="xml-builtin.o"