+2021-06-13 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (SIM_EXTRA_CFLAGS): Set to @sim_cycle_accurate_flags@.
+ * configure.ac: Move CYCLE_ACCURATE define from AC_DEFINE to
+ AC_SUBST.
+ * config.in, configure: Regenerate.
+
2021-06-12 Mike Frysinger <vapier@gentoo.org>
* README.txt: Change cycle-stats to sim-profile.
## COMMON_PRE_CONFIG_FRAG
-SIM_EXTRA_CFLAGS = -Wall
+SIM_EXTRA_CFLAGS = @sim_cycle_accurate_flags@
SIM_RUN_OBJS = \
main.o \
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
-/* --enable-cycle-accurate */
-#undef CYCLE_ACCURATE
-
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#undef ENABLE_NLS
sim_bitsize
sim_alignment
cgen_breaks
+sim_cycle_accurate_flags
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10747 "configure"
+#line 10748 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10853 "configure"
+#line 10854 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
echo enable_cycle_accurate is $enable_cycle_accurate
if test "x${enable_cycle_accurate}" != xno; then
-
-$as_echo "#define CYCLE_ACCURATE 1" >>confdefs.h
-
+ sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
fi
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
echo enable_cycle_accurate is $enable_cycle_accurate
if test "x${enable_cycle_accurate}" != xno; then
- AC_DEFINE([CYCLE_ACCURATE], 1, [--enable-cycle-accurate])
+ sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
fi
+AC_SUBST(sim_cycle_accurate_flags)
SIM_AC_OUTPUT