head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.10
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.8
	perseant-exfatfs-base:1.3
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.6
	netbsd-10-base:1.3
	netbsd-9-3-RELEASE:1.2
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.4
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.3.0.2
	cjep_staticlib_x-base:1.3
	netbsd-9-1-RELEASE:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	is-mlppp:1.2.0.16
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.14
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	flex-2-6-4:1.1.1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.2.0.12
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.10
	pgoyette-compat-base:1.2
	matt-nb8-mediatek:1.2.0.8
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.6
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.4
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.2
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	bouyer-socketcan:1.1.1.2.0.2
	bouyer-socketcan-base:1.1.1.2
	pgoyette-localcount-20170107:1.1.1.2
	flex-2-6-3:1.1.1.2
	pgoyette-localcount-20161104:1.1.1.1
	localcount-20160914:1.1.1.1
	pgoyette-localcount-20160806:1.1.1.1
	pgoyette-localcount-20160726:1.1.1.1
	pgoyette-localcount:1.1.1.1.0.2
	pgoyette-localcount-base:1.1.1.1
	flex-2-6-0:1.1.1.1
	FLEX:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2020.11.17.10.35.11;	author rin;	state Exp;
branches;
next	1.2;
commitid	hRb62eUrAIizbewC;

1.2
date	2017.02.01.09.26.40;	author sevan;	state Exp;
branches;
next	1.1;
commitid	GAil0cnWzrQL6eEz;

1.1
date	2016.01.09.15.43.26;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	gZAvxMYao3aXUgQy;

1.1.1.1
date	2016.01.09.15.43.26;	author christos;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;
commitid	gZAvxMYao3aXUgQy;

1.1.1.2
date	2017.01.02.16.26.31;	author christos;	state Exp;
branches
	1.1.1.2.2.1;
next	;
commitid	LJszUt5pJWr4CpAz;

1.1.1.1.2.1
date	2017.01.07.08.53.49;	author pgoyette;	state Exp;
branches;
next	1.1.1.1.2.2;
commitid	uEL0C1YuiJrlV0Bz;

1.1.1.1.2.2
date	2017.03.20.06.52.20;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.1.1.2.2.1
date	2017.04.21.16.51.24;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;


desc
@@


1.3
log
@Support aarch64eb in */config.guess.

Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@@. Thanks!
@
text
@#! /bin/sh
# Attempt to guess a canonical system name.
#   Copyright 1992-2017 Free Software Foundation, Inc.

timestamp='2017-01-01'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
#
# Please send patches to <config-patches@@gnu.org>.


me=`echo "$0" | sed -e 's,.*/,,'`

usage="\
Usage: $0 [OPTION]

Output the configuration name of the system \`$me' is run on.

Operation modes:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches@@gnu.org>."

version="\
GNU config.guess ($timestamp)

Originally written by Per Bothner.
Copyright 1992-2017 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

help="
Try \`$me --help' for more information."

# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )	# Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help" >&2
       exit 1 ;;
    * )
       break ;;
  esac
done

if test $# != 0; then
  echo "$me: too many arguments$help" >&2
  exit 1
fi

trap 'exit 1' 1 2 15

# 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
# headache to deal with in a portable fashion.

# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.

# Portable tmp directory creation inspired by the Autoconf team.

set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int x;" > $dummy.c ;
	for c in cc gcc c89 c99 ; do
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
	     CC_FOR_BUILD="$c"; break ;
	  fi ;
	done ;
	if test x"$CC_FOR_BUILD" = x ; then
	  CC_FOR_BUILD=no_compiler_found ;
	fi
	;;
 ,,*)   CC_FOR_BUILD=$CC ;;
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'

# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
	PATH=$PATH:/.attbin ; export PATH
fi

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

case "${UNAME_SYSTEM}" in
Linux|GNU|GNU/*)
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu

	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#else
	LIBC=gnu
	#endif
	EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	;;
esac

# Note: order is significant - the case branches are not exclusive.

case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    *:NetBSD:*:*)
	# NetBSD (nbsd) targets should (where applicable) match one or
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
	# switched to ELF, *-*-netbsd* would select the old
	# object file format.  This provides both forward
	# compatibility and a consistent mechanism for selecting the
	# object file format.
	#
	# Note: NetBSD doesn't particularly care about the vendor
	# portion of the name.  We always set it to "unknown".
	sysctl="sysctl -n hw.machine_arch"
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
	case "${UNAME_MACHINE_ARCH}" in
	    aarch64eb) machine=aarch64_be-unknown ;;
	    armeb) machine=armeb-unknown ;;
	    arm*) machine=arm-unknown ;;
	    sh3el) machine=shl-unknown ;;
	    sh3eb) machine=sh-unknown ;;
	    sh5el) machine=sh5le-unknown ;;
	    earmv*)
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
	esac
	# The Operating System including object format, if it has switched
	# to ELF recently (or will in the future) and ABI.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
		eval $set_cc_for_build
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ELF__
		then
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
		    # Return netbsd for either.  FIX?
		    os=netbsd
		else
		    os=netbsdelf
		fi
		;;
	    *)
		os=netbsd
		;;
	esac
	# Determine ABI tags.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
		;;
	esac
	# The OS release
	# Debian GNU/NetBSD machines have a different userland, and
	# thus, need a distinct triplet. However, they do not need
	# kernel version information, so it can be replaced with a
	# suitable tag, in the style of linux-gnu.
	case "${UNAME_VERSION}" in
	    Debian*)
		release='-gnu'
		;;
	    *)
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
		;;
	esac
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
	# contains redundant information, the shorter form:
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
	echo "${machine}-${os}${release}${abi}"
	exit ;;
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
    *:OpenBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
	exit ;;
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
    *:ekkoBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
	exit ;;
    *:SolidBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
	exit ;;
    macppc:MirBSD:*:*)
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:MirBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
    alpha:OSF1:*:*)
	case $UNAME_RELEASE in
	*4.0)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
		;;
	*5.*)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
	# According to Compaq, /usr/sbin/psrinfo has been available on
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
	# covers most systems running today.  This code pipes the CPU
	# types through head -n 1, so we only detect the type of CPU 0.
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
	case "$ALPHA_CPU_TYPE" in
	    "EV4 (21064)")
		UNAME_MACHINE=alpha ;;
	    "EV4.5 (21064)")
		UNAME_MACHINE=alpha ;;
	    "LCA4 (21066/21068)")
		UNAME_MACHINE=alpha ;;
	    "EV5 (21164)")
		UNAME_MACHINE=alphaev5 ;;
	    "EV5.6 (21164A)")
		UNAME_MACHINE=alphaev56 ;;
	    "EV5.6 (21164PC)")
		UNAME_MACHINE=alphapca56 ;;
	    "EV5.7 (21164PC)")
		UNAME_MACHINE=alphapca57 ;;
	    "EV6 (21264)")
		UNAME_MACHINE=alphaev6 ;;
	    "EV6.7 (21264A)")
		UNAME_MACHINE=alphaev67 ;;
	    "EV6.8CB (21264C)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8AL (21264B)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8CX (21264D)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.9A (21264/EV69A)")
		UNAME_MACHINE=alphaev69 ;;
	    "EV7 (21364)")
		UNAME_MACHINE=alphaev7 ;;
	    "EV7.9 (21364A)")
		UNAME_MACHINE=alphaev79 ;;
	esac
	# A Pn.n version is a patched version.
	# A Vn.n version is a released version.
	# A Tn.n version is a released field test version.
	# A Xn.n version is an unreleased experimental baselevel.
	# 1.2 uses "1.2" for uname -r.
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
    Alpha\ *:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# Should we change UNAME_MACHINE based on the output of uname instead
	# of the specific Alpha model?
	echo alpha-pc-interix
	exit ;;
    21064:Windows_NT:50:3)
	echo alpha-dec-winnt3.5
	exit ;;
    Amiga*:UNIX_System_V:4.0:*)
	echo m68k-unknown-sysv4
	exit ;;
    *:[Aa]miga[Oo][Ss]:*:*)
	echo ${UNAME_MACHINE}-unknown-amigaos
	exit ;;
    *:[Mm]orph[Oo][Ss]:*:*)
	echo ${UNAME_MACHINE}-unknown-morphos
	exit ;;
    *:OS/390:*:*)
	echo i370-ibm-openedition
	exit ;;
    *:z/VM:*:*)
	echo s390-ibm-zvmoe
	exit ;;
    *:OS400:*:*)
	echo powerpc-ibm-os400
	exit ;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
	echo arm-acorn-riscix${UNAME_RELEASE}
	exit ;;
    arm*:riscos:*:*|arm*:RISCOS:*:*)
	echo arm-unknown-riscos
	exit ;;
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
	echo hppa1.1-hitachi-hiuxmpp
	exit ;;
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
	# akee@@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
		echo pyramid-pyramid-sysv3
	else
		echo pyramid-pyramid-bsd
	fi
	exit ;;
    NILE*:*:*:dcosx)
	echo pyramid-pyramid-svr4
	exit ;;
    DRS?6000:unix:4.0:6*)
	echo sparc-icl-nx6
	exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
	case `/usr/bin/uname -p` in
	    sparc) echo sparc-icl-nx7; exit ;;
	esac ;;
    s390x:SunOS:*:*)
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4H:SunOS:5.*:*)
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	echo i386-pc-auroraux${UNAME_RELEASE}
	exit ;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	eval $set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:6*:*)
	# According to config.sub, this is the proper way to canonicalize
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
	# it's likely to be more like Solaris than SunOS4.
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:*:*)
	case "`/usr/bin/arch -k`" in
	    Series*|S4*)
		UNAME_RELEASE=`uname -v`
		;;
	esac
	# Japanese Language versions have a version number like `4.1.3-JL'.
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
	exit ;;
    sun3*:SunOS:*:*)
	echo m68k-sun-sunos${UNAME_RELEASE}
	exit ;;
    sun*:*:4.2BSD:*)
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
	case "`/bin/arch`" in
	    sun3)
		echo m68k-sun-sunos${UNAME_RELEASE}
		;;
	    sun4)
		echo sparc-sun-sunos${UNAME_RELEASE}
		;;
	esac
	exit ;;
    aushp:SunOS:*:*)
	echo sparc-auspex-sunos${UNAME_RELEASE}
	exit ;;
    # The situation for MiNT is a little confusing.  The machine name
    # can be virtually everything (everything which is not
    # "atarist" or "atariste" at least should have a processor
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    # to the lowercase version "mint" (or "freemint").  Finally
    # the system name "TOS" denotes a system which is actually not
    # MiNT.  But MiNT is downward compatible to TOS, so this should
    # be no problem.
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
    m68k:machten:*:*)
	echo m68k-apple-machten${UNAME_RELEASE}
	exit ;;
    powerpc:machten:*:*)
	echo powerpc-apple-machten${UNAME_RELEASE}
	exit ;;
    RISC*:Mach:*:*)
	echo mips-dec-mach_bsd4.3
	exit ;;
    RISC*:ULTRIX:*:*)
	echo mips-dec-ultrix${UNAME_RELEASE}
	exit ;;
    VAX*:ULTRIX*:*:*)
	echo vax-dec-ultrix${UNAME_RELEASE}
	exit ;;
    2020:CLIX:*:* | 2430:CLIX:*:*)
	echo clipper-intergraph-clix${UNAME_RELEASE}
	exit ;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h>  /* for printf() prototype */
	int main (int argc, char *argv[]) {
#else
	int main (argc, argv) int argc; char *argv[]; {
#endif
	#if defined (host_mips) && defined (MIPSEB)
	#if defined (SYSTYPE_SYSV)
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_SVR4)
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
	#endif
	#endif
	  exit (-1);
	}
