diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-19 20:06:12 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-21 22:20:18 -0400 |
commit | 456ef1c1d43c0407801fb2d59db355472be8a554 (patch) | |
tree | ae7c5f7bbef0f9f9b05f73d97c8131538b52a965 /sim/m4 | |
parent | be0387eed099dbc2f2bdc92fbf60e04f846c3b2b (diff) | |
download | binutils-456ef1c1d43c0407801fb2d59db355472be8a554.zip binutils-456ef1c1d43c0407801fb2d59db355472be8a554.tar.gz binutils-456ef1c1d43c0407801fb2d59db355472be8a554.tar.bz2 |
sim: unify hardware settings
Move these options up to the common dir so we only test & export
them once across all ports.
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_option_hardware.m4 | 11 | ||||
-rw-r--r-- | sim/m4/sim_ac_output.m4 | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/sim/m4/sim_ac_option_hardware.m4 b/sim/m4/sim_ac_option_hardware.m4 index 1410183..ed53cd2 100644 --- a/sim/m4/sim_ac_option_hardware.m4 +++ b/sim/m4/sim_ac_option_hardware.m4 @@ -39,16 +39,7 @@ elif test "$enable_sim_hardware" = yes; then else AC_MSG_ERROR([unknown argument "$enable_sim_hardware"]) fi -dnl AM_CONDITIONAL([SIM_ENABLE_HW], [test "$enable_sim_hardware" = "yes"]) -if test "$enable_sim_hardware" = "yes"; then - SIM_ENABLE_HW_TRUE= - SIM_ENABLE_HW_FALSE='#' -else - SIM_ENABLE_HW_TRUE='#' - SIM_ENABLE_HW_FALSE= -fi -AC_SUBST(SIM_ENABLE_HW_TRUE) -AC_SUBST(SIM_ENABLE_HW_FALSE) +AM_CONDITIONAL([SIM_ENABLE_HW], [test "$enable_sim_hardware" = "yes"]) AC_MSG_RESULT(${enable_sim_hardware}) AC_SUBST(sim_hw_cflags) AC_SUBST(sim_hw_sockser) diff --git a/sim/m4/sim_ac_output.m4 b/sim/m4/sim_ac_output.m4 index 8d26042..aba45b0 100644 --- a/sim/m4/sim_ac_output.m4 +++ b/sim/m4/sim_ac_output.m4 @@ -21,8 +21,6 @@ dnl one afterwards. The two pieces of the common fragment are inserted into dnl the target's fragment at the appropriate points. AC_DEFUN([SIM_AC_OUTPUT], [dnl -AC_REQUIRE([SIM_AC_OPTION_HARDWARE])dnl - dnl Make @cgen_breaks@ non-null only if the sim uses CGEN. cgen_breaks="" if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then |