1 dnl aclocal.m4 generated automatically by aclocal 1.4-p4
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
14 sinclude(../../bfd/acinclude.m4)
16 AC_DEFUN([SRV_CHECK_THREAD_DB],
17 [AC_CACHE_CHECK([for libthread_db],[srv_cv_thread_db],
19 LIBS="$LIBS -lthread_db"
21 [void ps_pglobal_lookup() {}
26 void ps_lgetfpregs() {}
27 void ps_lsetfpregs() {}
30 [srv_cv_thread_db="-lthread_db"],
33 if test "$prefix" = "/usr" || test "$prefix" = "NONE"; then
34 thread_db="/lib/libthread_db.so.1"
36 thread_db='$prefix/lib/libthread_db.so.1'
38 LIBS="$old_LIBS `eval echo "$thread_db"`"
40 [void ps_pglobal_lookup() {}
45 void ps_lgetfpregs() {}
46 void ps_lsetfpregs() {}
49 [srv_cv_thread_db="$thread_db"],
50 [srv_cv_thread_db=no])