* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / nlm / configure.in
CommitLineData
119a5f4e
C
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.3)dnl
3AC_INIT(gdbserve.c)
27847c6f 4
119a5f4e
C
5AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
6AC_CANONICAL_SYSTEM
7AC_ARG_PROGRAM
27847c6f 8
119a5f4e 9AC_PROG_INSTALL
27847c6f
SG
10
11# Map target cpu into the config cpu subdirectory name.
12# The default is $target_cpu.
119a5f4e 13changequote(,)dnl
27847c6f 14case "${target_cpu}" in
27847c6f
SG
15alpha) gdb_target_cpu=alpha ;;
16c[12]) gdb_target_cpu=convex ;;
17hppa*) gdb_target_cpu=pa ;;
7382b3b1 18i[345]86) gdb_target_cpu=i386 ;;
27847c6f
SG
19m68*) gdb_target_cpu=m68k ;;
20np1) gdb_target_cpu=gould ;;
21pn) gdb_target_cpu=gould ;;
22pyramid) gdb_target_cpu=pyr ;;
23sparc*) gdb_target_cpu=sparc ;;
24*) gdb_target_cpu=$target_cpu ;;
27847c6f 25esac
119a5f4e 26changequote([,])dnl
27847c6f 27
3be5f039
C
28target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt
29if [ ! -f ${target_makefile_frag} ]; then
119a5f4e 30 AC_MSG_ERROR("*** GDBSERVE does not support target ${target}")
27847c6f
SG
31fi
32
119a5f4e
C
33dnl We have to assign the same value to other variables because autoconf
34dnl doesn't provide a mechanism to substitute a replacement keyword with
35dnl arbitrary data or pathnames.
36dnl
37target_makefile_frag_path=$target_makefile_frag
38AC_SUBST(target_makefile_frag_path)
39AC_SUBST_FILE(target_makefile_frag)
40
3be5f039
C
41cpufile=`sed -n '
42s/CPU_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
43' ${target_makefile_frag}
27847c6f 44
27847c6f
SG
45files=
46links=
dd55ca70 47rm -f cpu.h
b7da2494 48if [ "${cpufile}" != "" ]; then
dd55ca70
SG
49 files="${files} ${cpufile}.h"
50 links="${links} cpu.h"
27847c6f 51fi
119a5f4e
C
52
53AC_LINK_FILES($files, $links)
54AC_OUTPUT(Makefile)
55
This page took 0.074201 seconds and 4 git commands to generate.