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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [sim/] [configure.ac] - Blame information for rev 373

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

Line No. Rev Author Line
1 330 jeremybenn
dnl Process this file with autoconf to produce a configure script.
2
m4_include([../config/override.m4])
3
AC_PREREQ(2.59)dnl
4
AC_INIT(Makefile.in)
5
 
6
AC_PROG_CC
7
AC_PROG_INSTALL
8
AC_CHECK_TOOL(AR, ar)
9
AC_CHECK_TOOL(RANLIB, ranlib, :)
10
 
11
AC_CANONICAL_SYSTEM
12
AC_ARG_PROGRAM
13
AC_PROG_CC
14
AC_SUBST(CFLAGS)
15
AC_SUBST(HDEFINES)
16
AR=${AR-ar}
17
AC_SUBST(AR)
18
AC_PROG_RANLIB
19
 
20
# Put a plausible default for CC_FOR_BUILD in Makefile.
21
if test "x$cross_compiling" = "xno"; then
22
  CC_FOR_BUILD='$(CC)'
23
else
24
  CC_FOR_BUILD=gcc
25
fi
26
AC_SUBST(CC_FOR_BUILD)
27
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
28
AC_SUBST(CFLAGS_FOR_BUILD)
29
 
30
# If a cpu ever has more than one simulator to choose from, use
31
# --enable-sim=... to choose.
32
AC_ARG_ENABLE(sim,
33
[  --enable-sim ],
34
[case "${enableval}" in
35
yes | no) ;;
36
*)      AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
37
esac])
38
 
39
m4_define([SIM_ARCH], [
40
  sim_arch=$1
41
  AC_CONFIG_SUBDIRS($1)
42
])
43
if test "${enable_sim}" != no; then
44
   sinclude(configure.tgt)
45
   if test "$sim_testsuite" = yes; then
46
      AC_CONFIG_SUBDIRS(testsuite)
47
   fi
48
   if test "$sim_common" = yes; then
49
      AC_CONFIG_SUBDIRS(common)
50
   fi
51
   if test "$sim_igen" = yes; then
52
      AC_CONFIG_SUBDIRS(igen)
53
   fi
54
fi
55
 
56
AC_OUTPUT(Makefile)
57
 
58
exit 0

powered by: WebSVN 2.1.0

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