Make target_desc::compatible an std::vector
[deliverable/binutils-gdb.git] / sim / configure.ac
CommitLineData
b7026657 1dnl Process this file with autoconf to produce a configure script.
d6416cdc 2m4_include([../config/override.m4])
b7026657
AC
3AC_PREREQ(2.59)dnl
4AC_INIT(Makefile.in)
5
6AC_PROG_CC
7AC_PROG_INSTALL
8AC_CHECK_TOOL(AR, ar)
9AC_CHECK_TOOL(RANLIB, ranlib, :)
10
b7026657
AC
11AC_CANONICAL_SYSTEM
12AC_ARG_PROGRAM
13AC_PROG_CC
14AC_SUBST(CFLAGS)
15AC_SUBST(HDEFINES)
16AR=${AR-ar}
17AC_SUBST(AR)
18AC_PROG_RANLIB
19
20# Put a plausible default for CC_FOR_BUILD in Makefile.
5c887dd5
JB
21if test -z "$CC_FOR_BUILD"; then
22 if test "x$cross_compiling" = "xno"; then
23 CC_FOR_BUILD='$(CC)'
24 else
25 CC_FOR_BUILD=gcc
26 fi
b7026657
AC
27fi
28AC_SUBST(CC_FOR_BUILD)
4b164edf
AS
29CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
30AC_SUBST(CFLAGS_FOR_BUILD)
b7026657
AC
31
32# If a cpu ever has more than one simulator to choose from, use
33# --enable-sim=... to choose.
34AC_ARG_ENABLE(sim,
8d0978fb 35[AS_HELP_STRING([--enable-sim], [Enable the GNU simulator])],
b7026657
AC
36[case "${enableval}" in
37yes | no) ;;
38*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
39esac])
40
119da465
MF
41m4_define([SIM_ARCH], [
42 sim_arch=$1
43 AC_CONFIG_SUBDIRS($1)
44])
b7026657 45if test "${enable_sim}" != no; then
119da465 46 sinclude(configure.tgt)
6dae8a88 47 AC_CONFIG_SUBDIRS(testsuite)
119da465 48 if test "$sim_igen" = yes; then
b7026657
AC
49 AC_CONFIG_SUBDIRS(igen)
50 fi
51fi
52
53AC_OUTPUT(Makefile)
54
55exit 0
This page took 0.573638 seconds and 4 git commands to generate.