From 30452bbe7e68581cdb0cd5004e6c4d4d5c9536e8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 23 Mar 2015 22:19:41 -0400 Subject: sim: fix sim-hardware configure option The current default handling for the --enable-sim-hardware option ends up forcing the value to whatever is set as the first argument when calling the macro (by virtue of how autoconf works). Relocate the setup code to the 4th parameter of the AC_ARG_ENABLE macro to fix it. This was caused by the simplification work in 1517bd274290e06af498ef7e49. Reported-by: Hans-Peter Nilsson --- sim/mips/configure | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sim/mips/configure') diff --git a/sim/mips/configure b/sim/mips/configure index 60c1cf8..03f34f2 100755 --- a/sim/mips/configure +++ b/sim/mips/configure @@ -14007,12 +14007,6 @@ case "${target}" in ;; esac -if test x"$hw_enabled" != x"no"; then - enable_sim_hardware=yes -else - enable_sim_hardware=no -fi - if test "$hw_devices"; then hardware="$hw_devices" else @@ -14027,6 +14021,8 @@ sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\ # Check whether --enable-sim-hardware was given. if test "${enable_sim_hardware+set}" = set; then : enableval=$enable_sim_hardware; +else + enable_sim_hardware="$hw_enabled" fi case ${enable_sim_hardware} in -- cgit v1.1