diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-07-14 00:00:16 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-07-14 00:00:16 +0200 |
commit | 2906d3ed04cbd3bdce8a837746055759afcc9600 (patch) | |
tree | 4a9a3a2d8a530cdc8fddd5c0e6f922ffa7e40de6 /config.guess | |
parent | 1a3fa1b2b067a42e0cb820d32e9067e8ba96354f (diff) | |
download | gmp-2906d3ed04cbd3bdce8a837746055759afcc9600.tar.gz |
* config.guess: Recognise pc:*:*:* as an x86, for djgpp.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/config.guess b/config.guess index eeb8d8703..08018f497 100755 --- a/config.guess +++ b/config.guess @@ -78,12 +78,17 @@ fi # First make a best effort at recognizing x86 CPU type and leave it in X86CPU. # If we fail, set X86CPU to UNAME_MACHINE +# +# DJGPP v2 (or 2.03 at least) always gives "pc" for uname -m, and the +# OEM for uname -s. Eg. pc:MS-DOS:6:2 on MS-DOS 6.21. The list of +# possible OEMs is in src/libc/dos/dos/getdos_v.c of djlsr203.zip, but +# just pc:*:*:* seems ok. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - i?86:*:*:* | i86pc:*:*:*) - if test ${UNAME_MACHINE} = i86pc ; then - UNAME_MACHINE=i386 - fi + i?86:*:*:* | i86pc:*:*:* | pc:*:*:*) + case "${UNAME_MACHINE}" in + i86pc | pc) UNAME_MACHINE=i386 ;; + esac cat <<EOF >${dummy}1.s .globl cpuid .globl _cpuid |