2002-02-19 Daniel Jacobowitz <drow@mvista.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure.in
1 dnl Autoconf configure script for GDB server.
2 dnl Copyright 2000, 2002 Free Software Foundation, Inc.
3 dnl
4 dnl This file is part of GDB.
5 dnl
6 dnl This program is free software; you can redistribute it and/or modify
7 dnl it under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version 2 of the License, or
9 dnl (at your option) any later version.
10 dnl
11 dnl This program is distributed in the hope that it will be useful,
12 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 dnl GNU General Public License for more details.
15 dnl
16 dnl You should have received a copy of the GNU General Public License
17 dnl along with this program; if not, write to the Free Software
18 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 dnl Process this file with autoconf to produce a configure script.
21
22 AC_INIT(server.c)
23 AC_CONFIG_HEADER(config.h:config.in)
24
25 AC_PROG_CC
26 AM_PROG_CC_STDC
27
28 AC_CANONICAL_SYSTEM
29
30 AC_PROG_INSTALL
31
32 AC_STDC_HEADERS
33
34 AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h)
35
36 . ${srcdir}/../configure.host
37
38 . ${srcdir}/../configure.tgt
39
40 frags=
41 host_makefile_frag=${srcdir}/../config/${gdb_host_cpu}/${gdb_host}.mh
42 if test ! -f ${host_makefile_frag}; then
43 AC_MSG_ERROR("*** GDB remote does not support host ${host}")
44 fi
45 frags="$frags $host_makefile_frag"
46
47 target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/${gdb_target}.mt
48 if test ! -f ${target_makefile_frag}; then
49 AC_MSG_ERROR("*** GDB remote does not support target ${target}")
50 fi
51 frags="$frags $target_makefile_frag"
52
53 AC_SUBST_FILE(host_makefile_frag)
54 AC_SUBST_FILE(target_makefile_frag)
55 AC_SUBST(frags)
56
57 changequote(,)dnl
58 hostfile=`sed -n '
59 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
60 ' ${host_makefile_frag}`
61
62 targetfile=`sed -n '
63 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
64 ' ${target_makefile_frag}`
65
66 if test "${target}" = "${host}"; then
67 nativefile=`sed -n '
68 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
69 ' ${host_makefile_frag}`
70 fi
71 changequote([,])dnl
72
73 AC_OUTPUT(Makefile)
This page took 0.031807 seconds and 4 git commands to generate.