aboutsummaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1993-05-26 06:06:37 +0000
committerPer Bothner <per@bothner.com>1993-05-26 06:06:37 +0000
commit5c49a353dfaa26d9e7013f04d320c99531dfe4ab (patch)
treef23970bac409ab22227cbae5f79dc65b8ba2bb4b /config.guess
parente9f687d59b7956a2ec1b3bb5d46b5dce4e4e58fe (diff)
downloadfsf-binutils-gdb-5c49a353dfaa26d9e7013f04d320c99531dfe4ab.zip
fsf-binutils-gdb-5c49a353dfaa26d9e7013f04d320c99531dfe4ab.tar.gz
fsf-binutils-gdb-5c49a353dfaa26d9e7013f04d320c99531dfe4ab.tar.bz2
* config.guess: Fix typo. Avoid #elif (not in K&R 1).
Recognize SunOS 5.* only (and not [6-9].*) as being Solaris2.
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess9
1 files changed, 5 insertions, 4 deletions
diff --git a/config.guess b/config.guess
index eda690f..a9d5b1f 100755
--- a/config.guess
+++ b/config.guess
@@ -17,7 +17,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#
-# This script attempts to guess a cononical system name similar to
+# This script attempts to guess a canonical system name similar to
# config.sub. If it succeeds, it prints the system name on stdout, and
# exits with 0. Otherwise, it prints an error message on stderr, and
# exits with 1.
@@ -40,8 +40,8 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
alpha:OSF1:1.*:*)
echo alpha-dec-osf${UNAME_RELEASE}
exit 0 ;;
- sun4*:SunOS:[5-9].*:*)
- echo sparc-sun-solaris2
+ sun4*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit 0 ;;
sun4*:SunOS:*:*)
echo sparc-sun-sunos${UNAME_RELEASE}
@@ -160,7 +160,8 @@ main()
#if defined(sequent)
#if defined(i386)
printf("i386-sequent-dynix\n"); exit(0);
-#elif defined (ns32000)
+#endif
+#if defined (ns32000)
printf("ns32k-sequent-dynix\n"); exit(0);
#endif
#endif