1 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
2 sinclude(../../bfd/acinclude.m4)
4 AC_DEFUN([SRV_CHECK_THREAD_DB],
5 [AC_CACHE_CHECK([for libthread_db],[srv_cv_thread_db],
7 LIBS="$LIBS -lthread_db"
9 [void ps_pglobal_lookup() {}
14 void ps_lgetfpregs() {}
15 void ps_lsetfpregs() {}
16 void ps_get_thread_area() {}
19 [srv_cv_thread_db="-lthread_db"],
22 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
23 thread_db="/lib/libthread_db.so.1"
25 thread_db='$prefix/lib/libthread_db.so.1'
27 LIBS="$old_LIBS `eval echo "$thread_db"`"
29 [void ps_pglobal_lookup() {}
34 void ps_lgetfpregs() {}
35 void ps_lsetfpregs() {}
36 void ps_get_thread_area() {}
39 [srv_cv_thread_db="$thread_db"],
40 [srv_cv_thread_db=no])