EOF
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
	    { echo "$SYSTEM_NAME"; exit; }
	echo mips-mips-riscos${UNAME_RELEASE}
	exit ;;
    Motorola:PowerMAX_OS:*:*)
	echo powerpc-motorola-powermax
	exit ;;
    Motorola:*:4.3:PL8-*)
	echo powerpc-harris-powermax
	exit ;;
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
	echo powerpc-harris-powermax
	exit ;;
    Night_Hawk:Power_UNIX:*:*)
	echo powerpc-harris-powerunix
	exit ;;
    m88k:CX/UX:7*:*)
	echo m88k-harris-cxux7
	exit ;;
    m88k:*:4*:R4*)
	echo m88k-motorola-sysv4
	exit ;;
    m88k:*:3*:R3*)
	echo m88k-motorola-sysv3
	exit ;;
    AViiON:dgux:*:*)
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
	then
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
	    then
		echo m88k-dg-dgux${UNAME_RELEASE}
	    else
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
	    fi
	else
	    echo i586-dg-dgux${UNAME_RELEASE}
	fi
	exit ;;
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
	echo m88k-dolphin-sysv3
	exit ;;
    M88*:*:R3*:*)
	# Delta 88k system running SVR3
	echo m88k-motorola-sysv3
	exit ;;
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
	echo m88k-tektronix-sysv3
	exit ;;
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
	echo m68k-tektronix-bsd
	exit ;;
    *:IRIX*:*:*)
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
	exit ;;
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    i*86:AIX:*:*)
	echo i386-ibm-aix
	exit ;;
    ia64:AIX:*:*)
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
	else
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
	exit ;;
    *:AIX:2:3)
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
		#include <sys/systemcfg.h>

		main()
			{
			if (!__power_pc())
				exit(1);
			puts("powerpc-ibm-aix3.2.5");
			exit(0);
			}
EOF
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
		then
			echo "$SYSTEM_NAME"
		else
			echo rs6000-ibm-aix3.2.5
		fi
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
		echo rs6000-ibm-aix3.2.4
	else
		echo rs6000-ibm-aix3.2
	fi
	exit ;;
    *:AIX:*:[4567])
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
		IBM_ARCH=rs6000
	else
		IBM_ARCH=powerpc
	fi
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
	else
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
	exit ;;
    *:AIX:*:*)
	echo rs6000-ibm-aix
	exit ;;
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
	echo romp-ibm-bsd4.4
	exit ;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
	exit ;;                             # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
	echo rs6000-bull-bosx
	exit ;;
    DPX/2?00:B.O.S.:*:*)
	echo m68k-bull-sysv3
	exit ;;
    9000/[34]??:4.3bsd:1.*:*)
	echo m68k-hp-bsd
	exit ;;
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
	echo m68k-hp-bsd4.4
	exit ;;
    9000/[34678]??:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
	    9000/[678][0-9][0-9])
		if [ -x /usr/bin/getconf ]; then
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
		    case "${sc_cpu_version}" in
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
		      532)                      # CPU_PA_RISC2_0
			case "${sc_kernel_bits}" in
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
			esac ;;
		    esac
		fi
		if [ "${HP_ARCH}" = "" ]; then
		    eval $set_cc_for_build
		    sed 's/^		//' << EOF >$dummy.c

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>

		int main ()
		{
		#if defined(_SC_KERNEL_BITS)
		    long bits = sysconf(_SC_KERNEL_BITS);
		#endif
		    long cpu  = sysconf (_SC_CPU_VERSION);

		    switch (cpu)
			{
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
			case CPU_PA_RISC2_0:
		#if defined(_SC_KERNEL_BITS)
			    switch (bits)
				{
				case 64: puts ("hppa2.0w"); break;
				case 32: puts ("hppa2.0n"); break;
				default: puts ("hppa2.0"); break;
				} break;
		#else  /* !defined(_SC_KERNEL_BITS) */
			    puts ("hppa2.0"); break;
		#endif
			default: puts ("hppa1.0"); break;
			}
		    exit (0);
		}
EOF
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
		    test -z "$HP_ARCH" && HP_ARCH=hppa
		fi ;;
	esac
	if [ ${HP_ARCH} = hppa2.0w ]
	then
	    eval $set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
	    then
		HP_ARCH=hppa2.0w
	    else
		HP_ARCH=hppa64
	    fi
	fi
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
	exit ;;
    ia64:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
	exit ;;
    3050*:HI-UX:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <unistd.h>
	int
	main ()
	{
	  long cpu = sysconf (_SC_CPU_VERSION);
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
	     results, however.  */
	  if (CPU_IS_PA_RISC (cpu))
	    {
	      switch (cpu)
		{
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
		}
	    }
	  else if (CPU_IS_HP_MC68K (cpu))
	    puts ("m68k-hitachi-hiuxwe2");
	  else puts ("unknown-hitachi-hiuxwe2");
	  exit (0);
	}
