1 dnl Copyright (C) 1997-2024 Free Software Foundation, Inc.
3 dnl This program is free software; you can redistribute it and/or modify
4 dnl it under the terms of the GNU General Public License as published by
5 dnl the Free Software Foundation; either version 3 of the License, or
6 dnl (at your option) any later version.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 dnl GNU General Public License for more details.
13 dnl You should have received a copy of the GNU General Public License
14 dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16 dnl NB: This file is included in sim/configure, so keep settings namespaced.
17 AC_MSG_CHECKING([whether sim rx should be cycle accurate])
18 AC_ARG_ENABLE(sim-rx-cycle-accurate,
19 [AS_HELP_STRING([--disable-sim-rx-cycle-accurate],
20 [Disable cycle accurate simulation (faster runtime)])],
21 [case "${enableval}" in
23 *) AC_MSG_ERROR(bad value ${enableval} given for --enable-sim-rx-cycle-accurate option) ;;
25 if test "x${enable_sim_rx_cycle_accurate}" != xno; then
26 SIM_RX_CYCLE_ACCURATE_FLAGS="-DCYCLE_ACCURATE"
31 AC_SUBST(SIM_RX_CYCLE_ACCURATE_FLAGS)