OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [nlm/] [configure.in] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.