EOF
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
		{ echo "$SYSTEM_NAME"; exit; }
	echo unknown-hitachi-hiuxwe2
	exit ;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
	echo hppa1.1-hp-bsd
	exit ;;
    9000/8??:4.3bsd:*:*)
	echo hppa1.0-hp-bsd
	exit ;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
	echo hppa1.0-hp-mpeix
	exit ;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
	echo hppa1.1-hp-osf
	exit ;;
    hp8??:OSF1:*:*)
	echo hppa1.0-hp-osf
	exit ;;
    i*86:OSF1:*:*)
	if [ -x /usr/sbin/sysversion ] ; then
	    echo ${UNAME_MACHINE}-unknown-osf1mk
	else
	    echo ${UNAME_MACHINE}-unknown-osf1
	fi
	exit ;;
    parisc*:Lites*:*:*)
	echo hppa1.1-hp-lites
	exit ;;
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
	echo c1-convex-bsd
	exit ;;
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
	echo c34-convex-bsd
	exit ;;
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
	echo c38-convex-bsd
	exit ;;
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
	echo c4-convex-bsd
	exit ;;
    CRAY*Y-MP:*:*:*)
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*[A-Z]90:*:*:*)
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
	      -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*TS:*:*:*)
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*T3E:*:*:*)
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*SV1:*:*:*)
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    *:UNICOS/mp:*:*)
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
    5000:UNIX_System_V:4.*:*)
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
	exit ;;
    sparc*:BSD/OS:*:*)
	echo sparc-unknown-bsdi${UNAME_RELEASE}
	exit ;;
    *:BSD/OS:*:*)
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
	exit ;;
    *:FreeBSD:*:*)
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
	    amd64)
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    *)
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	esac
	exit ;;
    i*:CYGWIN*:*)
	echo ${UNAME_MACHINE}-pc-cygwin
	exit ;;
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
    *:MINGW*:*)
	echo ${UNAME_MACHINE}-pc-mingw32
	exit ;;
    *:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
	exit ;;
    i*:PW*:*)
	echo ${UNAME_MACHINE}-pc-pw32
	exit ;;
    *:Interix*:*)
	case ${UNAME_MACHINE} in
	    x86)
		echo i586-pc-interix${UNAME_RELEASE}
		exit ;;
	    authenticamd | genuineintel | EM64T)
		echo x86_64-unknown-interix${UNAME_RELEASE}
		exit ;;
	    IA64)
		echo ia64-unknown-interix${UNAME_RELEASE}
		exit ;;
	esac ;;
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
	echo i${UNAME_MACHINE}-pc-mks
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
	# UNAME_MACHINE based on the output of uname instead of i386?
	echo i586-pc-interix
	exit ;;
    i*:UWIN*:*)
	echo ${UNAME_MACHINE}-pc-uwin
	exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	echo x86_64-unknown-cygwin
	exit ;;
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
    prep*:SunOS:5.*:*)
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    *:GNU:*:*)
	# the GNU system
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
	exit ;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
	exit ;;
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
	exit ;;
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
	esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arm*:Linux:*:*)
	eval $set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	else
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
	    else
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
	    fi
	fi
	exit ;;
    avr32*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    cris:Linux:*:*)
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    crisv32:Linux:*:*)
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    frv:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    i*86:Linux:*:*)
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
    ia64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    m32r*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    m68*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    mips:Linux:*:* | mips64:Linux:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#undef CPU
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	CPU=${UNAME_MACHINE}el
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	CPU=${UNAME_MACHINE}
	#else
	CPU=
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
	;;
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    openrisc*:Linux:*:*)
	echo or1k-unknown-linux-${LIBC}
	exit ;;
    or32:Linux:*:* | or1k*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    padre:Linux:*:*)
	echo sparc-unknown-linux-${LIBC}
	exit ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-${LIBC}
	exit ;;
    parisc:Linux:*:* | hppa:Linux:*:*)
	# Look for CPU level
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
	esac
	exit ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-${LIBC}
	exit ;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
	exit ;;
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    s390:Linux:*:* | s390x:Linux:*:*)
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
	exit ;;
    sh64*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    sh*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    tile*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    vax:Linux:*:*)
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
	exit ;;
    x86_64:Linux:*:*)
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
    xtensa*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    i*86:DYNIX/ptx:4*:*)
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
	# earlier versions are messed up and put the nodename in both
	# sysname and nodename.
	echo i386-sequent-sysv4
	exit ;;
    i*86:UNIX_SV:4.2MP:2.*)
	# Unixware is an offshoot of SVR4, but it has its own version
	# number series starting with 2...
	# I am not positive that other SVR4 systems won't match this,
	# I just have to hope.  -- rms.
	# Use sysv4.2uw... so that sysv4* matches it.
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
	exit ;;
    i*86:OS/2:*:*)
	# If we were able to find `uname', then EMX Unix compatibility
	# is probably installed.
	echo ${UNAME_MACHINE}-pc-os2-emx
	exit ;;
    i*86:XTS-300:*:STOP)
	echo ${UNAME_MACHINE}-unknown-stop
	exit ;;
    i*86:atheos:*:*)
	echo ${UNAME_MACHINE}-unknown-atheos
	exit ;;
    i*86:syllable:*:*)
	echo ${UNAME_MACHINE}-pc-syllable
	exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
	echo i386-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    i*86:*DOS:*:*)
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
	exit ;;
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
	else
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
	fi
	exit ;;
    i*86:*:5:[678]*)
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
	case `/bin/uname -X | grep "^Machine"` in
	    *486*)	     UNAME_MACHINE=i486 ;;
	    *Pentium)	     UNAME_MACHINE=i586 ;;
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
	esac
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	exit ;;
    i*86:*:3.2:*)
	if test -f /usr/options/cb.name; then
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
			&& UNAME_MACHINE=i586
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
			&& UNAME_MACHINE=i686
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
			&& UNAME_MACHINE=i686
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
	else
		echo ${UNAME_MACHINE}-pc-sysv32
	fi
	exit ;;
    pc:*:*:*)
	# Left here for compatibility:
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configure will decide that
	# this is a cross-build.
	echo i586-pc-msdosdjgpp
	exit ;;
    Intel:Mach:3*:*)
	echo i386-pc-mach3
	exit ;;
    paragon:*:*:*)
	echo i860-intel-osf1
	exit ;;
    i860:*:4.*:*) # i860-SVR4
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
	else # Add other i860-SVR4 vendors below as they are discovered.
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
	fi
	exit ;;
    mini*:CTIX:SYS*5:*)
	# "miniframe"
	echo m68010-convergent-sysv
	exit ;;
    mc68k:UNIX:SYSTEM5:3.51m)
	echo m68k-convergent-sysv
	exit ;;
    M680?0:D-NIX:5.3:*)
	echo m68k-diab-dnix
	exit ;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
	OS_REL=''
	test -r /etc/.relid \
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
	echo m68k-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    mc68030:UNIX_System_V:4.*:*)
	echo m68k-atari-sysv4
	exit ;;
    TSUNAMI:LynxOS:2.*:*)
	echo sparc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    rs6000:LynxOS:2.*:*)
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    SM[BE]S:UNIX_SV:*:*)
	echo mips-dde-sysv${UNAME_RELEASE}
	exit ;;
    RM*:ReliantUNIX-*:*:*)
	echo mips-sni-sysv4
	exit ;;
    RM*:SINIX-*:*:*)
	echo mips-sni-sysv4
	exit ;;
    *:SINIX-*:*:*)
	if uname -p 2>/dev/null >/dev/null ; then
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
		echo ${UNAME_MACHINE}-sni-sysv4
	else
		echo ns32k-sni-sysv
	fi
	exit ;;
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
    *:UNIX_System_V:4*:FTX*)
	# From Gerald Hewes <hewes@@openmarket.com>.
	# How about differentiating between stratus architectures? -djm
	echo hppa1.1-stratus-sysv4
	exit ;;
    *:*:*:FTX*)
	# From seanf@@swdc.stratus.com.
	echo i860-stratus-sysv4
	exit ;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo ${UNAME_MACHINE}-stratus-vos
	exit ;;
    *:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo hppa1.1-stratus-vos
	exit ;;
    mc68*:A/UX:*:*)
	echo m68k-apple-aux${UNAME_RELEASE}
	exit ;;
    news*:NEWS-OS:6*:*)
	echo mips-sony-newsos6
	exit ;;
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
	if [ -d /usr/nec ]; then
		echo mips-nec-sysv${UNAME_RELEASE}
	else
		echo mips-unknown-sysv${UNAME_RELEASE}
	fi
	exit ;;
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
	echo powerpc-be-beos
	exit ;;
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
	echo powerpc-apple-beos
	exit ;;
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
	echo i586-pc-beos
	exit ;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	echo i586-pc-haiku
	exit ;;
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
    SX-4:SUPER-UX:*:*)
	echo sx4-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-5:SUPER-UX:*:*)
	echo sx5-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-6:SUPER-UX:*:*)
	echo sx6-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-7:SUPER-UX:*:*)
	echo sx7-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8:SUPER-UX:*:*)
	echo sx8-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8R:SUPER-UX:*:*)
	echo sx8r-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
    Power*:Rhapsody:*:*)
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
	exit ;;
    *:Rhapsody:*:*)
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
	exit ;;
    *:Darwin:*:*)
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		    grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
	    fi
	elif test "$UNAME_PROCESSOR" = i386 ; then
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
	fi
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
	exit ;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
	UNAME_PROCESSOR=`uname -p`
	if test "$UNAME_PROCESSOR" = x86; then
		UNAME_PROCESSOR=i386
		UNAME_MACHINE=pc
	fi
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
	exit ;;
    *:QNX:*:4*)
	echo i386-pc-qnx
	exit ;;
    NEO-?:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
	echo nse-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSR-?:NONSTOP_KERNEL:*:*)
	echo nsr-tandem-nsk${UNAME_RELEASE}
	exit ;;
    *:NonStop-UX:*:*)
	echo mips-compaq-nonstopux
	exit ;;
    BS2000:POSIX*:*:*)
	echo bs2000-siemens-sysv
	exit ;;
    DS/*:UNIX_System_V:*:*)
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
	exit ;;
    *:Plan9:*:*)
	# "uname -m" is not consistent, so use $cputype instead. 386
	# is converted to i386 for consistency with other x86
	# operating systems.
	if test "$cputype" = 386; then
	    UNAME_MACHINE=i386
	else
	    UNAME_MACHINE="$cputype"
	fi
	echo ${UNAME_MACHINE}-unknown-plan9
	exit ;;
    *:TOPS-10:*:*)
	echo pdp10-unknown-tops10
	exit ;;
    *:TENEX:*:*)
	echo pdp10-unknown-tenex
	exit ;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
	echo pdp10-dec-tops20
	exit ;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
	echo pdp10-xkl-tops20
	exit ;;
    *:TOPS-20:*:*)
	echo pdp10-unknown-tops20
	exit ;;
    *:ITS:*:*)
	echo pdp10-unknown-its
	exit ;;
    SEI:*:*:SEIUX)
	echo mips-sei-seiux${UNAME_RELEASE}
	exit ;;
    *:DragonFly:*:*)
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    *:*VMS:*:*)
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case "${UNAME_MACHINE}" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
	esac ;;
    *:XENIX:*:SysV)
	echo i386-pc-xenix
	exit ;;
    i*86:skyos:*:*)
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
	exit ;;
    i*86:rdos:*:*)
	echo ${UNAME_MACHINE}-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo ${UNAME_MACHINE}-pc-aros
	exit ;;
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
esac

cat >&2 <<EOF
$0: unable to guess system type

This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub

If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.

config.guess timestamp = $timestamp

uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`

hostinfo               = `(hostinfo) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`

UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
EOF

exit 1

# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
@


1.2
log
@Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
@
text
@d176 1
@


1.1
log
@Initial revision
@
text
@d3 1
a3 1
#   Copyright 1992-2014 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2014-11-04'
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d53 1
a53 1
Copyright 1992-2014 Free Software Foundation, Inc.
d171 4
a174 2
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
d181 5
d189 1
a189 1
	# to ELF recently, or will in the future.
d191 3
d210 7
d227 1
a227 1
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
d233 1
a233 1
	echo "${machine}-${os}${release}"
d243 4
d259 3
d278 1
a278 1
		UNAME_MACHINE="alpha" ;;
d280 1
a280 1
		UNAME_MACHINE="alpha" ;;
d282 1
a282 1
		UNAME_MACHINE="alpha" ;;
d284 1
a284 1
		UNAME_MACHINE="alphaev5" ;;
d286 1
a286 1
		UNAME_MACHINE="alphaev56" ;;
d288 1
a288 1
		UNAME_MACHINE="alphapca56" ;;
d290 1
a290 1
		UNAME_MACHINE="alphapca57" ;;
d292 1
a292 1
		UNAME_MACHINE="alphaev6" ;;
d294 1
a294 1
		UNAME_MACHINE="alphaev67" ;;
d296 1
a296 1
		UNAME_MACHINE="alphaev68" ;;
d298 1
a298 1
		UNAME_MACHINE="alphaev68" ;;
d300 1
a300 1
		UNAME_MACHINE="alphaev68" ;;
d302 1
a302 1
		UNAME_MACHINE="alphaev69" ;;
d304 1
a304 1
		UNAME_MACHINE="alphaev7" ;;
d306 1
a306 1
		UNAME_MACHINE="alphaev79" ;;
d313 1
a313 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
d386 1
a386 1
	SUN_ARCH="i386"
d390 1
a390 1
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
d392 1
a392 1
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
d395 1
a395 1
		SUN_ARCH="x86_64"
d420 1
a420 1
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
d645 2
a646 2
		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
d649 3
a651 3
			  32) HP_ARCH="hppa2.0n" ;;
			  64) HP_ARCH="hppa2.0w" ;;
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
d690 1
a690 1
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d694 1
a694 1
	if [ ${HP_ARCH} = "hppa2.0w" ]
d707 1
a707 1
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
d710 1
a710 1
		HP_ARCH="hppa2.0w"
d712 1
a712 1
		HP_ARCH="hppa64"
d817 2
a818 2
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
d823 2
a824 2
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
d906 1
a906 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d929 1
a929 1
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
d960 3
d975 3
d1003 3
d1038 3
d1060 1
a1060 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1139 1
a1139 1
	# prints for the "djgpp" host, or else GDB configury will decide that
d1288 3
d1304 1
a1304 1
	    if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
d1306 1
a1306 1
		    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
d1328 1
a1328 1
	if test "$UNAME_PROCESSOR" = "x86"; then
d1359 1
a1359 1
	if test "$cputype" = "386"; then
d1401 1
a1401 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
d1412 3
d1420 3
a1422 3
This script, last modified $timestamp, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
d1424 1
a1424 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d1426 1
a1426 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
d1428 3
a1430 4
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@@gnu.org> in order to provide the needed
information to handle your system.
@


1.1.1.1
log
@Import flex 2.6.0
@
text
@@


1.1.1.1.2.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d3 1
a3 1
#   Copyright 1992-2015 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2015-08-20'
d53 1
a53 1
Copyright 1992-2015 Free Software Foundation, Inc.
d171 2
a172 4
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
a178 5
	    earmv*)
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
d184 1
a184 1
	    arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
a199 7
	# Determine ABI tags.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
		;;
	esac
d210 1
a210 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d216 1
a216 1
	echo "${machine}-${os}${release}${abi}"
a237 3
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
a935 3
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1024 1
a1024 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
@


1.1.1.1.2.2
log
@Sync with HEAD
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-01-01'
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d189 1
a189 1
	# to ELF recently (or will in the future) and ABI.
d191 1
a191 4
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
a239 4
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
d271 1
a271 1
		UNAME_MACHINE=alpha ;;
d273 1
a273 1
		UNAME_MACHINE=alpha ;;
d275 1
a275 1
		UNAME_MACHINE=alpha ;;
d277 1
a277 1
		UNAME_MACHINE=alphaev5 ;;
d279 1
a279 1
		UNAME_MACHINE=alphaev56 ;;
d281 1
a281 1
		UNAME_MACHINE=alphapca56 ;;
d283 1
a283 1
		UNAME_MACHINE=alphapca57 ;;
d285 1
a285 1
		UNAME_MACHINE=alphaev6 ;;
d287 1
a287 1
		UNAME_MACHINE=alphaev67 ;;
d289 1
a289 1
		UNAME_MACHINE=alphaev68 ;;
d291 1
a291 1
		UNAME_MACHINE=alphaev68 ;;
d293 1
a293 1
		UNAME_MACHINE=alphaev68 ;;
d295 1
a295 1
		UNAME_MACHINE=alphaev69 ;;
d297 1
a297 1
		UNAME_MACHINE=alphaev7 ;;
d299 1
a299 1
		UNAME_MACHINE=alphaev79 ;;
d306 1
a306 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
d379 1
a379 1
	SUN_ARCH=i386
d383 1
a383 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d385 1
a385 1
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d388 1
a388 1
		SUN_ARCH=x86_64
d413 1
a413 1
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
d638 2
a639 2
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
d642 3
a644 3
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
d683 1
a683 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d687 1
a687 1
	if [ ${HP_ARCH} = hppa2.0w ]
d700 1
a700 1
	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
d703 1
a703 1
		HP_ARCH=hppa2.0w
d705 1
a705 1
		HP_ARCH=hppa64
d810 2
a811 2
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
d816 2
a817 2
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d899 1
a899 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d922 1
a922 1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
a967 3
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a992 3
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1024 3
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1123 1
a1123 1
	# prints for the "djgpp" host, or else GDB configure will decide that
a1271 3
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
d1285 1
a1285 1
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d1287 1
a1287 1
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d1309 1
a1309 1
	if test "$UNAME_PROCESSOR" = x86; then
d1340 1
a1340 1
	if test "$cputype" = 386; then
d1382 1
a1382 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
a1392 3
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
d1398 3
a1400 3
This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1402 1
a1402 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1404 1
a1404 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1406 4
a1409 3
If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.
@


1.1.1.2
log
@
2016-12-30  Will Estes <westes575@@gmail.com>

	* NEWS: doc: update NEWS for 2.6.3 release

2016-11-26  Explorer09 <explorer09@@gmail.com>

	* configure.ac, src/Makefile.am: build: New configure option
	'--disable-bootstrap'.  If configure is run with '--disable-bootstrap', then stage1flex
	won't be built and stage1scan.c will be generated by sed'ing scan.c.  This option is intended to workaround bootstrap bugs rather than to
	fix the bootstrapping issues which are proving subtler and harder to
	fix than anyone would like.

2016-11-26  Explorer09 <explorer09@@gmail.com>

	* src/Makefile.am: build: "make clean" deletes stage1scan.c,
	stage1flex

2016-11-26  Explorer09 <explorer09@@gmail.com>

	* configure.ac, src/Makefile.am: build: allow building libfl even
	with --disable-libfl.  For various reasons, we may wish to build libfl explicitly even when
	configure has been run with the --disable-libfl option. This is
	possible, now, via 'make -C src libfl.la'.

2016-12-19  Alexis La Goutte <alexis.lagoutte@@gmail.com>

	* src/flex.skl: scanner: remove trailing whitespace in skeleton

2016-12-01  Demi Obenour <demiobenour@@gmail.com>

	* src/buf.c, src/main.c, src/parse.y: scanner: Disallow, overquote
	'[' and ']' in prefix

2016-12-29  Samuel Thibault <samuel.thibault@@ens-lyon.org>

	* src/main.c: scanner: allocate correct buffer size for m4 path.  Flex did not check the length of the m4 path which could lead to a
	buffer overflow in some cases. Additionally, not all platforms
	believe in PATH_MAX, so stop relying on it.  Fixes #138

2016-11-24  Will Estes <westes575@@gmail.com>

	* NEWS: doc: note no more libcompat in NEWS

2016-11-24  Will Estes <westes575@@gmail.com>

	* lib/Makefile.am: build: explain empty lib/Makefile.am

2016-11-20  Explorer09 <explorer09@@gmail.com>

	* configure.ac: build: warn about cross compiling with *alloc

2016-11-19  Explorer09 <explorer09@@gmail.com>

	* configure.ac, lib/Makefile.am, lib/lib.c, src/Makefile.am: build:
	Link $(LIBOBJS) from src/ dir, remove libcompat.la.  The libcompat.la library was small and less friendly to
	bootstrapping and cross compilation. Now, we will simply link
	individual object files as needed, which is simpler.

2016-11-16  Explorer09 <explorer09@@gmail.com>

	* src/Makefile.am: build: Let stage1flex respect LFLAGS

2016-11-14  Will Estes <westes575@@gmail.com>

	* NEWS: doc: describe --disable-libfl in NEWS

2016-10-31  Explorer09 <explorer09@@gmail.com>

	* configure.ac, src/Makefile.am: build: Add --disable-libfl
	configure option.  Disabling libfl is useful when building flex for a cross-toolchain.  Fixes: GH-99

2016-11-09  Demi Obenour <demiobenour@@gmail.com>

	* src/flex.skl, tests/array_r.l: fix backwards incompatible changes
	in 2.6.2.  This patch addscompatibility `#defines` for all macros affected by
	`%prefix`.  Fixes #113.

2016-11-08  Will Estes <westes575@@gmail.com>

	* tests/.gitignore: git: ignore quote_in_comment artifacts

2016-11-08  Demi Obenour <demiobenour@@gmail.com>

	* src/scan.l, tests/Makefile.am, tests/quote_in_comment.l,
	tests/quote_in_comment.txt: Fixes a major bug in Flex's own lexing
	of literals.  My changes caused Flex to mishandle string and character literals in
	line comments.  This commit fixes them.  Fixes #113.

2016-11-06  Thomas Klausner <wiz@@NetBSD.org>

	* configure.ac: Fix unportable test(1) operator.  "==" is only supported by bash, "=" is the standard comparison
	operator.

2016-11-02  Demi Obenour <demiobenour@@gmail.com>

	* tests/quotes.l: Add more escaping tests

2016-11-01  Demi Obenour <demiobenour@@gmail.com>

	* src/scan.l: Fix another escaping bug in non-indented verbatim section 2 code.  I also did some reformatting.

2016-10-28  Alastair Hughes <hobbitalastair@@gmail.com>

	* configure.ac: build: fix false negatives for help2man and texi2dvi HELP2MAN and TEXI2DVI (or the corresponding ac_prog variables) will
	never be zero length as they fall back to the missing script; check
	for the fall back and warn on that instead of always warning.

2016-10-28  Explorer09 <explorer09@@gmail.com>

	* doc/Makefile.am: doc: Don't delete flex.1 during "make distclean".  flex.1 is pre-generated in release tarball. If we delete it, the
	next "configure and make" on the source directory will then require
	help2man unnecessarily.

2016-10-27  Alastair Hughes <hobbitalastair@@gmail.com>

	* NEWS, doc/Makefile.am: Only regenerate the man page when required.  Make the flex binary an order-only prerequisite, and add back the
	prerequisites from before 7cfb440. This prevents rebuilding the man
	page whenever the flex binary is rebuilt, which causes problems if
	help2man is not installed and will never work when cross compiling.  Fixes #108.

2016-10-26  Will Estes <westes575@@gmail.com>

	* NEWS, src/Makefile.am: build: no longer build PIC version of
	libfl.  The PIC version of libfl was not being built correctly. From the
	lack of bug reports around this problem, we conclude that the PIC
	version of libfl is not used and so we drop it from the build build
	targets for flex.

2016-10-25  Explorer09 <explorer09@@gmail.com>

	* README.md: doc: README.md formatting fixes * Wrap everything in the raw document in 72 char per line limit.  * Proper casing for terms "Git" and "GitHub" (don't try to look
	lazy).  * Add unordered list marks when needed.  * Say `configure && make && make install` and quoted for fixed-width   font.  Signed-off-by: Kang-Che Sung <explorer09@@gmail.com>

2016-10-25  Will Estes <westes575@@gmail.com>

	* NEWS, configure.ac: build: version 2.6.3 begins

2016-10-24  Will Estes <westes575@@gmail.com>

	* NEWS: doc: mark 2.6.2 release date

2016-10-24  Will Estes <westes575@@gmail.com>

	* .gitignore, NEWS, configure.ac: build: switch xz to lzip

2016-10-20  Demi Obenour <demiobenour@@gmail.com>

	* src/scan.l, tests/quotes.l: Fix M4 quotation in section 2 prologue
	and refactor duplicated code

2016-10-21  Alex Kennedy <alexzanderkennedy@@gmail.com>

	* doc/flex.texi: Update flex.texi: Removed repedative wording "Flex used to" was written twice at the beginning of Chapter 9,
	paragraph 2.

2016-09-27  Demi Obenour <demiobenour@@gmail.com>

	* src/dfa.c, src/gen.c, src/main.c, src/nfa.c, src/parse.y,
	src/scan.l, tests/bison_yylval_scanner.l,
	tests/include_by_push.direct.l: Improved M4 quotation This fixes M4 quotation of certain strings beginning with `yy` (in
	section 3 of the input file only) and character literals.  The new
	quotation method is also less brittle and faster.  Tests that relied on the old behavior were fixed.  Also, `yyconst` is no longer defined; use `const` (which it
	unconditionally was defined to) instead.

2016-10-19  Will Estes <westes575@@gmail.com>

	* Makefile.am, configure.ac: build: for automake, flex is foreign

2016-10-19  Will Estes <westes575@@gmail.com>

	* README, README.md: doc: mv README to README.md

2016-10-19  Will Estes <westes575@@gmail.com>

	* README: doc: touch up README

2016-10-19  Will Estes <westes575@@gmail.com>

	* README: doc: README no longer mentions sourceforge

2016-10-06  Will Estes <westes575@@gmail.com>

	* NEWS: doc: update NEWS with more post-2.6.1 additions

2016-09-27  Demi Obenour <demiobenour@@gmail.com>

	* src/filter.c, src/flexdef.h, src/main.c, src/misc.c,
	src/options.c, src/options.h, src/scan.l, src/yylex.c,
	tests/Makefile.am, tests/alloc_extra.l, tests/array_r.l,
	tests/basic_r.l, tests/c_cxx_nr.lll, tests/c_cxx_r.lll,
	tests/debug_r.l, tests/include_by_reentrant.direct.l,
	tests/lineno_r.l, tests/mem_nr.l, tests/mem_r.l, tests/posix.l,
	tests/posixly_correct.l, tests/pthread.l, tests/quotes.l,
	tests/reject.l4, tests/rescan_nr.direct.l, tests/rescan_r.direct.l,
	tests/string_nr.l, tests/string_r.l: Fix M4 quoting of section 3.  This fixes M4 quoting of section 3 of the input file, including
	escape sequences and character constants.  Tests were added to verify the behavior in section 3 with respect to
	quoting. Both escaping of quotes and quoting of potential
	macro-start characters are tested. Existing tests were also fixed to
	account for the new -- and now correct -- behavior. Many tests
	relied on the old behavior of expanding M4 macros in section 3.
	They needed to be updated for the new behavior.

2016-10-03  Mightyjo <mightyjo@@gmail.com>

	* src/flex.skl, tests/.gitignore, tests/Makefile.am,
	tests/cxx_restart.ll, tests/cxx_restart.txt: Fix yyrestart(NULL)
	SEGV.

2016-09-05  Demi Obenour <demiobenour@@gmail.com>

	* src/scan.l: scanner: M4 quoting fixes

2016-09-05  Demi Obenour <demiobenour@@gmail.com>

	* src/Makefile.am: Support `make indent` for out of source builds

2016-09-24  Demi Obenour <demiobenour@@gmail.com>

	* src/Makefile.am, src/mkskel.sh: Simplify some shell code

2016-09-23  Demi Obenour <demiobenour@@gmail.com>

	* doc/flex.texi, src/flex.skl, src/flexdef.h, src/main.c,
	src/options.c, src/options.h, src/scan.l, tests/.gitignore,
	tests/Makefile.am, tests/noansi_nr.l, tests/noansi_nr.txt,
	tests/noansi_r.l, tests/noansi_r.txt: no longer generate K&R C
	scanners

2016-09-04  Demi Obenour <demiobenour@@gmail.com>

	* src/scan.l: Fix escaping of `[[` and `]]` in strings Previously, `[[` and `]]` were not escaped in strings, which led to
	bad interactions with m4.  Also, don't break strings on newline, as GCC et al support
	whitespace between a backslash and the subsequent newline.

2016-06-20  Translation Project <coordinator@@translationproject.org>

	* NEWS, po/sv.po: new sv translation

2016-05-23  Demetri Obenour <demiobenour@@gmail.com>

	* src/misc.c: Delete action_m4_define from misc.c This function was not used and always triggered a fatal error when
	run.

2016-05-20  Will Estes <westes575@@gmail.com>

	* tests/Makefile.am, tests/testwrapper-direct.sh: test: run direct
	tests from srcdir

2016-01-11  Egor Pugin <egor.pugin@@gmail.com>

	* tests/include_by_buffer.direct.l, tests/include_by_push.direct.l,
	tests/include_by_reentrant.direct.l: Exited with error code on some
	conditions in include tests

2016-05-20  Will Estes <westes575@@gmail.com>

	* tests/testwrapper.sh: test: drop .exe when making input file names

2016-05-20  Will Estes <westes575@@gmail.com>

	* tests/Makefile.am: test: removed dependencies for include tests

2016-04-28  Tobias Klauser <tklauser@@distanz.ch>

	* src/scanflags.c: Avoid realloc on every call of sf_push() Currently, every call to sf_push() realloc()'s _sf_stack, even if
	the maximum size _sf_max wasn't changed. As the indentation beneath
	the "if" clause already indicates, the realloc() should only be
	executed if _sf_max was increased.  Found by compiling flex with the -Wmisleading-indentation flags of
	gcc, which leads to the following warning: scanflags.c: In function â€˜sf_pushâ€™: scanflags.c:42:5: warning:
	     this â€˜ifâ€™ clause does not guard... [-Wmisleading-indentation] if
	     (_sf_top_ix + 1 >= _sf_max) ^~ scanflags.c:44:9: note: ...this
	         statement, but the latter is misleadingly indented as if it is
	         guarded by the â€˜ifâ€™ _sf_stk = realloc(_sf_stk,
	         sizeof(scanflags_t) * _sf_max); ^~~~~~~

2016-03-31  Will Estes <westes575@@gmail.com>

	* doc/Makefile.am: build: prettified command to build man page

2016-03-31  Will Estes <westes575@@gmail.com>

	* doc/Makefile.am: build: added man page to DISTCLEANFILES

2016-03-31  Will Estes <westes575@@gmail.com>

	* BUGS, TODO: remove unused TODO, BUGS files

2016-03-31  Will Estes <westes575@@gmail.com>

	* to.do/README, to.do/Wilhelms.todo, to.do/Wish-List,
	to.do/flex.rmail, to.do/streams.mail, to.do/unicode/FlexLexer.h,
	to.do/unicode/ccl.c, to.do/unicode/changes.txt,
	to.do/unicode/ecs.c, to.do/unicode/flex.1, to.do/unicode/flex.skl,
	to.do/unicode/flexdef.h, to.do/unicode/gen.c, to.do/unicode/main.c,
	to.do/unicode/misc.c, to.do/unicode/scan.l, to.do/unicode/tblcmp.c:
	removed to.do/ directory

2016-03-31  Will Estes <westes575@@gmail.com>

	* po/POTFILES.in: gettext: removed flex.skl from POTFILES.in file
	list

2016-03-31  rlar <rlar>

	* src/Makefile.am: fix skel.c dependency (missing tables_shared.c)
	 and polish build rule Also remove references to srcdir since skel.c is no longer mentioned
	in po/POTFILES.in.

2016-03-31  rlar <rlar>

	* doc/Makefile.am: fix flex.1 dependency git clean -fdx && ./autogen.sh && \   mkdir -p ../build && cd ../build && ../flex/configure && make -j10
	  && \ make dist failed with: >  help2man: can't get `--help' info from ../../flex/src/flex Note:   There is no dependency except for the flex binary.

2016-03-31  rlar <rlar>

	* src/Makefile.am: fix stage1scan.c and stage1scan.l dependency git clean -fdx && ./autogen.sh && \   mkdir -p ../build && cd ../build && ../flex/configure && make -j10 failed with: > ../src/stage1flex -o stage1scan.c stage1scan.l > stage1flex: can't
	open stage1scan.l Note:   stage1scan.c is not necessairy in the "make dist" generated tar.gz
	  file.  stage1flex will be build from scan.c (which is
	    distributed), and this will then generate stage1scan.c from scan.l

2016-03-31  Will Estes <westes575@@gmail.com>

	* po/POTFILES.in: gettext: list src/flex.skl in po/POTFILES.in

2016-03-29  rlar <rlar>

	* src/gen.c: warning in generated code, with -Ca warning: conversion to 'yy_state_type' from 'flex_uint32_t' may
	change the sign of the result [-Wsign-conversion]

2016-03-29  rlar <rlar>

	* tests/Makefile.am: suppress `WARNINGFLAGS' for the almost obsolete
	`noansi' test cases

2016-03-29  rlar <rlar>

	* configure.ac, src/Makefile.am, tests/Makefile.am: configure option
	`--enable-warnings' and `WARNINGFLAGS' `WARNINGFLAGS' can be passed when invoking `configure'  and when invoking `make' if configure switch `--enable-warnings' was given   then default to something useful if we have `GCC' `WARNINGFLAGS' is not used when compiling `stage1flex'   to avoid unnecessary clutter

2016-03-31  Tobias Klauser <tklauser@@distanz.ch>

	* src/main.c: Fix potential buffer overflow in strncat() When using clang/llvm 3.8 to compile flex, the following warning is
	emitted: main.c:378:27: warning: the value of the size argument in 'strncat'
	                                        is too large, might lead to a buffer overflow [-Wstrncat-size]
	strncat(m4_path, m4, sizeof(m4_path));
	^~~~~~~~~~~~~~~
	main.c:378:27: note: change the argument to be the free space in the
	                                        destination buffer minus the terminating null byte strncat(m4_path,
	                                                             m4, sizeof(m4_path)); ^~~~~~~~~~~~~~~
	sizeof(m4_path) - strlen(m4_path) - 1Fix it up by using the solution proposed by the warning message.

2016-03-29  Robert.Larice Robert Larice <Robert.Larice@@t-online.de>

	* src/Makefile.am: build: simplified dependency tracking so parallel
	make runs succeed

2016-03-20  rlar <rlar>

	* src/flex.skl, src/gen.c, src/main.c: avoid warning in generated
	code, with -Cf warning: conversion to 'unsigned int' from 'int' may change the sign
	of the result [-Wsign-conversion]

2016-03-18  Will Estes <westes575@@gmail.com>

	* NEWS, configure.ac: mention v2.6.2; summarize changes since 2.6.1

2016-03-18  Will Estes <westes575@@gmail.com>

	* doc/flex.texi: doc: corrected example in manual, gh#67

2016-03-16  rlar <rlar>

	* tests/string_nr.l, tests/string_r.l, tests/yyextra.l: warning:
	conversion to 'size_t' from 'int' may change the sign of the result
	[-Wsign-conversion]

2016-03-16  rlar <rlar>

	* tests/mem_nr.l, tests/mem_r.l, tests/pthread.l: warning:
	conversion to 'long unsigned int' from 'int' may change the sign of
	the result [-Wsign-conversion]

2016-03-16  rlar <rlar>

	* src/flex.skl: warning: conversion to 'flex_uint32_t' from 'long
	unsigned int' may alter its value [-Wconversion] struct yytbl_reader, member bread is of type flex_uint32_t

2016-03-16  rlar <rlar>

	* tests/alloc_extra.l, tests/bison_nr_main.c,
	tests/bison_nr_parser.y, tests/bison_yylloc_parser.y: warning:
	redundant redeclaration of '...' [-Wredundant-decls]

2016-03-16  rlar <rlar>

	* tests/bison_nr_parser.y, tests/bison_yylloc_parser.y,
	tests/bison_yylval_parser.y, tests/pthread.l: warning: no previous
	prototype for '...' [-Wmissing-prototypes]

2016-03-16  rlar <rlar>

	* tests/multiple_scanners_r_main.c: warning: unused variable 'fp'
	[-Wunused-variable]

2016-03-16  rlar <rlar>

	* tests/pthread.l: main(), warning: redundant redeclaration of
	'main' [-Wredundant-decls]

2016-03-16  rlar <rlar>

	* tests/include_by_reentrant.direct.l, tests/lineno_nr.l,
	tests/lineno_r.l, tests/lineno_trailing.l: main(), warning:
	old-style function definition [-Wold-style-definition]

2016-03-16  rlar <rlar>

	* tests/alloc_extra.l, tests/array_nr.l, tests/array_r.l,
	tests/basic_nr.l, tests/basic_r.l, tests/ccl.l, tests/debug_nr.l,
	tests/debug_r.l, tests/extended.l, tests/mem_nr.l, tests/mem_r.l,
	tests/noansi_r.l, tests/posix.l, tests/posixly_correct.l,
	tests/prefix_nr.l, tests/prefix_r.l, tests/quotes.l,
	tests/string_nr.l, tests/string_r.l, tests/yyextra.l: main(),
	warning: old-style function definition [-Wold-style-definition]

2016-03-01  rlar <rlar>

	* src/ecs.c, src/tblcmp.c: Fix two more casts

2016-03-14  Bastian Köcher <git@@kchr.de>

	* src/gen.c: Fixes yyl compare with unsigned warning

2016-03-13  Robert Larice <Robert.Larice@@t-online.de>

	* configure.ac: Suppress portability warnings in Makefile generation

2016-02-27  rlar <rlar>

	* src/flex.skl: generated code, in yyensure_buffer_stack(), change
	type of local `num_to_alloc' which is exclusively used in yy_size_t context

2016-03-01  rlar <rlar>

	* src/flex.skl: generated code, in yy_get_next_buffer(), change type
	of local `number_to_move' suits better, because `yy_n_chars' and `yy_buf_size' are of type
	`int'

2016-02-27  rlar <rlar>

	* src/flex.skl: generated code, `_yybytes_len' is of type `int', fix
	code accordingly

2016-02-28  rlar <rlar>

	* src/gen.c: generated code, `max_size' seems to be of type `int',
	fix casts accordingly

2016-02-28  rlar <rlar>

	* src/flex.skl: generated code, here `new_size' is of type `int',
	fix casts accordingly

2016-02-28  rlar <rlar>

	* src/flex.skl: generated code, `yy_buf_size' is of type `int', fix
	casts accordingly

2016-02-28  rlar <rlar>

	* src/flex.skl: generated code, `offset' is of type `int'

2016-02-28  rlar <rlar>

	* src/gen.c: generated code, `yy_more_len' is of type `int'

2016-02-28  rlar <rlar>

	* src/scan.l: scan.l, rewrite two loops to avoid unneccesairy
	casting

2016-03-01  rlar <rlar>

	* src/regex.c, src/tables.c: improve readability

2016-02-28  rlar <rlar>

	* src/tblcmp.c: another cast in tblcmp.c to avoid warning

2016-02-28  rlar <rlar>

	* src/buf.c: casts in buf_append() to get rid of warnings

2016-02-28  rlar <rlar>

	* src/dfa.c, src/gen.c: cast to suite type of flex_uint32_t td_lolen

2016-02-28  rlar <rlar>

	* src/main.c, src/misc.c, src/regex.c, src/scan.l, src/scanopt.c,
	src/tables_shared.c: cast to get rid of warnings

2016-03-01  rlar <rlar>

	* src/buf.c, src/main.c: cast and fix usage of log10(), ceil to
	prevent buffer overflow

2016-03-01  rlar <rlar>

	* src/tables.c: tables.c, sprinkle casts to get rid of warnings

2016-03-01  rlar <rlar>

	* src/tables.c: yytbl_data_compress(), change type of local newsz to
	get rid of warnings

2016-03-01  rlar <rlar>

	* src/tables.c, src/tables.h: change type of struct
	yytbl_writer.total_written to get rid of warnings

2016-02-28  rlar <rlar>

	* src/tables.c: change argument type of yytbl_writen() to get rid of
	warnings

2016-03-01  rlar <rlar>

	* src/tables.c: yytbl_write8/16/32(), change type of local variables
	to get rid of warnings

2016-02-28  rlar <rlar>

	* src/flexdef.h, src/misc.c, to.do/unicode/flexdef.h,
	to.do/unicode/misc.c: change return type and rename int
	htoi()/otoi() --> unsigned int htoui()/otoui()

2016-03-01  Will Estes <westes575@@gmail.com>

	* NEWS: Mention 2.6.1 release date

2016-02-28  rlar <rlar>

	* src/gen.c: avoid warning, add (int) cast to the read() return
	value For similiarity with the fread() case.

2016-02-28  rlar <rlar>

	* src/scan.l: avoid warning, POSIX says yyless() has an `int'
	argument

2016-02-29  rlar <rlar>

	* src/filter.c: use type size_t in filter_tee_header() to avoid
	warnings

2016-02-29  rlar <rlar>

	* src/filter.c, src/misc.c, src/scanopt.c, src/tables.c: add
	(size_t) casts to malloc invocations to prevent warnings

2016-02-29  rlar <rlar>

	* src/buf.c, src/misc.c, src/scan.l, src/scanopt.c, src/tables.c:
	add (int) casts to some strlen() invocations to prevent warnings

2016-02-29  rlar <rlar>

	* src/flexdef.h, src/scan.l, src/sym.c: ndlookup(), char *, to get
	rid of casts and warnings

2016-02-28  rlar <rlar>

	* src/flexdef.h, src/scan.l, src/sym.c: ndinstal(), char *, to get
	rid of casts and warnings

2016-02-28  rlar <rlar>

	* src/flexdef.h, src/scan.l, src/sym.c: cclinstal() and ccllookup(),
	char *, to get rid of casts and warnings

2016-02-28  rlar <rlar>

	* src/gen.c: warning: redundant redeclaration of
	â€˜gen_next_stateâ€™ [-Wredundant-decls]

2016-02-28  rlar <rlar>

	* src/gen.c: warning: no previous prototype for â€˜mkecstblâ€™
	[-Wmissing-prototypes]

2016-02-28  rlar <rlar>

	* src/main.c: warning: suggest parentheses around assignment used as
	truth value [-Wparentheses]

2016-02-28  rlar <rlar>

	* src/flexdef.h: warning: redundant redeclaration of â€˜yywrapâ€™
	[-Wredundant-decls]

2016-02-28  rlar <rlar>

	* src/flexdef.h: warning: redundant redeclaration of â€˜yylvalâ€™
	[-Wredundant-decls]

2016-02-28  rlar <rlar>

	* src/flexdef.h: warning: redundant redeclaration of â€˜yyinâ€™
	[-Wredundant-decls]

2016-02-28  rlar <rlar>

	* src/flexdef.h, src/main.c: warning: redundant redeclaration of
	â€˜yyparseâ€™ [-Wredundant-decls]

2016-02-28  rlar <rlar>

	* src/parse.y, src/scan.l, src/yylex.c, to.do/unicode/scan.l:
	unification, rename some more rename these too for improved similiarity:   OPTION_OP OPT_HEADER OPT_EXTRA_TYPE OPT_TABLES

2016-02-28  rlar <rlar>

	* src/parse.y, src/scan.l, src/yylex.c, to.do/unicode/scan.l: fix
	name clash, OPT_OUTFILE from parse.y and from options.h these collide:   OPT_OUTFILE OPT_PREFIX OPT_YYCLASS rename them TOK_... in the
	parser

2016-02-28  Will Estes <westes575@@gmail.com>

	* lib/reallocarray.c: Prototyped reallocarray implementation

2016-02-28  Will Estes <westes575@@gmail.com>

	* src/scanopt.c: Removed custom strcasecmp() function

2016-02-28  rlar <rlar>

	* src/flex.skl: fwrite wants a size_t, yyleng is int per posix

2016-02-28  rlar <rlar>

	* src/scanopt.c: Remove some unneeded casts

2016-02-28  rlar <rlar>

	* src/flexdef.h: warning: negative integer implicitly converted to
	unsigned type [-Wsign-conversion]

2016-02-27  rlar <rlar>

	* src/dfa.c, src/parse.y: dfa.c:157:24: warning: conversion to
	'size_t' from 'int' may change the sign of the result
	[-Wsign-conversion] most certainly safe cast

2016-02-27  rlar <rlar>

	* src/ccl.c: ccl.c:86:19: warning: conversion to 'unsigned char'
	from 'int' may alter its value [-Wconversion] ch seems to have been checked for proper range some lines above

2016-02-27  rlar <rlar>

	* tests/bison_nr_parser.y: warning: deprecated directive, use
	'%pure-parser' [-Wdeprecated]

2016-02-27  rlar <rlar>

	* lib/lib.c: warning: no previous prototype for 'do_nothing'
	[-Wmissing-prototypes]

2016-02-27  rlar <rlar>

	* src/libmain.c: included stdlib.h header

2016-02-27  Will Estes <westes575@@gmail.com>

	* NEWS: Described more post v2.6.0 changes

2016-02-27  Will Estes <westes575@@gmail.com>

	* configure.ac: build: Removed bzip2 distribiution archive

2016-02-27  Will Estes <westes575@@gmail.com>

	* configure.ac: removed obsolete program check

2016-02-27  Will Estes <westes575@@gmail.com>

	* configure.ac: Made some program checks more robust

2016-02-27  rlar <rlar>

	* src/flex.skl: Remove unneeded cast to int

2016-02-27  Will Estes <westes575@@gmail.com>

	* src/flex.skl: Fixed incorrect integer type

2016-02-27  Will Estes <westes575@@gmail.com>

	* src/flex.skl: Fix more integer types, resolves sf 184, 187

2016-02-26  Robert Larice <Robert.Larice@@t-online.de>

	* src/flex.skl, src/gen.c: Removed some type conversion warnings

2016-02-26  Will Estes <westes575@@gmail.com>

	* src/flex.skl: Changed another buffer size to int; resolves gh#61

2016-02-24  Will Estes <westes575@@gmail.com>

	* src/flex.skl: Changed type of yy_n_chars to int; gh#53, sf#160.  The variable yy_n_chars had been of type yy_size_t which is
	incorrect given its use in read(). While it might be adviseable to
	look at defining a yy_ssize_t, there might be some issues doing this
	and so, for now, at least, we'll punt back to int.

2016-02-24  Will Estes <westes575@@gmail.com>

	* src/buf.c: Fixed size of bufferallocation, resolved gh#54.  The value of n_alloc was a count, not a size. Multiplying the value
	by the element size was incorrect. That multiplication was already
	being done and having it done twice was incorrect.

2016-02-23  Tobias Klauser <tklauser@@distanz.ch>

	* src/scan.l: Allow '%option noline' in flex input file, resolves
	gh#56.  Allow specifying '%option noline' in the input file, leading to the
	same effect as calling flex with the command line option --noline.  Signed-off-by: Tobias Klauser <tklauser@@distanz.ch>

2016-02-23  Tobias Klauser <tklauser@@distanz.ch>

	* src/buf.c, src/main.c: Emit no #line directives if gen_line_dirs
	is false, resolves igh#55.  There are two instances in the code which will print a #line
	directive to the resulting lexer, regardless of the value of
	gen_line_dirs. Fix them, so they also respect gen_line_dirs.  Signed-off-by: Tobias Klauser <tklauser@@distanz.ch>

2016-02-16  Tobias Klauser <tklauser@@distanz.ch>

	* lib/lib.c, src/gen.c, src/misc.c, src/scan.l: Converted K&R style
	function definitions to ANSI C style Consistently make use of the ANSI C function definition style
	instead of the K&R style.

2016-01-29  Tobias Klauser <tklauser@@distanz.ch>

	* src/flex.skl: Used NULL constant instead of plain integer for NULL
	pointer.  The sparse static checker warns about using plain integer 0 as NULL
	pointers in the generated lexer code. Fix this by using NULL
	consistently for pointers.

2016-01-29  Tobias Klauser <tklauser@@distanz.ch>

	* src/flex.skl: Marked declaration and definition of yy_fatal_error
	as noreturn.  Only the declaration of yy_fatal_error is marked with
	__attribute__((__noreturn__)) in case GCC >= 3 is used, but not the
	definition. This leads to the sparse static checker to complain
	about function declaration mismatch.  Fix it by defining a macro yynoreturn and using it for both the
	declaration and the definition of yy_fatal_error.

2016-01-27  Tobias Klauser <tklauser@@distanz.ch>

	* src/flex.skl: Fixed declaration mismatch in yy_fatal_error.  The prototype declares yy_fatal_error parameter as "const char
	msg[]" while the definition uses "const char* msg" (introduced by
	commit e9d5fc713f61b) which causes the sparse static checkers to
	produce an error.  Fix this by adjusting the definition to use "const char* msg" as
	well.  Also change the C++ version accordingly so it matches the
	declaration in FlexLexer.hpp.

2016-01-23  Will Estes <westes575@@gmail.com>

	* CODE_OF_CONDUCT.md: flex is for flex #NCoC

2016-01-18  Will Estes <westes575@@gmail.com>

	* doc/flex.texi: Referred to github for issue tracking, no longer sf

2016-01-10  Egor Pugin <egor.pugin@@gmail.com>

	* tests/reject.l4, tests/tableopts.l4: Opened files in binary mode
	explicitly

2016-01-08  OBATA Akio <obache@@NetBSD.org>

	* src/Makefile.am: Linked flex binary against libintl, not libfl.   Signed-off-by: Thomas Klausner <wiz@@NetBSD.org>

2016-01-08  Michael van Elst <mlelstv@@NetBSD.org>

	* src/filter.c: Improved pipe-stdin hack behavior; resolves sf#198.  Signed-off-by: Thomas <Klausner wiz@@NetBSD.org>

2015-12-27  Will Estes <westes575@@gmail.com>

	* configure.ac, src/flexdef.h: Removed no longer needed header
	checks

2015-12-27  Will Estes <westes575@@gmail.com>

	* configure.ac: Checked for reallocarray() with AC_REPLACE_FUNCS

2015-12-27  Will Estes <westes575@@gmail.com>

	* src/flexdef.h, src/main.c: include libgen.h from flexdef.h, not
	main.c

2015-12-25  Michael Reed <m.reed@@mykolab.com>

	* src/main.c: Replace basename2() with basename(3).  Given the following program: 	\#include <libgen.h> 	\#include <stdio.h> 	/* extracts basename from path, optionally stripping the extension
		 "\.*" * (same concept as /bin/sh `basename`, but different handling
		of extension). */ static char *basename2 (char *path) 	{ 		char   *b; 		for (b = path; *path; path++) 			if (*path == '/') 				b = path + 1; 		return b; 	} 	static void basename_compare(char *path) 	{ 		printf("basename: %s\n", basename(path)); 		printf("basename2: %s\n\n", basename2(path)); 	} 	int main (int argc, char *argv[]) 	{ 		// From http://pubs.opengroup.org/onlinepubs/9699919799/ 		// ``Sample Input and Output Strings'' 		basename_compare("/usr/lib"); 		basename_compare("/usr/"); 		basename_compare("/"); 		basename_compare("///"); 		basename_compare("//usr//lib//"); 		return 0; 	} ... and the program's output: 	basename: lib 	basename2: lib 	basename: usr 	basename2: 	basename: / 	basename2: 	basename: / 	basename2: 	basename: lib 	basename2: ... we can see that basename2() behaves the same as basename(3) in
	the average use case, but messes up pretty severely in others.
	Besides that, basename(3) is mandated by POSIX so should be present
	on modern Unix-like systems, so we shouldn't define it ourselves.  Some notes: - it doesn't appear to be mentioned in POSIX, but OpenBSD's
	  basename(3) returns NULL if the returned path componenet is >
	  PATH_MAX, so add a check for that - basename(3) shouldn't return an empty string, so remove the   program_name[0] != '\0' check

2015-12-25  Michael Reed <m.reed@@mykolab.com>

	* src/main.c: Simplify basename2().  It's only call site does not activate the `strip_ext` code path, so
	the function can be simplified a lot.  While here, remove a double
	assignment.

2015-12-25  Michael Reed <m.reed@@mykolab.com>

	* src/flex.skl, src/misc.c: Cleaned up __STDC__ #ifdefs.  Assuming a compiler conforming to the ISO C standard is used, i.e.,
	__STDC__ is defined to 1, YY_USE_CONST is always defined and can be
	eliminated.

2015-12-25  Michael Reed <m.reed@@mykolab.com>

	* src/flexdef.h, src/main.c, src/scanopt.c, src/scanopt.h,
	src/sym.c: Remove remaining use of PROTO

2015-12-21  Serguey Parkhomovsky <xindigo@@gmail.com>

	* src/buf.c: buf.c: use snprintf

2015-12-19  Will Estes <westes575@@gmail.com>

	* configure.ac: build: reformatted AC_CHECK_FUNCS for readability

2015-12-17  Will Estes <westes575@@gmail.com>

	* src/scanopt.c: correct function prototype

2015-12-15  Michael Reed <m.reed@@mykolab.com>

	* src/main.c, src/scanopt.c, src/sym.c, src/tblcmp.c: Remove more
	instances of PROTO

2015-12-15  Michael Reed <m.reed@@mykolab.com>

	* src/main.c: Removed prototype for main().  It's not called anywhere else so the prototype is not needed.  See
	the C99 standard [1], section 5.1.2.2.1 for more info.  [1]: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf

2015-12-13  Michael McConville <mmcco@@mykolab.com>

	* src/dfa.c, src/gen.c, src/nfa.c, to.do/unicode/main.c,
	to.do/unicode/tblcmp.c: Removed more instances of PROTO, ansifying.

2015-12-13  Will Estes <westes575@@gmail.com>

	* README: Noted github for issue tracking and pull requests

2015-12-13  Michael McConville <mmcco@@mykolab.com>

	* README: Reformatted README; removed sf bug tracking link.

2015-12-13  Michael McConville <mmcco@@mykolab.com>

	* src/gen.c, to.do/unicode/gen.c: Removed macros for indentation
	level.  Just increment or decrement the indentation counter. That's less to
	remember and makes the code more readable.  w# Please enter the commit message for your changes. Lines starting

2015-12-12  Mike Frysinger <vapier@@gentoo.org>

	* tests/Makefile.am, tests/testwrapper.sh: tests: fixed paths to
	input files.  The current test wrapper works only when the inputs are specified
	using relative paths.  If they're specified with absolute paths, the
	driver fails to detect the inputs because it always prepends the
	input dir name which itself is a relative path: $ cd tests $
	./testwrapper.sh -d . -i $PWD/reject.txt -t ./reject_ver.table
	<fails to open inputs> This normally doesn't show up because people run `./configure` or,
	for out of tree builds, `../configure`.  But if you happen to run
	configure with an absolute path, then automake tends to generate
	absolute paths as well leading to test failures.  Fix all of this by dropping the implicit input directory prepending.  - INPUT_NAME is often a list of files, not just a single one - the input directory is used to find the testname tables which are   usually generated, so it's impossible to use files from both
	  source and build directories - most of the time, the full/correct path is already specified

2015-12-12  Mike Frysinger <vapier@@gentoo.org>

	* configure.ac: configure: fixed realloc test.  The [] characters are used for quoting in m4, so the attempt to use
	them in place of `test` fails yielding the warning at build time: .../flex/configure: line 20222: no: command not found

2015-12-12  Michael McConville <mmcco@@mykolab.com>

	* src/flexdef.h: Started removal of PROTO macro.  The PROTO macro is no longer needed. Additionally, its usage is
	inconsistent, so we began removing it.

2015-12-12  Michael Reed <m.reed@@mykolab.com>

	* Makefile.am, src/main.c: Removed SHORT_FILE_NAMES preprocessor
	symbol.  As a relic of MS-DOS, we don't need this.  It's never defined; see 13b5b214f53d1c3354a7ab910bd160c126df1331.  Removed additional MSDOS ifdef.

2015-12-11  Michael McConville <mmcco@@mykolab.com>

	* configure.ac, lib/reallocarray.c, src/flexdef.h: Added new
	function reallocarray.  This is taken from OpenSSH Portable, which in turn takes it from
	OpenBSD.  reallocarray wraps the stdlib's realloc function. It takes two size
	arguments and checks for overflow, like calloc, but doesn't zero the
	memory. Therefore, it allows us to do overflow-safe array
	reallocations and overflow-safe unzeroed array allocations, which
	the stdlib allocation functions don't.  We have a bunch of specific array allocation macros, none of which
	check for overflow. reallocarray should be able to replace them.

2015-12-11  Michael McConville <mmcco@@mykolab.com>

	* src/flexdef.h: Removed MS-DOS, VMS macros.  Given the age of the MS-DOS and VMS platforms, it's likely that no
	one is building flex on them any more. Additionally, the preferred
	approach is to test for particular platform features rather than to
	test for particular platforms.

2015-12-12  Will Estes <westes575@@gmail.com>

	* src/flexdef.h, src/main.c: Made search for m4 more explicit.

2015-12-12  Will Estes <westes575@@gmail.com>

	* src/flex.skl: Returned 0 from yywrap() instead of EOF

2015-12-11  Will Estes <westes575@@gmail.com>

	* src/libmain.c: Changed end of main() in libmain to exit(0)

2015-12-11  Will Estes <westes575@@gmail.com>

	* NEWS, configure.ac: Mentioned v2.6.1; documented some changes
	since v2.6.0

2015-12-11  Will Estes <westes575@@gmail.com>

	* README: Updated build documentation; finished sf#155.  Removed version numbers for build tools. Noted that version
	requirements for build tools will be noted in configure.ac. Expanded
	documentation of building texinfo based docs.

2015-12-11  Will Estes <westes575@@gmail.com>

	* doc/Makefile.am: Removed flex.pdf from distribution; partially
	fixed sf#155

2015-12-11  Will Estes <westes575@@gmail.com>

	* src/flex.skl: Commented in C style in skeleton; fixed sf#195

2015-12-10  Will Estes <westes575@@gmail.com>

	* .gitignore: Ignored autoscan files

2015-12-09  Will Estes <westes575@@gmail.com>

	* configure.ac: Checked for ranlib and strdup() at configure time

2015-12-09  Michael McConville <mmcconville@@mykolab.com>

	* src/flexdef.h, src/misc.c, src/tblcmp.c, to.do/unicode/flexdef.h,
	to.do/unicode/misc.c, to.do/unicode/tblcmp.c: Replace zero_out()
	with stdlib's memset.

2015-12-09  Michael McConville <mmcconville@@mykolab.com>

	* src/flex.skl: Removed memory allocation casts.

2015-12-09  Michael McConville <mmcconville@@mykolab.com>

	* src/flexdef.h: Removed alloca() configuration.  Since alloca() is dangerous, depricated, we remove it.

2015-12-09  Michael McConville <mmcconville@@mykolab.com>

	* src/flexdef.h: Removed implementation of isascii().  POSIX defines isascii(), so it's likely present on anything
	weactually build flex on these days.

2015-12-09  Michael McConville <mmcconville@@mykolab.com>

	* src/main.c, src/scanopt.c, src/tables.c: Removed NULL-checks
	before free()

2015-12-08  Michael McConville <mmcconville@@mykolab.com>

	* src/buf.c, src/dfa.c, src/flexdef.h, src/gen.c, src/scan.l,
	to.do/unicode/flexdef.h, to.do/unicode/scan.l: Removed flex_free()i,
	corrected buf_destroy logic.  As with flex_alloc(), replace with direct calls to free().  The function buf_destroy is now null safe and the logic was
	corrected to free() correctly.

2015-12-08  Michael McConville <mmcconville@@mykolab.com>

	* src/filter.c, src/flexdef.h, src/misc.c, src/scan.l,
	src/scanflags.c, to.do/unicode/flexdef.h, to.do/unicode/misc.c,
	to.do/unicode/scan.l: Removed flex_realloc().  As with flex_alloc(), replace calls to flex_realloc(), which was
	just a wrapper around realloc().

2015-12-08  Michael McConville <mmcconville@@mykolab.com>

	* src/buf.c, src/filter.c, src/flexdef.h, src/main.c, src/misc.c,
	src/regex.c, src/scan.l, src/scanflags.c, src/sym.c,
	to.do/unicode/flexdef.h, to.do/unicode/misc.c, to.do/unicode/scan.l:
	Removed flex_alloc; cleaned up style.  The function flex_alloc() was just a wrapper around malloc(). Since
	this only added unclarity, and the flex_alloc() function is likely a
	legacy of olden times, remove it in favor of calls to malloc()
	directly.  Style elements cleaned up:  * superfluous spacing around parentheses  * non-constant initialization in variable declarations  * needless casts  * almost all uses of assignments as subexpressions

2015-12-07  Michael McConville <mmcconville@@mykolab.com>

	* src/dfa.c, src/flexdef.h, src/gen.c, src/main.c, src/scan.l,
	src/scanopt.c, tests/bison_nr_scanner.l,
	tests/bison_yylloc_scanner.l, tests/bison_yylval_scanner.l,
	tests/mem_nr.l, tests/mem_r.l, tests/pthread.l, tests/string_nr.l,
	tests/string_r.l, tests/yyextra.l, to.do/unicode/scan.l: Remove
	allocation casts

2015-12-07  Will Estes <westes575@@gmail.com>

	* src/.gitignore, src/Makefile.am: Built flex with itself.  Changes in scan.l need to be built into flex with the same version
	of flex in some cases. Since this build requirement is minimal, we
	simply bootstrap flex unconditionally.  We intentionally exclude from version control the bootstrap
	artifacts as the extra copy of the lexer, the intermediate scanner
	and the bootstrap executable are not of interest.

2015-12-05  Michael McConville <mmcconville@@mykolab.com>

	* src/buf.c, src/dfa.c, src/main.c, src/nfa.c, src/parse.y,
	src/scan.l, src/scanopt.c, src/sym.c, to.do/unicode/main.c,
	to.do/unicode/scan.l: Use NULL rather than (type *) 0.

2015-12-05  Michael McConville <mmcconville@@mykolab.com>

	* src/flexdef.h, src/misc.c, src/sym.c, to.do/unicode/flexdef.h,
	to.do/unicode/misc.c: Replace copy_unsigned_string() with xstrdup().  Like copy_string(), copy_unsigned_string() is just a clone of the
	stlib's strdup(). We only use it twice. I'm pretty confident that
	char signedness is irrelevant in this case.

2015-12-04  Akim Demaille <akim@@lrde.epita.fr>

	* src/FlexLexer.h: Cleaned up white space.

2015-12-04  Akim Demaille <akim@@lrde.epita.fr>

	* src/FlexLexer.h: Removed struct keyword before yy_buffer_state

2015-12-04  Akim Demaille <akim@@lrde.epita.fr>

	* examples/testxxLexer.l, src/FlexLexer.h, src/flex.skl, src/main.c:
	Replaced FLEX_STD macro with std::.  The std:: construct exists as of C++98, so we can simply assume it
	is supported.

2015-12-04  Akim Demaille <akim@@lrde.epita.fr>

	* src/Makefile.am: Generated skel.c explicitly in srcdir.  Rewrote the target for skel.c to explicitly mention the srcdir. This
	should help when building flex from a directory outside the flex
	tree. Spread the rule out over several lines to enhance readability.

2015-12-04  Akim Demaille <akim@@lrde.epita.fr>

	* autogen.sh: Called glibtoolize if libtoolize run fails.  On Mac OS X, libtoolize is known as glibtoolize. In cases where
	libtoolize is not present, then calling glibtoolize when
	bootstrapping the build system gives more folks a shot at getting
	flex built from the ground up.

2015-12-02  Mightyjo <mightyjo@@gmail.com>

	* configure.ac: Checked for (g)texi2dvi. Better bison, help2man
	checks.  Added test for presence of (g)texi2dvi program. Gave notice if
	texi2dvi is unavailable and set TEXI2DVI=: to avoid giving users
	headaches.  Enhanced tests for bison and help2man with notices when the programs
	aren't found.  Set their program variables to use the missing script
	in build-aux since it's compatible with them.

2015-12-02  Michael McConville <mmcconville@@mykolab.com>

	* src/flexdef.h, src/misc.c, src/parse.y, src/scan.l, src/sym.c,
	src/tables.c, to.do/unicode/flexdef.h, to.do/unicode/misc.c,
	to.do/unicode/scan.l: Made string copying more standard.  copy_string() was a clone of the stdlib's strdup(). For safety,
	simplicity, and speed, we should use that instead. We introduce
	xstrdup() which wraps strdup() in a failure upon memory allocation
	errors.

2015-11-30  Serguey Parkhomovsky <sergueyparkhomovsky@@gmail.com>

	* src/scan.l: Error on unbalanced parentheses in rules section.

2015-11-29  Will Estes <westes575@@gmail.com>

	* src/Makefile.am: Cleaned up BUILT_SOURCES list.  Removed reference to skel.c as a built source since other make rules
	cover this case.

2015-11-29  Will Estes <westes575@@gmail.com>

	* src/Makefile.am: Sorted file names in flex_SOURCES

2015-11-27  Mightyjo <mightyjo@@gmail.com>

	* src/ecs.c, src/flexdef.h, src/main.c, src/misc.c, src/scan.l,
	src/scanopt.c, src/sym.c, src/tblcmp.c: Replaced CHAR macro with
	unsigned char type.  Thanks to Michael McConville for pointing out that the old Char
	macro causes problems with static analysis.  The macro has been
	removed and replaced with 'unsigned char' throughout the flex
	sources. The macro is not needed at best and was confusing at worst.
	It was not used in any of the example files nor was it mentioned in
	the manual at all.

2015-11-21  Will Estes <westes575@@gmail.com>

	* configure.ac: updated syntax of AC_INIT call as per autoupdate

2015-11-21  Will Estes <westes575@@gmail.com>

	* tests/Makefile.am: removed extra call to a _CPPFLAGS variable

2015-05-14  Stefan Reinauer <stefan.reinauer@@coreboot.org>

	* src/buf.c, src/ccl.c, src/dfa.c, src/ecs.c, src/gen.c,
	src/main.c, src/misc.c, src/nfa.c, src/parse.y, src/scan.l,
	src/scanopt.c, src/sym.c, src/tblcmp.c: Switch function definitions
	from mixed K&R to consistent ANSI C.  flex was using K&R function definitions for some functions and ANSI
	C style in others, sometimes even in the same file. Change the code
	to consistently use ANSI C.  Signed-off-by: Stefan Reinauer <stefan.reinauer@@coreboot.org>

2015-11-16  Mightyjo <mightyjo@@gmail.com>

	* tests/Makefile.am: Used in-tree header file for c++ tests.
@
text
@d3 1
a3 1
#   Copyright 1992-2015 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2015-08-20'
d53 1
a53 1
Copyright 1992-2015 Free Software Foundation, Inc.
d171 2
a172 4
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
a178 5
	    earmv*)
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
d184 1
a184 1
	    arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
