config.guess: introduce intermediate variable with uname results

This will allow quoting to be significantly simplified in another
pass through the file.

* config.guess: Introduce GUESS variable to hold results of uname analysis.
This commit is contained in:
Jacob Bachmeyer 2021-05-24 23:05:16 -05:00 committed by Dmitry V. Levin
parent 4550d2f15b
commit d9728ee231

9
config.guess vendored
View File

@ -84,6 +84,9 @@ if test $# != 0; then
exit 1
fi
# Just in case it came from the environment.
GUESS=
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
@ -1498,6 +1501,12 @@ EOF
exit ;;
esac
# Do we have a guess based on uname results?
if test "x$GUESS" != x; then
echo "$GUESS"
exit
fi
# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF