sim: rx: scope the unique configure flag
authorMike Frysinger <vapier@gentoo.org>
Sun, 20 Jun 2021 04:50:30 +0000 (00:50 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 20 Jun 2021 05:13:14 +0000 (01:13 -0400)
This will make it possible to merge into the common configure by
making sure we never collide with other arches.

sim/rx/ChangeLog
sim/rx/Makefile.in
sim/rx/configure
sim/rx/configure.ac

index e27cba46a62c965cf60e8b701ff14d9215334fe8..f1c0a29d79508f9f0abdc38d324f879afb991532 100644 (file)
@@ -1,3 +1,10 @@
+2021-06-20  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.in: Rename sim_cycle_accurate_flags to
+       sim_rx_cycle_accurate_flags.
+       * configure.ac: Likewise.
+       * configure: Regenerate.
+
 2021-06-20  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac (SIM_AC_COMMON): Delete.
index 799febd61b5ce7c055ec937ec4354d3b82a1b60b..b1023dd2b9cf957d8422ac2471404cfd7f2587b4 100644 (file)
@@ -20,7 +20,7 @@
 
 ## COMMON_PRE_CONFIG_FRAG
 
-SIM_EXTRA_CFLAGS = @sim_cycle_accurate_flags@
+SIM_EXTRA_CFLAGS = @sim_rx_cycle_accurate_flags@
 
 SIM_RUN_OBJS = \
        main.o \
index e5fbf24568643dea66ce8044395c3e5f87d9bfa2..38e6ed06a839907190a2c99f6d02db34465d27da 100755 (executable)
@@ -590,7 +590,7 @@ sim_scache
 sim_float
 sim_bitsize
 cgen_breaks
-sim_cycle_accurate_flags
+sim_rx_cycle_accurate_flags
 target_alias
 host_alias
 build_alias
@@ -635,7 +635,7 @@ sim_hw_cflags'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
-enable_cycle_accurate
+enable_sim_rx_cycle_accurate
 enable_sim_hardware
 '
       ac_precious_vars='build_alias
@@ -1248,7 +1248,7 @@ Optional Features:
   --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-  --disable-cycle-accurate
+  --disable-sim-rx-cycle-accurate
                           Disable cycle accurate simulation (faster runtime)
   --enable-sim-hardware=LIST
                           Specify the hardware to be included in the build.
@@ -1683,19 +1683,23 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-# Check whether --enable-cycle-accurate was given.
-if test "${enable_cycle_accurate+set}" = set; then :
-  enableval=$enable_cycle_accurate; case "${enableval}" in
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sim rx should be cycle accurate" >&5
+$as_echo_n "checking whether sim rx should be cycle accurate... " >&6; }
+# Check whether --enable-sim-rx-cycle-accurate was given.
+if test "${enable_sim_rx_cycle_accurate+set}" = set; then :
+  enableval=$enable_sim_rx_cycle_accurate; case "${enableval}" in
 yes | no) ;;
-*)     as_fn_error $? "bad value ${enableval} given for --enable-cycle-accurate option" "$LINENO" 5 ;;
+*)     as_fn_error $? "bad value ${enableval} given for --enable-sim-rx-cycle-accurate option" "$LINENO" 5 ;;
 esac
 fi
 
-
-echo enable_cycle_accurate is $enable_cycle_accurate
-
-if test "x${enable_cycle_accurate}" != xno; then
-  sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
+if test "x${enable_sim_rx_cycle_accurate}" != xno; then
+  sim_rx_cycle_accurate_flags="-DCYCLE_ACCURATE"
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 fi
 
 
index 78fc33bac37a492966dacfb616e08da5351789d2..2f012f981487a60ac5903642e9a95d781e6c6f42 100644 (file)
@@ -21,19 +21,20 @@ dnl
 AC_INIT(Makefile.in)
 AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
 
-AC_ARG_ENABLE(cycle-accurate,
-[AS_HELP_STRING([--disable-cycle-accurate],
+AC_MSG_CHECKING([whether sim rx should be cycle accurate])
+AC_ARG_ENABLE(sim-rx-cycle-accurate,
+[AS_HELP_STRING([--disable-sim-rx-cycle-accurate],
                [Disable cycle accurate simulation (faster runtime)])],
 [case "${enableval}" in
 yes | no) ;;
-*)     AC_MSG_ERROR(bad value ${enableval} given for --enable-cycle-accurate option) ;;
+*)     AC_MSG_ERROR(bad value ${enableval} given for --enable-sim-rx-cycle-accurate option) ;;
 esac])
-
-echo enable_cycle_accurate is $enable_cycle_accurate
-
-if test "x${enable_cycle_accurate}" != xno; then
-  sim_cycle_accurate_flags="-DCYCLE_ACCURATE"
+if test "x${enable_sim_rx_cycle_accurate}" != xno; then
+  sim_rx_cycle_accurate_flags="-DCYCLE_ACCURATE"
+  AC_MSG_RESULT([yes])
+else
+  AC_MSG_RESULT([no])
 fi
-AC_SUBST(sim_cycle_accurate_flags)
+AC_SUBST(sim_rx_cycle_accurate_flags)
 
 SIM_AC_OUTPUT