a199 7
	# Determine ABI tags.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
		;;
	esac
d210 1
a210 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d216 1
a216 1
	echo "${machine}-${os}${release}${abi}"
a237 3
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
a935 3
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1024 1
a1024 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
@


1.1.1.2.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-01-01'
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d189 1
a189 1
	# to ELF recently (or will in the future) and ABI.
d191 1
a191 4
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
a239 4
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
d271 1
a271 1
		UNAME_MACHINE=alpha ;;
d273 1
a273 1
		UNAME_MACHINE=alpha ;;
d275 1
a275 1
		UNAME_MACHINE=alpha ;;
d277 1
a277 1
		UNAME_MACHINE=alphaev5 ;;
d279 1
a279 1
		UNAME_MACHINE=alphaev56 ;;
d281 1
a281 1
		UNAME_MACHINE=alphapca56 ;;
d283 1
a283 1
		UNAME_MACHINE=alphapca57 ;;
d285 1
a285 1
		UNAME_MACHINE=alphaev6 ;;
d287 1
a287 1
		UNAME_MACHINE=alphaev67 ;;
d289 1
a289 1
		UNAME_MACHINE=alphaev68 ;;
d291 1
a291 1
		UNAME_MACHINE=alphaev68 ;;
d293 1
a293 1
		UNAME_MACHINE=alphaev68 ;;
