2N/A# Configuration validation subroutine script. 2N/A# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2N/A# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 2N/A# This file is (in principle) common to ALL GNU software. 2N/A# The presence of a machine in this file suggests that SOME GNU software 2N/A# can handle that machine. It does not imply ALL GNU software can. 2N/A# This file is free software; you can redistribute it and/or modify 2N/A# it under the terms of the GNU General Public License as published by 2N/A# the Free Software Foundation; either version 2 of the License, or 2N/A# (at your option) any later version. 2N/A# This program is distributed in the hope that it will be useful, 2N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A# GNU General Public License for more details. 2N/A# You should have received a copy of the GNU General Public License 2N/A# along with this program; if not, write to the Free Software 2N/A# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2N/A# As a special exception to the GNU General Public License, if you 2N/A# distribute this file as part of a program that contains a 2N/A# configuration script generated by Autoconf, you may include it under 2N/A# the same distribution terms that you use for the rest of that program. 2N/A# Please send patches to <config-patches@gnu.org>. Submit a context 2N/A# diff and a properly formatted ChangeLog entry. 2N/A# Configuration subroutine to validate and canonicalize a configuration type. 2N/A# Supply the specified configuration type as an argument. 2N/A# If it is invalid, we print an error message on stderr and exit with code 1. 2N/A# Otherwise, we print the canonical config type on stdout and succeed. 2N/A# This file is supposed to be the same for all GNU packages 2N/A# and recognize all the CPU types, system types and aliases 2N/A# that are meaningful with *any* GNU software. 2N/A# Each package is responsible for reporting which valid configurations 2N/A# it does not support. The user should be able to distinguish 2N/A# a failure to support a valid configuration from a meaningless 2N/A# The goal of this file is to map all the various variations of a given 2N/A# machine specification into a single specification in the form: 2N/A# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 2N/A# or in some cases, the newer four-part form: 2N/A# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 2N/A# It is wrong to echo any other type of specification. 2N/AUsage: $0 [OPTION] CPU-MFR-OPSYS 2N/ACanonicalize a configuration name. 2N/A -h, --help print this help, then exit 2N/A -t, --time-stamp print date of last modification, then exit 2N/A -v, --version print version number, then exit 2N/AReport bugs and patches to <config-patches@gnu.org>." 2N/ACopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 2N/AFree Software Foundation, Inc. 2N/AThis is free software; see the source for copying conditions. There is NO 2N/Awarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 2N/ATry \`$me --help' for more information." 2N/A -- )
# Stop option processing 2N/A - )
# Use stdin as input. 2N/A # First pass through any local machine types. 2N/A# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 2N/A# Here we must recognize all the valid KERNEL-OS combinations. 2N/A### Let's recognize common machines as not being operating systems so 2N/A### recognize some manufacturers as not being operating systems, so we 2N/A### can provide default operating systems below. 2N/A # Prevent following clause from handling this invalid input. 2N/A # Don't forget version if it is 3.2v4 or newer. 2N/A # Don't forget version if it is 3.2v4 or newer. 2N/A# Decode aliases for certain CPU-COMPANY combinations. 2N/A # Recognize the basic CPU types without company name. 2N/A # Some are omitted here because they have special meanings below. 2N/A # Motorola 68HC11/12. 2N/A # We use `pc' rather than `unknown' 2N/A # because (1) that's what they normally are, and 2N/A # (2) the word "unknown" tends to confuse beginning users. 2N/A # Object if more than one company name word. 2N/A # Recognize the basic CPU types with company name. 2N/A # Recognize the various machine names and aliases which stand 2N/A # for a CPU type and a company and sometimes even an OS. 2N/A # FIXME: really hppa2.0-hp 2N/A # FIXME: really hppa2.0-hp 2N/A# I'm not sure what "Sysv32" means. Should this be sysv3.2? 2N/A# Here we handle the default manufacturer of certain CPU types. It is in 2N/A# some cases the only manufacturer, in others, it is the most popular. 2N/A # there are many clones, so DEC is not a safe bet 2N/A # Make sure to match an already-canonicalized machine name. 2N/A# Here we canonicalize certain aliases for manufacturers. 2N/A# Decode manufacturer-specific aliases for certain operating systems. 2N/A # First match some system type aliases 2N/A # that might get confused with valid system types. 2N/A # -solaris* is a basic system type, with this one exception. 2N/A # First accept the basic system types. 2N/A # The portable systems comes first. 2N/A # Each alternative MUST END IN A *, to match a version number. 2N/A # -sysv* is not here because it comes later, after sysvr4. 2N/A # Remember, each alternative MUST END IN *, to match a version number. 2N/A # Preserve the version number of sinix5. 2N/A # This must come after -sysvr4. 2N/A # Get rid of the `-' at the beginning of $os. 2N/A# Here we handle the default operating systems that come with various machines. 2N/A# The value should be what the vendor currently ships out the door with their 2N/A# machine or put another way, the most popular os provided with the machine. 2N/A# Note that if you're going to try to match "-MANUFACTURER" here (say, 2N/A# "-sun"), then you have to tell the case statement up towards the top 2N/A# that MANUFACTURER isn't an operating system. Otherwise, code above 2N/A# will signal an error saying that MANUFACTURER isn't an operating 2N/A# system, and we'll never get to this point. 2N/A # This must come before the *-dec entry. 2N/A # This also exists in the configure program, but was not the 2N/A *-
tti)
# must be before sparc entry or we get the wrong os. 2N/A# Here we handle the case where we know the os, and the CPU type, but not the 2N/A# manufacturer. We pick the logical manufacturer. 2N/A# eval: (add-hook 'write-file-hooks 'time-stamp) 2N/A# time-stamp-start: "timestamp='" 2N/A# time-stamp-format: "%:y-%02m-%02d" 2N/A# time-stamp-end: "'"