mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-26 09:06:38 +12:00
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:
parent
4550d2f15b
commit
d9728ee231
9
config.guess
vendored
9
config.guess
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user