d295 1
a295 1
		UNAME_MACHINE=alphaev69 ;;
d297 1
a297 1
		UNAME_MACHINE=alphaev7 ;;
d299 1
a299 1
		UNAME_MACHINE=alphaev79 ;;
d306 1
a306 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
d379 1
a379 1
	SUN_ARCH=i386
d383 1
a383 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d385 1
a385 1
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d388 1
a388 1
		SUN_ARCH=x86_64
d413 1
a413 1
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
d638 2
a639 2
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
d642 3
a644 3
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
d683 1
a683 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d687 1
a687 1
	if [ ${HP_ARCH} = hppa2.0w ]
d700 1
a700 1
	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
d703 1
a703 1
		HP_ARCH=hppa2.0w
d705 1
a705 1
		HP_ARCH=hppa64
d810 2
a811 2
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
d816 2
a817 2
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d899 1
a899 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d922 1
a922 1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
a967 3
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a992 3
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1024 3
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1123 1
a1123 1
	# prints for the "djgpp" host, or else GDB configure will decide that
a1271 3
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
d1285 1
a1285 1
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d1287 1
a1287 1
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d1309 1
a1309 1
	if test "$UNAME_PROCESSOR" = x86; then
d1340 1
a1340 1
	if test "$cputype" = 386; then
d1382 1
a1382 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
a1392 3
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
d1398 3
a1400 3
This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1402 1
a1402 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1404 1
a1404 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1406 4
a1409 3
If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.
@


