diff options
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 3c38d8c..5023140 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -96,6 +96,21 @@ AC_MSG_RESULT($gdb_cv_printf_has_long_double) AC_FUNC_MMAP +dnl See if thread_db is around for Solaris thread debugging. Note that we must +dnl explicitly test for version 1 of the library because version 0 (present on +dnl Solaris 2.4 or earlier) doesn't have the same API. + +AC_MSG_CHECKING(for Solaris thread debugging library) +if test -f /usr/lib/libthread_db.so.1 ; then + AC_MSG_RESULT(yes) + LIBS="$LIBS /usr/lib/libthread_db.so.1" + THREAD_DB_OBS=sol-thread.o + AC_DEFINE(HAVE_THREAD_DB_LIB) +else + AC_MSG_RESULT(no) +fi +AC_SUBST(THREAD_DB_OBS) + dnl Handle optional features that can be enabled. ENABLE_CFLAGS= ENABLE_CLIBS= |