Makefile.inc1: Print the right PATH for missing install tool error

We override PATH for which but then go and print the non-overridden
PATH, which leads to rather confusing messages.

Fixes:	5bb9250e0a ("Add necessary Makefile.inc1 infrastructure for building on non-FreeBSD")
(cherry picked from commit 4ebd18cf35)
This commit is contained in:
Jessica Clarke 2023-01-29 23:45:49 +00:00 committed by Dag-Erling Smørgrav
parent 93cc70bf9c
commit 3901be6a14

View file

@ -1376,7 +1376,7 @@ distributeworld installworld stageworld: _installcheck_world .PHONY
if progpath=`env PATH=${TMPPATH} which $$prog`; then \
echo $$progpath; \
else \
echo "Required tool $$prog not found in PATH ($$PATH)." >&2; \
echo "Required tool $$prog not found in PATH ("${TMPPATH:Q}")." >&2; \
exit 1; \
fi; \
done); \