Remove extraneous "(cached)" line when the -C option is used.

We do not need to call AC_CACHE_VAL() to ensure that a variable is
cached, its name just needs to match the pattern *_cv_*.
This commit is contained in:
Todd C. Miller
2022-12-06 13:47:03 -07:00
parent 3cdd044c68
commit 2c97e7f471
2 changed files with 2 additions and 9 deletions

9
configure vendored
View File

@@ -17464,14 +17464,7 @@ if test -n "$sudo_cv_prev_host"; then
as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
fi
fi
if test ${sudo_cv_prev_host+y}
then :
printf %s "(cached) " >&6
else case e in #(
e) sudo_cv_prev_host="$host" ;;
esac
fi
sudo_cv_prev_host="$host"
if test -n "$host_os"; then
OS=`echo $host_os | sed 's/[0-9].*//'`

View File

@@ -1778,7 +1778,7 @@ if test -n "$sudo_cv_prev_host"; then
AC_MSG_ERROR([config.cache was created on a different host; remove it and re-run configure.])
fi
fi
AC_CACHE_VAL(sudo_cv_prev_host, sudo_cv_prev_host="$host")
sudo_cv_prev_host="$host"
dnl
dnl We want to be able to differentiate between different rev's