Convert fatal to error in remote_prepare
[platform/upstream/binutils.git] / gdb / gdbserver / acinclude.m4
1 dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE.
2 sinclude(../../bfd/bfd.m4)
3
4 sinclude(../acx_configure_dir.m4)
5
6 # This gets GDB_AC_LIBMCHECK.
7 sinclude(../libmcheck.m4)
8
9 dnl This gets autoconf bugfixes
10 sinclude(../../config/override.m4)
11
12 dnl For ACX_PKGVERSION and ACX_BUGURL.
13 sinclude(../../config/acx.m4)
14
15 m4_include(../../config/depstand.m4)
16 m4_include(../../config/lead-dot.m4)
17
18 dnl codeset.m4 is needed for common.m4, but not for
19 dnl anything else in gdbserver.
20 m4_include(../../config/codeset.m4)
21 m4_include(../common/common.m4)
22
23 dnl Check for existence of a type $1 in libthread_db.h
24 dnl Based on BFD_HAVE_SYS_PROCFS_TYPE in bfd/bfd.m4.
25
26 AC_DEFUN([GDBSERVER_HAVE_THREAD_DB_TYPE],
27 [AC_MSG_CHECKING([for $1 in thread_db.h])
28  AC_CACHE_VAL(gdbserver_cv_have_thread_db_type_$1,
29    [AC_TRY_COMPILE([
30 #include <thread_db.h>],
31       [$1 avar],
32       gdbserver_cv_have_thread_db_type_$1=yes,
33       gdbserver_cv_have_thread_db_type_$1=no
34    )])
35  if test $gdbserver_cv_have_thread_db_type_$1 = yes; then
36    AC_DEFINE([HAVE_]translit($1, [a-z], [A-Z]), 1,
37              [Define if <thread_db.h> has $1.])
38  fi
39  AC_MSG_RESULT($gdbserver_cv_have_thread_db_type_$1)
40 ])