]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/rx/acinclude.m4
sim: rx: merge with common configure script
[thirdparty/binutils-gdb.git] / sim / rx / acinclude.m4
CommitLineData
e173c80f
MF
1dnl Copyright (C) 1997-2021 Free Software Foundation, Inc.
2dnl
4f8d4a38
DD
3dnl This program is free software; you can redistribute it and/or modify
4dnl it under the terms of the GNU General Public License as published by
5dnl the Free Software Foundation; either version 3 of the License, or
6dnl (at your option) any later version.
7dnl
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11dnl GNU General Public License for more details.
12dnl
13dnl You should have received a copy of the GNU General Public License
14dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
15dnl
e173c80f 16dnl NB: This file is included in sim/configure, so keep settings namespaced.
4488e43c
MF
17AC_MSG_CHECKING([whether sim rx should be cycle accurate])
18AC_ARG_ENABLE(sim-rx-cycle-accurate,
19[AS_HELP_STRING([--disable-sim-rx-cycle-accurate],
8d0978fb 20 [Disable cycle accurate simulation (faster runtime)])],
93378652
DD
21[case "${enableval}" in
22yes | no) ;;
4488e43c 23*) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim-rx-cycle-accurate option) ;;
93378652 24esac])
4488e43c 25if test "x${enable_sim_rx_cycle_accurate}" != xno; then
e173c80f 26 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
4488e43c
MF
27 AC_MSG_RESULT([yes])
28else
29 AC_MSG_RESULT([no])
93378652 30fi
e173c80f 31AC_SUBST(SIM_RX_CYCLE_ACCURATE_FLAGS)