View | Details | Raw Unified
Collapse All | Expand All

(-) gpsim-0.21.2/config.guess (-291 / +729 lines)
 Lines 1-7    Link Here 
#! /bin/sh
#! /bin/sh
# Attempt to guess a canonical system name.
# Attempt to guess a canonical system name.
#   Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#
#   2000, 2001, 2002 Free Software Foundation, Inc.
timestamp='2002-03-20'
# This file is free software; you can redistribute it and/or modify it
# 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
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# the Free Software Foundation; either version 2 of the License, or
 Lines 21-56    Link Here 
# configuration script generated by Autoconf, you may include it under
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# the same distribution terms that you use for the rest of that program.
# Written by Per Bothner <bothner@cygnus.com>.
# Originally written by Per Bothner <per@bothner.com>.
# The master version of this file is at the FSF in /home/gd/gnu/lib.
# Please send patches to <config-patches@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
#
#
# This script attempts to guess a canonical system name similar to
# This script attempts to guess a canonical system name similar to
# config.sub.  If it succeeds, it prints the system name on stdout, and
# config.sub.  If it succeeds, it prints the system name on stdout, and
# exits with 0.  Otherwise, it exits with 1.
# exits with 0.  Otherwise, it exits with 1.
#
#
# The plan is that this can be called by configure scripts if you
# The plan is that this can be called by configure scripts if you
# don't specify an explicit system type (host/target name).
# don't specify an explicit build system type.
#
# Only a few systems have been added to this list; please add others
me=`echo "$0" | sed -e 's,.*/,,'`
# (but try to keep the structure clean).
#
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 (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
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 0 ;;
    --version | -v )
       echo "$version" ; exit 0 ;;
    --help | --h* | -h )
       echo "$usage"; exit 0 ;;
    -- )     # 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
dummy=dummy-$$
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
# CC_FOR_BUILD -- compiler used by this script.
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int dummy(){}" > $dummy.c ;
	for c in cc gcc c89 c99 ; do
	  ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
	  if test $? = 0 ; then
	     CC_FOR_BUILD="$c"; break ;
	  fi ;
	done ;
	rm -f $dummy.c $dummy.o $dummy.rel ;
	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'
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@noc.rutgers.edu 8/24/94.)
# (ghazi@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
	PATH=$PATH:/.attbin ; export PATH
	PATH=$PATH:/.attbin ; export PATH
fi
fi
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
# Note: order is significant - the case branches are not exclusive.
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    *:NetBSD:*:*)
	# NetBSD (nbsd) targets should (where applicable) match one or
	# more of the tupples: *-*-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=`(/sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
	case "${UNAME_MACHINE_ARCH}" in
	    arm*) machine=arm-unknown ;;
	    sh3el) machine=shl-unknown ;;
	    sh3eb) machine=sh-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.
	case "${UNAME_MACHINE_ARCH}" in
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
		eval $set_cc_for_build
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep __ELF__ >/dev/null
		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
	# The OS release
	release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
	# contains redundant information, the shorter form:
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
	echo "${machine}-${os}${release}"
	exit 0 ;;
    amiga:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    arc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    hp300:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mac68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    macppc:OpenBSD:*:*)
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvme68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvme88k:OpenBSD:*:*)
	echo m88k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mvmeppc:OpenBSD:*:*)
	echo powerpc-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    pmax:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    sgi:OpenBSD:*:*)
	echo mipseb-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    sun3:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    wgrisc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    *:OpenBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    alpha:OSF1:*:*)
    alpha:OSF1:*:*)
	if test $UNAME_RELEASE = "V4.0"; then
	if test $UNAME_RELEASE = "V4.0"; then
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
 Lines 59-145    Link Here 
	# A Tn.n version is a released field test version.
	# A Tn.n version is a released field test version.
	# A Xn.n version is an unreleased experimental baselevel.
	# A Xn.n version is an unreleased experimental baselevel.
	# 1.2 uses "1.2" for uname -r.
	# 1.2 uses "1.2" for uname -r.
	cat <<EOF >dummy.s
	cat <<EOF >$dummy.s
	.data
\$Lformat:
	.byte 37,100,45,37,120,10,0	# "%d-%x\n"
	.text
	.globl main
	.globl main
	.align 4
	.ent main
	.ent main
main:
main:
	.frame \$30,0,\$26,0
	.frame \$30,16,\$26,0
	.prologue 0
	ldgp \$29,0(\$27)
	.long 0x47e03d80 # implver $0
	.prologue 1
	lda \$2,259
	.long 0x47e03d80 # implver \$0
	.long 0x47e20c21 # amask $2,$1
	lda \$2,-1
	srl \$1,8,\$2
	.long 0x47e20c21 # amask \$2,\$1
	sll \$2,2,\$2
	lda \$16,\$Lformat
	sll \$0,3,\$0
	mov \$0,\$17
	addl \$1,\$0,\$0
	not \$1,\$18
	addl \$2,\$0,\$0
	jsr \$26,printf
	ret \$31,(\$26),1
	ldgp \$29,0(\$26)
	mov 0,\$16
	jsr \$26,exit
	.end main
	.end main
EOF
EOF
	${CC-cc} dummy.s -o dummy 2>/dev/null
	eval $set_cc_for_build
	$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
	if test "$?" = 0 ; then
	if test "$?" = 0 ; then
		./dummy
		case `./$dummy` in
		case "$?" in
			0-0)
			7)
				UNAME_MACHINE="alpha"
				UNAME_MACHINE="alpha"
				;;
				;;
			15)
			1-0)
				UNAME_MACHINE="alphaev5"
				UNAME_MACHINE="alphaev5"
				;;
				;;
			14)
			1-1)
				UNAME_MACHINE="alphaev56"
				UNAME_MACHINE="alphaev56"
				;;
				;;
			10)
			1-101)
				UNAME_MACHINE="alphapca56"
				UNAME_MACHINE="alphapca56"
				;;
				;;
			16)
			2-303)
				UNAME_MACHINE="alphaev6"
				UNAME_MACHINE="alphaev6"
				;;
				;;
			2-307)
				UNAME_MACHINE="alphaev67"
				;;
			2-1307)
				UNAME_MACHINE="alphaev68"
				;;
		esac
		esac
	fi
	fi
	rm -f dummy.s dummy
	rm -f $dummy.s $dummy
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	exit 0 ;;
    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 0 ;;
	exit 0 ;;
    21064:Windows_NT:50:3)
    21064:Windows_NT:50:3)
	echo alpha-dec-winnt3.5
	echo alpha-dec-winnt3.5
	exit 0 ;;
	exit 0 ;;
    Amiga*:UNIX_System_V:4.0:*)
    Amiga*:UNIX_System_V:4.0:*)
	echo m68k-cbm-sysv4
	echo m68k-unknown-sysv4
	exit 0;;
	exit 0;;
    amiga:NetBSD:*:*)
    *:[Aa]miga[Oo][Ss]:*:*)
      echo m68k-cbm-netbsd${UNAME_RELEASE}
	echo ${UNAME_MACHINE}-unknown-amigaos
      exit 0 ;;
    amiga:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    arc64:OpenBSD:*:*)
	echo mips64el-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    arc:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    hkmips:OpenBSD:*:*)
	echo mips-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    pmax:OpenBSD:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    sgi:OpenBSD:*:*)
    *:[Mm]orph[Oo][Ss]:*:*)
	echo mips-unknown-openbsd${UNAME_RELEASE}
	echo ${UNAME_MACHINE}-unknown-morphos
	exit 0 ;;
	exit 0 ;;
    wgrisc:OpenBSD:*:*)
    *:OS/390:*:*)
	echo mipsel-unknown-openbsd${UNAME_RELEASE}
	echo i370-ibm-openedition
	exit 0 ;;
	exit 0 ;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
	echo arm-acorn-riscix${UNAME_RELEASE}
	echo arm-acorn-riscix${UNAME_RELEASE}
	exit 0;;
	exit 0;;
    arm32:NetBSD:*:*)
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
	echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
	exit 0 ;;
    SR2?01:HI-UX/MPP:*:*)
	echo hppa1.1-hitachi-hiuxmpp
	echo hppa1.1-hitachi-hiuxmpp
	exit 0;;
	exit 0;;
    Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
		echo pyramid-pyramid-sysv3
		echo pyramid-pyramid-sysv3
 Lines 147-155    Link Here 
		echo pyramid-pyramid-bsd
		echo pyramid-pyramid-bsd
	fi
	fi
	exit 0 ;;
	exit 0 ;;
    NILE:*:*:dcosx)
    NILE*:*:*:dcosx)
	echo pyramid-pyramid-svr4
	echo pyramid-pyramid-svr4
	exit 0 ;;
	exit 0 ;;
    sun4H:SunOS:5.*:*)
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit 0 ;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit 0 ;;
	exit 0 ;;
 Lines 175-181    Link Here 
	echo m68k-sun-sunos${UNAME_RELEASE}
	echo m68k-sun-sunos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    sun*:*:4.2BSD:*)
    sun*:*:4.2BSD:*)
	UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
	case "`/bin/arch`" in
	case "`/bin/arch`" in
	    sun3)
	    sun3)
 Lines 189-218    Link Here 
    aushp:SunOS:*:*)
    aushp:SunOS:*:*)
	echo sparc-auspex-sunos${UNAME_RELEASE}
	echo sparc-auspex-sunos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    atari*:NetBSD:*:*)
    # The situation for MiNT is a little confusing.  The machine name
	echo m68k-atari-netbsd${UNAME_RELEASE}
    # can be virtually everything (everything which is not
	exit 0 ;;
    # "atarist" or "atariste" at least should have a processor
    atari*:OpenBSD:*:*)
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
	echo m68k-unknown-openbsd${UNAME_RELEASE}
    # to the lowercase version "mint" (or "freemint").  Finally
	exit 0 ;;
    # the system name "TOS" denotes a system which is actually not
    sun3*:NetBSD:*:*)
    # MiNT.  But MiNT is downward compatible to TOS, so this should
	echo m68k-sun-netbsd${UNAME_RELEASE}
    # be no problem.
	exit 0 ;;
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    sun3*:OpenBSD:*:*)
        echo m68k-atari-mint${UNAME_RELEASE}
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
    mac68k:NetBSD:*:*)
	echo m68k-apple-netbsd${UNAME_RELEASE}
	exit 0 ;;
    mac68k:OpenBSD:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    mvme68k:OpenBSD:*:*)
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	echo m68k-atari-mint${UNAME_RELEASE}
	exit 0 ;;
        exit 0 ;;
    mvme88k:OpenBSD:*:*)
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
	echo m88k-unknown-openbsd${UNAME_RELEASE}
        echo m68k-atari-mint${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
        echo m68k-milan-mint${UNAME_RELEASE}
        exit 0 ;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
        echo m68k-hades-mint${UNAME_RELEASE}
        exit 0 ;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
        echo m68k-unknown-mint${UNAME_RELEASE}
        exit 0 ;;
    powerpc:machten:*:*)
    powerpc:machten:*:*)
	echo powerpc-apple-machten${UNAME_RELEASE}
	echo powerpc-apple-machten${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
 Lines 225-236    Link Here 
    VAX*:ULTRIX*:*:*)
    VAX*:ULTRIX*:*:*)
	echo vax-dec-ultrix${UNAME_RELEASE}
	echo vax-dec-ultrix${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    2020:CLIX:*:*)
    2020:CLIX:*:* | 2430:CLIX:*:*)
	echo clipper-intergraph-clix${UNAME_RELEASE}
	echo clipper-intergraph-clix${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
    mips:*:*:UMIPS | mips:*:*:RISCos)
	sed 's/^	//' << EOF >dummy.c
	eval $set_cc_for_build
	int main (argc, argv) int argc; char **argv; {
	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 (host_mips) && defined (MIPSEB)
	#if defined (SYSTYPE_SYSV)
	#if defined (SYSTYPE_SYSV)
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
 Lines 245-256    Link Here 
	  exit (-1);
	  exit (-1);
	}
	}
EOF
EOF
	${CC-cc} dummy.c -o dummy \
	$CC_FOR_BUILD $dummy.c -o $dummy \
	  && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
	  && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
	  && rm dummy.c dummy && exit 0
	  && rm -f $dummy.c $dummy && exit 0
	rm -f dummy.c dummy
	rm -f $dummy.c $dummy
	echo mips-mips-riscos${UNAME_RELEASE}
	echo mips-mips-riscos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    Motorola:PowerMAX_OS:*:*)
	echo powerpc-motorola-powermax
	exit 0 ;;
    Night_Hawk:Power_UNIX:*:*)
    Night_Hawk:Power_UNIX:*:*)
	echo powerpc-harris-powerunix
	echo powerpc-harris-powerunix
	exit 0 ;;
	exit 0 ;;
 Lines 266-280    Link Here 
    AViiON:dgux:*:*)
    AViiON:dgux:*:*)
        # DG/UX returns AViiON for all architectures
        # DG/UX returns AViiON for all architectures
        UNAME_PROCESSOR=`/usr/bin/uname -p`
        UNAME_PROCESSOR=`/usr/bin/uname -p`
        if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
	if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
	then
	     -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
	    then
		echo m88k-dg-dgux${UNAME_RELEASE}
		echo m88k-dg-dgux${UNAME_RELEASE}
	else
	    else
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
	    fi
	else
	    echo i586-dg-dgux${UNAME_RELEASE}
	fi
	fi
        else echo i586-dg-dgux${UNAME_RELEASE}
        fi
 	exit 0 ;;
 	exit 0 ;;
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
	echo m88k-dolphin-sysv3
	echo m88k-dolphin-sysv3
 Lines 295-306    Link Here 
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    ????????: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
	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
    i?86:AIX:*:*)
    i*86:AIX:*:*)
	echo i386-ibm-aix
	echo i386-ibm-aix
	exit 0 ;;
	exit 0 ;;
    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 0 ;;
    *:AIX:2:3)
    *:AIX:2:3)
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
		sed 's/^		//' << EOF >dummy.c
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
		#include <sys/systemcfg.h>
		#include <sys/systemcfg.h>
		main()
		main()
 Lines 311-318    Link Here 
			exit(0);
			exit(0);
			}
			}
EOF
EOF
		${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
		$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
		rm -f dummy.c dummy
		rm -f $dummy.c $dummy
		echo rs6000-ibm-aix3.2.5
		echo rs6000-ibm-aix3.2.5
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
		echo rs6000-ibm-aix3.2.4
		echo rs6000-ibm-aix3.2.4
 Lines 320-327    Link Here 
		echo rs6000-ibm-aix3.2
		echo rs6000-ibm-aix3.2
	fi
	fi
	exit 0 ;;
	exit 0 ;;
    *:AIX:*:4)
    *:AIX:*:[45])
	if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
	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
		IBM_ARCH=rs6000
	else
	else
		IBM_ARCH=powerpc
		IBM_ARCH=powerpc
 Lines 329-335    Link Here 
	if [ -x /usr/bin/oslevel ] ; then
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
		IBM_REV=`/usr/bin/oslevel`
	else
	else
		IBM_REV=4.${UNAME_RELEASE}
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	fi
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
	exit 0 ;;
	exit 0 ;;
 Lines 339-345    Link Here 
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
	echo romp-ibm-bsd4.4
	echo romp-ibm-bsd4.4
	exit 0 ;;
	exit 0 ;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
	exit 0 ;;                           # report: romp-ibm BSD 4.3
	exit 0 ;;                           # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
    *:BOSX:*:*)
 Lines 354-371    Link Here 
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
	echo m68k-hp-bsd4.4
	echo m68k-hp-bsd4.4
	exit 0 ;;
	exit 0 ;;
    9000/[3478]??:HP-UX:*:*)
    9000/[34678]??:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
	case "${UNAME_MACHINE}" in
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
	    9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
	    9000/[678][0-9][0-9])
	    9000/8?? )            HP_ARCH=hppa1.0 ;;
		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 $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
		    if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
		    rm -f $dummy.c $dummy
		fi ;;
	esac
	esac
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
	exit 0 ;;
	exit 0 ;;
    ia64:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
	exit 0 ;;
    3050*:HI-UX:*:*)
    3050*:HI-UX:*:*)
	sed 's/^	//' << EOF >dummy.c
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <unistd.h>
	#include <unistd.h>
	int
	int
	main ()
	main ()
 Lines 390-397    Link Here 
	  exit (0);
	  exit (0);
	}
	}
EOF
EOF
	${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
	$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
	rm -f dummy.c dummy
	rm -f $dummy.c $dummy
	echo unknown-hitachi-hiuxwe2
	echo unknown-hitachi-hiuxwe2
	exit 0 ;;
	exit 0 ;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
 Lines 400-412    Link Here 
    9000/8??:4.3bsd:*:*)
    9000/8??:4.3bsd:*:*)
	echo hppa1.0-hp-bsd
	echo hppa1.0-hp-bsd
	exit 0 ;;
	exit 0 ;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
	echo hppa1.0-hp-mpeix
	exit 0 ;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
	echo hppa1.1-hp-osf
	echo hppa1.1-hp-osf
	exit 0 ;;
	exit 0 ;;
    hp8??:OSF1:*:*)
    hp8??:OSF1:*:*)
	echo hppa1.0-hp-osf
	echo hppa1.0-hp-osf
	exit 0 ;;
	exit 0 ;;
    i?86:OSF1:*:*)
    i*86:OSF1:*:*)
	if [ -x /usr/sbin/sysversion ] ; then
	if [ -x /usr/sbin/sysversion ] ; then
	    echo ${UNAME_MACHINE}-unknown-osf1mk
	    echo ${UNAME_MACHINE}-unknown-osf1mk
	else
	else
 Lines 434-490    Link Here 
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
	echo c4-convex-bsd
	echo c4-convex-bsd
        exit 0 ;;
        exit 0 ;;
    CRAY*X-MP:*:*:*)
	echo xmp-cray-unicos
        exit 0 ;;
    CRAY*Y-MP:*:*:*)
    CRAY*Y-MP:*:*:*)
	echo ymp-cray-unicos${UNAME_RELEASE}
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit 0 ;;
	exit 0 ;;
    CRAY*[A-Z]90:*:*:*)
    CRAY*[A-Z]90:*:*:*)
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
	      -e 's/\.[^.]*$/.X/'
	exit 0 ;;
	exit 0 ;;
    CRAY*TS:*:*:*)
    CRAY*TS:*:*:*)
	echo t90-cray-unicos${UNAME_RELEASE}
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit 0 ;;
	exit 0 ;;
    CRAY-2:*:*:*)
    CRAY*T3D:*:*:*)
	echo cray2-cray-unicos
	echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
        exit 0 ;;
	exit 0 ;;
    F300:UNIX_System_V:*:*)
    CRAY*T3E:*:*:*)
        FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit 0 ;;
    CRAY*SV1:*:*:*)
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit 0 ;;
    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/ /_/'`
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
        echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
        exit 0 ;;
        exit 0 ;;
    F301:UNIX_System_V:*:*)
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
       echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
       exit 0 ;;
    hp3[0-9][05]:NetBSD:*:*)
	echo m68k-hp-netbsd${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    hp300:OpenBSD:*:*)
    sparc*:BSD/OS:*:*)
	echo m68k-unknown-openbsd${UNAME_RELEASE}
	echo sparc-unknown-bsdi${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    i?86:BSD/386:*:* | *:BSD/OS:*:*)
    *:BSD/OS:*:*)
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    *:FreeBSD:*:*)
    *:FreeBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit 0 ;;
	exit 0 ;;
    *:NetBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
	exit 0 ;;
    *:OpenBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
	exit 0 ;;
    i*:CYGWIN*:*)
    i*:CYGWIN*:*)
	echo i386-pc-cygwin32
	echo ${UNAME_MACHINE}-pc-cygwin
	exit 0 ;;
	exit 0 ;;
    i*:MINGW*:*)
    i*:MINGW*:*)
	echo i386-pc-mingw32
	echo ${UNAME_MACHINE}-pc-mingw32
	exit 0 ;;
    i*:PW*:*)
	echo ${UNAME_MACHINE}-pc-pw32
	exit 0 ;;
    x86:Interix*:3*)
	echo i386-pc-interix3
	exit 0 ;;
    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 i386-pc-interix
	exit 0 ;;
    i*:UWIN*:*)
	echo ${UNAME_MACHINE}-pc-uwin
	exit 0 ;;
	exit 0 ;;
    p*:CYGWIN*:*)
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin32
	echo powerpcle-unknown-cygwin
	exit 0 ;;
	exit 0 ;;
    prep*:SunOS:5.*:*)
    prep*:SunOS:5.*:*)
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
 Lines 492-629    Link Here 
    *:GNU:*:*)
    *:GNU:*:*)
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
	exit 0 ;;
	exit 0 ;;
    *:Linux:*:*)
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
	exit 0 ;;
    arm*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit 0 ;;
    ia64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit 0 ;;
    m68*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit 0 ;;
    mips:Linux:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#undef CPU
	#undef mips
	#undef mipsel
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	CPU=mipsel
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	CPU=mips
	#else
	CPU=
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
	rm -f $dummy.c
	test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
	;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-gnu
	exit 0 ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-gnu
	exit 0 ;;
    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 ld.so.1 >/dev/null
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
	exit 0 ;;
    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-gnu ;;
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
	  *)    echo hppa-unknown-linux-gnu ;;
	esac
	exit 0 ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-gnu
	exit 0 ;;
    s390:Linux:*:* | s390x:Linux:*:*)
	echo ${UNAME_MACHINE}-ibm-linux
	exit 0 ;;
    sh*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit 0 ;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit 0 ;;
    x86_64:Linux:*:*)
	echo x86_64-unknown-linux-gnu
	exit 0 ;;
    i*86:Linux:*:*)
	# The BFD linker knows what the default object file format is, so
	# The BFD linker knows what the default object file format is, so
	# first see if it will tell us.
	# first see if it will tell us. cd to the root directory to prevent
	ld_help_string=`ld --help 2>&1`
	# problems with other programs or directories called `ld' in the path.
	ld_supported_emulations=`echo $ld_help_string \
	# Set LC_ALL=C to ensure ld outputs messages in English.
			 | sed -ne '/supported emulations:/!d
	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
			 | sed -ne '/supported targets:/!d
				    s/[ 	][ 	]*/ /g
				    s/[ 	][ 	]*/ /g
				    s/.*supported emulations: *//
				    s/.*supported targets: *//
				    s/ .*//
				    s/ .*//
				    p'`
				    p'`
        case "$ld_supported_emulations" in
        case "$ld_supported_targets" in
	  i?86linux)  echo "${UNAME_MACHINE}-pc-linux-gnuaout"      ; exit 0 ;;
	  elf32-i386)
	  i?86coff)   echo "${UNAME_MACHINE}-pc-linux-gnucoff"      ; exit 0 ;;
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
	  sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
		;;
	  m68klinux)  echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
	  a.out-i386-linux)
	  elf32ppc)   echo "powerpc-unknown-linux-gnu"              ; exit 0 ;;
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
		exit 0 ;;		
	  coff-i386)
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
		exit 0 ;;
	  "")
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
		# one that does not give us useful --help.
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
		exit 0 ;;
	esac
	esac
	# Determine whether the default compiler is a.out or elf
	if test "${UNAME_MACHINE}" = "alpha" ; then
	eval $set_cc_for_build
		sed 's/^	//'  <<EOF >dummy.s
	sed 's/^	//' << EOF >$dummy.c
		.globl main
	#include <features.h>
		.ent main
	#ifdef __ELF__
	main:
	# ifdef __GLIBC__
		.frame \$30,0,\$26,0
	#  if __GLIBC__ >= 2
		.prologue 0
	LIBC=gnu
		.long 0x47e03d80 # implver $0
	#  else
		lda \$2,259
	LIBC=gnulibc1
		.long 0x47e20c21 # amask $2,$1
	#  endif
		srl \$1,8,\$2
	# else
		sll \$2,2,\$2
	LIBC=gnulibc1
		sll \$0,3,\$0
	# endif
		addl \$1,\$0,\$0
	#else
		addl \$2,\$0,\$0
	#ifdef __INTEL_COMPILER
		ret \$31,(\$26),1
	LIBC=gnu
		.end main
	#else
EOF
	LIBC=gnuaout
		LIBC=""
	#endif
		${CC-cc} dummy.s -o dummy 2>/dev/null
	#endif
		if test "$?" = 0 ; then
			./dummy
			case "$?" in
			7)
				UNAME_MACHINE="alpha"
				;;
			15)
				UNAME_MACHINE="alphaev5"
				;;
			14)
				UNAME_MACHINE="alphaev56"
				;;
			10)
				UNAME_MACHINE="alphapca56"
				;;
			16)
				UNAME_MACHINE="alphaev6"
				;;
			esac	
			objdump --private-headers dummy | \
			  grep ld.so.1 > /dev/null
			if test "$?" = 0 ; then
				LIBC="libc1"
			fi
		fi	
		rm -f dummy.s dummy
		echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
	elif test "${UNAME_MACHINE}" = "mips" ; then
	  cat >dummy.c <<EOF
main(argc, argv)
     int argc;
     char *argv[];
{
#ifdef __MIPSEB__
  printf ("%s-unknown-linux-gnu\n", argv[1]);
#endif
#ifdef __MIPSEL__
  printf ("%sel-unknown-linux-gnu\n", argv[1]);
#endif
  return 0;
}
EOF
	  ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
	  rm -f dummy.c dummy
	else
	  # Either a pre-BFD a.out linker (linux-gnuoldld)
	  # or one that does not give us useful --help.
	  # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
	  # If ld does not provide *any* "supported emulations:"
	  # that means it is gnuoldld.
	  echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
	  test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
	  case "${UNAME_MACHINE}" in
	  i?86)
	    VENDOR=pc;
	    ;;
	  *)
	    VENDOR=unknown;
	    ;;
	  esac
	  # Determine whether the default compiler is a.out or elf
	  cat >dummy.c <<EOF
#include <features.h>
main(argc, argv)
     int argc;
     char *argv[];
{
#ifdef __ELF__
# ifdef __GLIBC__
#  if __GLIBC__ >= 2
    printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
#  else
    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
#  endif
# else
   printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
# endif
#else
  printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
#endif
  return 0;
}
EOF
EOF
	  ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
	  rm -f dummy.c dummy
	rm -f $dummy.c
	fi ;;
	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
# are messed up and put the nodename in both sysname and nodename.
	;;
    i?86:DYNIX/ptx:4*:*)
    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
	echo i386-sequent-sysv4
	exit 0 ;;
	exit 0 ;;
    i?86:UNIX_SV:4.2MP:2.*)
    i*86:UNIX_SV:4.2MP:2.*)
        # Unixware is an offshoot of SVR4, but it has its own version
        # Unixware is an offshoot of SVR4, but it has its own version
        # number series starting with 2...
        # number series starting with 2...
        # I am not positive that other SVR4 systems won't match this,
        # I am not positive that other SVR4 systems won't match this,
 Lines 631-644    Link Here 
        # Use sysv4.2uw... so that sysv4* matches it.
        # Use sysv4.2uw... so that sysv4* matches it.
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
	exit 0 ;;
	exit 0 ;;
    i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
    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
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
	else
	else
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
	fi
	fi
	exit 0 ;;
	exit 0 ;;
    i?86:*:3.2:*)
    i*86:*:5:[78]*)
	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 0 ;;
    i*86:*:3.2:*)
	if test -f /usr/options/cb.name; then
	if test -f /usr/options/cb.name; then
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
 Lines 647-658    Link Here 
		(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
		(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
			&& UNAME_MACHINE=i586
			&& UNAME_MACHINE=i586
		(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
			&& UNAME_MACHINE=i686
		(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
			&& UNAME_MACHINE=i686
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
	else
	else
		echo ${UNAME_MACHINE}-pc-sysv32
		echo ${UNAME_MACHINE}-pc-sysv32
	fi
	fi
	exit 0 ;;
	exit 0 ;;
    i*86:*DOS:*:*)
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
	exit 0 ;;
    pc:*:*:*)
    pc:*:*:*)
	# Left here for compatibility:
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # the processor, so we play safe by assuming i386.
        # the processor, so we play safe by assuming i386.
	echo i386-pc-msdosdjgpp
	echo i386-pc-msdosdjgpp
 Lines 676-682    Link Here 
	exit 0 ;;
	exit 0 ;;
    M68*:*:R3V[567]*:*)
    M68*:*:R3V[567]*:*)
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
	OS_REL=''
	OS_REL=''
	test -r /etc/.relid \
	test -r /etc/.relid \
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
 Lines 687-710    Link Here 
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
          && echo i486-ncr-sysv4 && exit 0 ;;
          && echo i486-ncr-sysv4 && exit 0 ;;
    m68*:LynxOS:2.*:*)
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
	echo m68k-unknown-lynxos${UNAME_RELEASE}
	echo m68k-unknown-lynxos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    mc68030:UNIX_System_V:4.*:*)
    mc68030:UNIX_System_V:4.*:*)
	echo m68k-atari-sysv4
	echo m68k-atari-sysv4
	exit 0 ;;
	exit 0 ;;
    i?86:LynxOS:2.*:*)
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
	echo i386-unknown-lynxos${UNAME_RELEASE}
	echo i386-unknown-lynxos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    TSUNAMI:LynxOS:2.*:*)
    TSUNAMI:LynxOS:2.*:*)
	echo sparc-unknown-lynxos${UNAME_RELEASE}
	echo sparc-unknown-lynxos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
    rs6000:LynxOS:2.*:*)
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
	exit 0 ;;
    SM[BE]S:UNIX_SV:*:*)
    SM[BE]S:UNIX_SV:*:*)
	echo mips-dde-sysv${UNAME_RELEASE}
	echo mips-dde-sysv${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    RM*:ReliantUNIX-*:*:*)
	echo mips-sni-sysv4
	exit 0 ;;
    RM*:SINIX-*:*:*)
    RM*:SINIX-*:*:*)
	echo mips-sni-sysv4
	echo mips-sni-sysv4
	exit 0 ;;
	exit 0 ;;
 Lines 716-723    Link Here 
		echo ns32k-sni-sysv
		echo ns32k-sni-sysv
	fi
	fi
	exit 0 ;;
	exit 0 ;;
    PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
                           # says <Richard.M.Bartel@ccMail.Census.GOV>
                      # says <Richard.M.Bartel@ccMail.Census.GOV>
        echo i586-unisys-sysv4
        echo i586-unisys-sysv4
        exit 0 ;;
        exit 0 ;;
    *:UNIX_System_V:4*:FTX*)
    *:UNIX_System_V:4*:FTX*)
 Lines 729-753    Link Here 
	# From seanf@swdc.stratus.com.
	# From seanf@swdc.stratus.com.
	echo i860-stratus-sysv4
	echo i860-stratus-sysv4
	exit 0 ;;
	exit 0 ;;
    *:VOS:*:*)
	# From Paul.Green@stratus.com.
	echo hppa1.1-stratus-vos
	exit 0 ;;
    mc68*:A/UX:*:*)
    mc68*:A/UX:*:*)
	echo m68k-apple-aux${UNAME_RELEASE}
	echo m68k-apple-aux${UNAME_RELEASE}
	exit 0 ;;
	exit 0 ;;
    news*:NEWS-OS:*:6*)
    news*:NEWS-OS:6*:*)
	echo mips-sony-newsos6
	echo mips-sony-newsos6
	exit 0 ;;
	exit 0 ;;
    R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
	if [ -d /usr/nec ]; then
	if [ -d /usr/nec ]; then
	        echo mips-nec-sysv${UNAME_RELEASE}
	        echo mips-nec-sysv${UNAME_RELEASE}
	else
	else
	        echo mips-unknown-sysv${UNAME_RELEASE}
	        echo mips-unknown-sysv${UNAME_RELEASE}
	fi
	fi
        exit 0 ;;
        exit 0 ;;
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
	echo powerpc-be-beos
	exit 0 ;;
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
	echo powerpc-apple-beos
	exit 0 ;;
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
	echo i586-pc-beos
	exit 0 ;;
    SX-4:SUPER-UX:*:*)
	echo sx4-nec-superux${UNAME_RELEASE}
	exit 0 ;;
    SX-5:SUPER-UX:*:*)
	echo sx5-nec-superux${UNAME_RELEASE}
	exit 0 ;;
    Power*:Rhapsody:*:*)
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
	exit 0 ;;
    *:Rhapsody:*:*)
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
	exit 0 ;;
    *:Darwin:*:*)
	echo `uname -p`-apple-darwin${UNAME_RELEASE}
	exit 0 ;;
    *: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 0 ;;
    *:QNX:*:4*)
	echo i386-pc-qnx
	exit 0 ;;
    NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
	echo nsr-tandem-nsk${UNAME_RELEASE}
	exit 0 ;;
    *:NonStop-UX:*:*)
	echo mips-compaq-nonstopux
	exit 0 ;;
    BS2000:POSIX*:*:*)
	echo bs2000-siemens-sysv
	exit 0 ;;
    DS/*:UNIX_System_V:*:*)
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
	exit 0 ;;
    *: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 0 ;;
    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 0 ;;
    *:TOPS-10:*:*)
	echo pdp10-unknown-tops10
	exit 0 ;;
    *:TENEX:*:*)
	echo pdp10-unknown-tenex
	exit 0 ;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
	echo pdp10-dec-tops20
	exit 0 ;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
	echo pdp10-xkl-tops20
	exit 0 ;;
    *:TOPS-20:*:*)
	echo pdp10-unknown-tops20
	exit 0 ;;
    *:ITS:*:*)
	echo pdp10-unknown-its
	exit 0 ;;
    i*86:XTS-300:*:STOP)
	echo ${UNAME_MACHINE}-unknown-stop
	exit 0 ;;
    i*86:atheos:*:*)
	echo ${UNAME_MACHINE}-unknown-atheos
	exit 0 ;;
esac
esac
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
cat >dummy.c <<EOF
eval $set_cc_for_build
cat >$dummy.c <<EOF
#ifdef _SEQUENT_
#ifdef _SEQUENT_
# include <sys/types.h>
# include <sys/types.h>
# include <sys/utsname.h>
# include <sys/utsname.h>
 Lines 785-791    Link Here 
#endif
#endif
  int version;
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
  exit (0);
#endif
#endif
 Lines 830-840    Link Here 
#endif
#endif
#if defined (vax)
#if defined (vax)
#if !defined (ultrix)
# if !defined (ultrix)
  printf ("vax-dec-bsd\n"); exit (0);
#  include <sys/param.h>
#else
#  if defined (BSD)
  printf ("vax-dec-ultrix\n"); exit (0);
#   if BSD == 43
#endif
      printf ("vax-dec-bsd4.3\n"); exit (0);
#   else
#    if BSD == 199006
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
#    else
      printf ("vax-dec-bsd\n"); exit (0);
#    endif
#   endif
#  else
    printf ("vax-dec-bsd\n"); exit (0);
#  endif
# else
    printf ("vax-dec-ultrix\n"); exit (0);
# endif
#endif
#endif
#if defined (alliant) && defined (i860)
#if defined (alliant) && defined (i860)
 Lines 845-852    Link Here 
}
}
EOF
EOF
${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
rm -f dummy.c dummy
rm -f $dummy.c $dummy
# Apollos put the system type in the environment.
# Apollos put the system type in the environment.
 Lines 878-883    Link Here 
    esac
    esac
fi
fi
#echo '(Unable to guess system type)' 1>&2
cat >&2 <<EOF
$0: unable to guess system type
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
    ftp://ftp.gnu.org/pub/gnu/config/
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.
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
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:
(-) gpsim-0.21.2/config.sub (-97 / +586 lines)
 Lines 1-6    Link Here 
#! /bin/sh
#! /bin/sh
# Configuration validation subroutine script, version 1.1.
# Configuration validation subroutine script.
#   Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002 Free Software Foundation, Inc.
timestamp='2002-03-07'
# This file is (in principle) common to ALL GNU software.
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine.  It does not imply ALL GNU software can.
# can handle that machine.  It does not imply ALL GNU software can.
 Lines 25-30    Link Here 
# configuration script generated by Autoconf, you may include it under
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# If it is invalid, we print an error message on stderr and exit with code 1.
 Lines 45-74    Link Here 
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.
# It is wrong to echo any other type of specification.
if [ x$1 = x ]
me=`echo "$0" | sed -e 's,.*/,,'`
then
	echo Configuration name missing. 1>&2
	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
	echo "or     $0 ALIAS" 1>&2
	echo where ALIAS is a recognized configuration type. 1>&2
	exit 1
fi
# First pass through any local machine types.
usage="\
case $1 in
Usage: $0 [OPTION] CPU-MFR-OPSYS
	*local*)
       $0 [OPTION] ALIAS
		echo $1
		exit 0
Canonicalize a configuration name.
		;;
	*)
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.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
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 0 ;;
    --version | -v )
       echo "$version" ; exit 0 ;;
    --help | --h* | -h )
       echo "$usage"; exit 0 ;;
    -- )     # Stop option processing
       shift; break ;;
    - )	# Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help"
       exit 1 ;;
    *local*)
       # First pass through any local machine types.
       echo $1
       exit 0;;
    * )
       break ;;
  esac
done
case $# in
 0) echo "$me: missing argument$help" >&2
    exit 1;;
 1) ;;
 *) echo "$me: too many arguments$help" >&2
    exit 1;;
esac
esac
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
case $maybe_os in
  linux-gnu*)
  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
    os=-$maybe_os
    os=-$maybe_os
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    ;;
    ;;
 Lines 94-108    Link Here 
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
	-apple)
	-apple | -axis)
		os=
		os=
		basic_machine=$1
		basic_machine=$1
		;;
		;;
	-sim | -cisco | -oki | -wec | -winbond)
		os=
		basic_machine=$1
		;;
	-scout)
		;;
	-wrs)
		os=-vxworks
		basic_machine=$1
		;;
	-chorusos*)
		os=-chorusos
		basic_machine=$1
		;;
 	-chorusrdb)
 		os=-chorusrdb
		basic_machine=$1
 		;;
	-hiux*)
	-hiux*)
		os=-hiuxwe2
		os=-hiuxwe2
		;;
		;;
	-sco5)
	-sco5)
		os=sco3.2v5
		os=-sco3.2v5
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
		;;
	-sco4)
	-sco4)
 Lines 121-126    Link Here 
		os=-sco3.2v2
		os=-sco3.2v2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
		;;
	-udk*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-isc)
	-isc)
		os=-isc2.2
		os=-isc2.2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
 Lines 143-168    Link Here 
	-psos*)
	-psos*)
		os=-psos
		os=-psos
		;;
		;;
	-mint | -mint[0-9]*)
		basic_machine=m68k-atari
		os=-mint
		;;
esac
esac
# Decode aliases for certain CPU-COMPANY combinations.
# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
case $basic_machine in
	# Recognize the basic CPU types without company name.
	# Recognize the basic CPU types without company name.
	# Some are omitted here because they have special meanings below.
	# Some are omitted here because they have special meanings below.
	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
	1750a | 580 \
		| arme[lb] | pyramid | mn10200 | mn10300 \
	| a29k \
		| tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
		| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
		| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
		| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
	| c4x | clipper \
		| mipstx39 | mipstx39el \
	| d10v | d30v | dsp16xx \
		| sparc | sparclet | sparclite | sparc64 | v850)
	| fr30 \
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
	| i370 | i860 | i960 | ia64 \
	| m32r | m68000 | m68k | m88k | mcore \
	| mips | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
	| mips64vr4100 | mips64vr4100el | mips64vr4300 \
	| mips64vr4300el | mips64vr5000 | mips64vr5000el \
	| mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
	| mipsisa32 | mipsisa64 \
	| mn10200 | mn10300 \
	| ns16k | ns32k \
	| openrisc | or32 \
	| pdp10 | pdp11 | pj | pjl \
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
	| pyramid \
	| sh | sh[34] | sh[34]eb | shbe | shle | sh64 \
	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
	| strongarm \
	| tahoe | thumb | tic80 | tron \
	| v850 | v850e \
	| we32k \
	| x86 | xscale | xstormy16 | xtensa \
	| z8k)
		basic_machine=$basic_machine-unknown
		;;
	m6811 | m68hc11 | m6812 | m68hc12)
		# Motorola 68HC11/12.
		basic_machine=$basic_machine-unknown
		basic_machine=$basic_machine-unknown
		os=-none
		;;
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
		;;
		;;
	# We use `pc' rather than `unknown'
	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	# (2) the word "unknown" tends to confuse beginning users.
	i[3456]86)
	i*86 | x86_64)
	  basic_machine=$basic_machine-pc
	  basic_machine=$basic_machine-pc
	  ;;
	  ;;
	# Object if more than one company name word.
	# Object if more than one company name word.
 Lines 171-197    Link Here 
		exit 1
		exit 1
		;;
		;;
	# Recognize the basic CPU types with company name.
	# Recognize the basic CPU types with company name.
	vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
	580-* \
	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
	| a29k-* \
	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
	      | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
	      | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
	      | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
	| arm-*  | armbe-* | armle-* | armv*-* \
	      | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
	| avr-* \
	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
	| bs2000-* \
	      | sparc64-* | mips64-* | mipsel-* \
	| c[123]* | c30-* | [cjt]90-* | c54x-* \
	      | mips64el-* | mips64orion-* | mips64orionel-*  \
	| clipper-* | cydra-* \
	      | mipstx39-* | mipstx39el-* \
	| d10v-* | d30v-* \
	      | f301-*)
	| elxsi-* \
	| f30[01]-* | f700-* | fr30-* | fx80-* \
	| h8300-* | h8500-* \
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
	| i*86-* | i860-* | i960-* | ia64-* \
	| m32r-* \
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
	| m88110-* | m88k-* | mcore-* \
	| mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
	| mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
	| mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
	| mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
	| orion-* \
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
	| pyramid-* \
	| romp-* | rs6000-* \
	| sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* | sh64-* \
	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
	| tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
	| v850-* | v850e-* | vax-* \
	| we32k-* \
	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
	| xtensa-* \
	| ymp-* \
	| z8k-*)
		;;
		;;
	# Recognize the various machine names and aliases which stand
	# Recognize the various machine names and aliases which stand
	# for a CPU type and a company and sometimes even an OS.
	# for a CPU type and a company and sometimes even an OS.
	386bsd)
		basic_machine=i386-unknown
		os=-bsd
		;;
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
		basic_machine=m68000-att
		basic_machine=m68000-att
		;;
		;;
	3b*)
	3b*)
		basic_machine=we32k-att
		basic_machine=we32k-att
		;;
		;;
	a29khif)
		basic_machine=a29k-amd
		os=-udi
		;;
	adobe68k)
		basic_machine=m68010-adobe
		os=-scout
		;;
	alliant | fx80)
	alliant | fx80)
		basic_machine=fx80-alliant
		basic_machine=fx80-alliant
		;;
		;;
 Lines 207-226    Link Here 
		os=-sysv
		os=-sysv
		;;
		;;
	amiga | amiga-*)
	amiga | amiga-*)
		basic_machine=m68k-cbm
		basic_machine=m68k-unknown
		;;
		;;
	amigaos | amigados)
	amigaos | amigados)
		basic_machine=m68k-cbm
		basic_machine=m68k-unknown
		os=-amigaos
		os=-amigaos
		;;
		;;
	amigaunix | amix)
	amigaunix | amix)
		basic_machine=m68k-cbm
		basic_machine=m68k-unknown
		os=-sysv4
		os=-sysv4
		;;
		;;
	apollo68)
	apollo68)
		basic_machine=m68k-apollo
		basic_machine=m68k-apollo
		os=-sysv
		os=-sysv
		;;
		;;
	apollo68bsd)
		basic_machine=m68k-apollo
		os=-bsd
		;;
	aux)
	aux)
		basic_machine=m68k-apple
		basic_machine=m68k-apple
		os=-aux
		os=-aux
 Lines 229-234    Link Here 
		basic_machine=ns32k-sequent
		basic_machine=ns32k-sequent
		os=-dynix
		os=-dynix
		;;
		;;
	c90)
		basic_machine=c90-cray
		os=-unicos
		;;
	convex-c1)
	convex-c1)
		basic_machine=c1-convex
		basic_machine=c1-convex
		os=-bsd
		os=-bsd
 Lines 249-275    Link Here 
		basic_machine=c38-convex
		basic_machine=c38-convex
		os=-bsd
		os=-bsd
		;;
		;;
	cray | ymp)
	cray | j90)
		basic_machine=ymp-cray
		basic_machine=j90-cray
		os=-unicos
		;;
	cray2)
		basic_machine=cray2-cray
		os=-unicos
		;;
	[ctj]90-cray)
		basic_machine=c90-cray
		os=-unicos
		os=-unicos
		;;
		;;
	crds | unos)
	crds | unos)
		basic_machine=m68k-crds
		basic_machine=m68k-crds
		;;
		;;
	cris | cris-* | etrax*)
		basic_machine=cris-axis
		;;
	da30 | da30-*)
	da30 | da30-*)
		basic_machine=m68k-da30
		basic_machine=m68k-da30
		;;
		;;
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
		basic_machine=mips-dec
		basic_machine=mips-dec
		;;
		;;
	decsystem10* | dec10*)
		basic_machine=pdp10-dec
		os=-tops10
		;;
	decsystem20* | dec20*)
		basic_machine=pdp10-dec
		os=-tops20
		;;
	delta | 3300 | motorola-3300 | motorola-delta \
	delta | 3300 | motorola-3300 | motorola-delta \
	      | 3300-motorola | delta-motorola)
	      | 3300-motorola | delta-motorola)
		basic_machine=m68k-motorola
		basic_machine=m68k-motorola
 Lines 297-302    Link Here 
	encore | umax | mmax)
	encore | umax | mmax)
		basic_machine=ns32k-encore
		basic_machine=ns32k-encore
		;;
		;;
	es1800 | OSE68k | ose68k | ose | OSE)
		basic_machine=m68k-ericsson
		os=-ose
		;;
	fx2800)
	fx2800)
		basic_machine=i860-alliant
		basic_machine=i860-alliant
		;;
		;;
 Lines 307-312    Link Here 
		basic_machine=tron-gmicro
		basic_machine=tron-gmicro
		os=-sysv
		os=-sysv
		;;
		;;
	go32)
		basic_machine=i386-pc
		os=-go32
		;;
	h3050r* | hiux*)
	h3050r* | hiux*)
		basic_machine=hppa1.1-hitachi
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		os=-hiuxwe2
 Lines 315-320    Link Here 
		basic_machine=h8300-hitachi
		basic_machine=h8300-hitachi
		os=-hms
		os=-hms
		;;
		;;
	h8300xray)
		basic_machine=h8300-hitachi
		os=-xray
		;;
	h8500hms)
		basic_machine=h8500-hitachi
		os=-hms
		;;
	harris)
	harris)
		basic_machine=m88k-harris
		basic_machine=m88k-harris
		os=-sysv3
		os=-sysv3
 Lines 330-342    Link Here 
		basic_machine=m68k-hp
		basic_machine=m68k-hp
		os=-hpux
		os=-hpux
		;;
		;;
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
		basic_machine=hppa1.0-hp
		;;
	hp9k2[0-9][0-9] | hp9k31[0-9])
	hp9k2[0-9][0-9] | hp9k31[0-9])
		basic_machine=m68000-hp
		basic_machine=m68000-hp
		;;
		;;
	hp9k3[2-9][0-9])
	hp9k3[2-9][0-9])
		basic_machine=m68k-hp
		basic_machine=m68k-hp
		;;
		;;
	hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
		basic_machine=hppa1.0-hp
		;;
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
		basic_machine=hppa1.1-hp
		;;
	hp9k78[0-9] | hp78[0-9])
		# FIXME: really hppa2.0-hp
		basic_machine=hppa1.1-hp
		;;
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
		# FIXME: really hppa2.0-hp
		basic_machine=hppa1.1-hp
		;;
	hp9k8[0-9][13679] | hp8[0-9][13679])
		basic_machine=hppa1.1-hp
		basic_machine=hppa1.1-hp
		;;
		;;
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
 Lines 345-371    Link Here 
	hppa-next)
	hppa-next)
		os=-nextstep3
		os=-nextstep3
		;;
		;;
	hppaosf)
		basic_machine=hppa1.1-hp
		os=-osf
		;;
	hppro)
		basic_machine=hppa1.1-hp
		os=-proelf
		;;
	i370-ibm* | ibm*)
	i370-ibm* | ibm*)
		basic_machine=i370-ibm
		basic_machine=i370-ibm
		os=-mvs
		;;
		;;
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
	i[3456]86v32)
	i*86v32)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv32
		os=-sysv32
		;;
		;;
	i[3456]86v4*)
	i*86v4*)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv4
		os=-sysv4
		;;
		;;
	i[3456]86v)
	i*86v)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv
		os=-sysv
		;;
		;;
	i[3456]86sol2)
	i*86sol2)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-solaris2
		os=-solaris2
		;;
		;;
	i386mach)
		basic_machine=i386-mach
		os=-mach
		;;
	i386-vsta | vsta)
		basic_machine=i386-unknown
		os=-vsta
		;;
	iris | iris4d)
	iris | iris4d)
		basic_machine=mips-sgi
		basic_machine=mips-sgi
		case $os in
		case $os in
 Lines 391-406    Link Here 
		basic_machine=ns32k-utek
		basic_machine=ns32k-utek
		os=-sysv
		os=-sysv
		;;
		;;
	mingw32)
		basic_machine=i386-pc
		os=-mingw32
		;;
	miniframe)
	miniframe)
		basic_machine=m68000-convergent
		basic_machine=m68000-convergent
		;;
		;;
	mipsel*-linux*)
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
		basic_machine=mipsel-unknown
		basic_machine=m68k-atari
		os=-linux-gnu
		os=-mint
		;;
	mips*-linux*)
		basic_machine=mips-unknown
		os=-linux-gnu
		;;
		;;
	mips3*-*)
	mips3*-*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
 Lines 408-417    Link Here 
	mips3*)
	mips3*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
		;;
		;;
	mmix*)
		basic_machine=mmix-knuth
		os=-mmixware
		;;
	monitor)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	morphos)
		basic_machine=powerpc-unknown
		os=-morphos
		;;
	msdos)
		basic_machine=i386-pc
		os=-msdos
		;;
	mvs)
		basic_machine=i370-ibm
		os=-mvs
		;;
	ncr3000)
	ncr3000)
		basic_machine=i486-ncr
		basic_machine=i486-ncr
		os=-sysv4
		os=-sysv4
		;;
		;;
	netbsd386)
		basic_machine=i386-unknown
		os=-netbsd
		;;
	netwinder)
		basic_machine=armv4l-rebel
		os=-linux
		;;
	news | news700 | news800 | news900)
	news | news700 | news800 | news900)
		basic_machine=m68k-sony
		basic_machine=m68k-sony
		os=-newsos
		os=-newsos
 Lines 424-429    Link Here 
		basic_machine=mips-sony
		basic_machine=mips-sony
		os=-newsos
		os=-newsos
		;;
		;;
	necv70)
		basic_machine=v70-nec
		os=-sysv
		;;
	next | m*-next )
	next | m*-next )
		basic_machine=m68k-next
		basic_machine=m68k-next
		case $os in
		case $os in
 Lines 449-457    Link Here 
		basic_machine=i960-intel
		basic_machine=i960-intel
		os=-nindy
		os=-nindy
		;;
		;;
	mon960)
		basic_machine=i960-intel
		os=-mon960
		;;
	nonstopux)
		basic_machine=mips-compaq
		os=-nonstopux
		;;
	np1)
	np1)
		basic_machine=np1-gould
		basic_machine=np1-gould
		;;
		;;
	nsr-tandem)
		basic_machine=nsr-tandem
		;;
	op50n-* | op60c-*)
		basic_machine=hppa1.1-oki
		os=-proelf
		;;
	or32 | or32-*)
		basic_machine=or32-unknown
		os=-coff
		;;
	OSE68000 | ose68000)
		basic_machine=m68000-ericsson
		os=-ose
		;;
	os68k)
		basic_machine=m68k-none
		os=-os68k
		;;
	pa-hitachi)
	pa-hitachi)
		basic_machine=hppa1.1-hitachi
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		os=-hiuxwe2
 Lines 469-498    Link Here 
        pc532 | pc532-*)
        pc532 | pc532-*)
		basic_machine=ns32k-pc532
		basic_machine=ns32k-pc532
		;;
		;;
	pentium | p5)
	pentium | p5 | k5 | k6 | nexgen | viac3)
		basic_machine=i586-intel
		basic_machine=i586-pc
		;;
	pentiumpro | p6 | 6x86 | athlon)
		basic_machine=i686-pc
		;;
		;;
	pentiumpro | p6)
	pentiumii | pentium2)
		basic_machine=i686-intel
		basic_machine=i686-pc
		;;
		;;
	pentium-* | p5-*)
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
		;;
	pentiumpro-* | p6-*)
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
		;;
	k5)
	pentiumii-* | pentium2-*)
		# We don't have specific support for AMD's K5 yet, so just call it a Pentium
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
		basic_machine=i586-amd
		;;
	nexen)
		# We don't have specific support for Nexgen yet, so just call it a Pentium
		basic_machine=i586-nexgen
		;;
		;;
	pn)
	pn)
		basic_machine=pn-gould
		basic_machine=pn-gould
		;;
		;;
	power)	basic_machine=rs6000-ibm
	power)	basic_machine=power-ibm
		;;
		;;
	ppc)	basic_machine=powerpc-unknown
	ppc)	basic_machine=powerpc-unknown
	        ;;
	        ;;
 Lines 504-518    Link Here 
	ppcle-* | powerpclittle-*)
	ppcle-* | powerpclittle-*)
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
		;;
	ppc64)	basic_machine=powerpc64-unknown
	        ;;
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
		basic_machine=powerpc64le-unknown
	        ;;
	ppc64le-* | powerpc64little-*)
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	ps2)
	ps2)
		basic_machine=i386-ibm
		basic_machine=i386-ibm
		;;
		;;
	pw32)
		basic_machine=i586-unknown
		os=-pw32
		;;
	rom68k)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	rm[46]00)
	rm[46]00)
		basic_machine=mips-siemens
		basic_machine=mips-siemens
		;;
		;;
	rtpc | rtpc-*)
	rtpc | rtpc-*)
		basic_machine=romp-ibm
		basic_machine=romp-ibm
		;;
		;;
	s390 | s390-*)
		basic_machine=s390-ibm
		;;
	s390x | s390x-*)
		basic_machine=s390x-ibm
		;;
	sa29200)
		basic_machine=a29k-amd
		os=-udi
		;;
	sequent)
	sequent)
		basic_machine=i386-sequent
		basic_machine=i386-sequent
		;;
		;;
 Lines 520-525    Link Here 
		basic_machine=sh-hitachi
		basic_machine=sh-hitachi
		os=-hms
		os=-hms
		;;
		;;
	sparclite-wrs | simso-wrs)
		basic_machine=sparclite-wrs
		os=-vxworks
		;;
	sps7)
	sps7)
		basic_machine=m68k-bull
		basic_machine=m68k-bull
		os=-sysv2
		os=-sysv2
 Lines 527-532    Link Here 
	spur)
	spur)
		basic_machine=spur-unknown
		basic_machine=spur-unknown
		;;
		;;
	st2000)
		basic_machine=m68k-tandem
		;;
	stratus)
		basic_machine=i860-stratus
		os=-sysv4
		;;
	sun2)
	sun2)
		basic_machine=m68000-sun
		basic_machine=m68000-sun
		;;
		;;
 Lines 567-582    Link Here 
	sun386 | sun386i | roadrunner)
	sun386 | sun386i | roadrunner)
		basic_machine=i386-sun
		basic_machine=i386-sun
		;;
		;;
        sv1)
		basic_machine=sv1-cray
		os=-unicos
		;;
	symmetry)
	symmetry)
		basic_machine=i386-sequent
		basic_machine=i386-sequent
		os=-dynix
		os=-dynix
		;;
		;;
	t3d)
		basic_machine=alpha-cray
		os=-unicos
		;;
	t3e)
		basic_machine=alphaev5-cray
		os=-unicos
		;;
	t90)
		basic_machine=t90-cray
		os=-unicos
		;;
	tic54x | c54x*)
		basic_machine=tic54x-unknown
		os=-coff
		;;
	tx39)
	tx39)
		basic_machine=mipstx39-unknown
		basic_machine=mipstx39-unknown
		;;
		;;
	tx39el)
	tx39el)
		basic_machine=mipstx39el-unknown
		basic_machine=mipstx39el-unknown
		;;
		;;
	toad1)
		basic_machine=pdp10-xkl
		os=-tops20
		;;
	tower | tower-32)
	tower | tower-32)
		basic_machine=m68k-ncr
		basic_machine=m68k-ncr
		;;
		;;
 Lines 588-593    Link Here 
		basic_machine=a29k-nyu
		basic_machine=a29k-nyu
		os=-sym1
		os=-sym1
		;;
		;;
	v810 | necv810)
		basic_machine=v810-nec
		os=-none
		;;
	vaxv)
	vaxv)
		basic_machine=vax-dec
		basic_machine=vax-dec
		os=-sysv
		os=-sysv
 Lines 611-623    Link Here 
		basic_machine=a29k-wrs
		basic_machine=a29k-wrs
		os=-vxworks
		os=-vxworks
		;;
		;;
	xmp)
	w65*)
		basic_machine=xmp-cray
		basic_machine=w65-wdc
		os=-unicos
		os=-none
		;;
	w89k-*)
		basic_machine=hppa1.1-winbond
		os=-proelf
		;;
	windows32)
		basic_machine=i386-pc
		os=-windows32-msvcrt
		;;
		;;
        xps | xps100)
        xps | xps100)
		basic_machine=xps100-honeywell
		basic_machine=xps100-honeywell
		;;
		;;
	ymp)
		basic_machine=ymp-cray
		os=-unicos
		;;
	z8k-*-coff)
		basic_machine=z8k-unknown
		os=-sim
		;;
	none)
	none)
		basic_machine=none-none
		basic_machine=none-none
		os=-none
		os=-none
 Lines 625-636    Link Here 
# Here we handle the default manufacturer of certain CPU types.  It is in
# Here we handle the default manufacturer of certain CPU types.  It is in
# some cases the only manufacturer, in others, it is the most popular.
# some cases the only manufacturer, in others, it is the most popular.
	mips)
	w89k)
		if [ x$os = x-linux-gnu ]; then
		basic_machine=hppa1.1-winbond
			basic_machine=mips-unknown
		;;
		else
	op50n)
			basic_machine=mips-mips
		basic_machine=hppa1.1-oki
		fi
		;;
	op60c)
		basic_machine=hppa1.1-oki
		;;
		;;
	romp)
	romp)
		basic_machine=romp-ibm
		basic_machine=romp-ibm
 Lines 641-653    Link Here 
	vax)
	vax)
		basic_machine=vax-dec
		basic_machine=vax-dec
		;;
		;;
	pdp10)
		# there are many clones, so DEC is not a safe bet
		basic_machine=pdp10-unknown
		;;
	pdp11)
	pdp11)
		basic_machine=pdp11-dec
		basic_machine=pdp11-dec
		;;
		;;
	we32k)
	we32k)
		basic_machine=we32k-att
		basic_machine=we32k-att
		;;
		;;
	sparc)
	sh3 | sh4 | sh3eb | sh4eb)
		basic_machine=sh-unknown
		;;
	sh64)
		basic_machine=sh64-unknown
		;;
	sparc | sparcv9 | sparcv9b)
		basic_machine=sparc-sun
		basic_machine=sparc-sun
		;;
		;;
        cydra)
        cydra)
 Lines 659-664    Link Here 
	orion105)
	orion105)
		basic_machine=clipper-highlevel
		basic_machine=clipper-highlevel
		;;
		;;
	mac | mpw | mac-mpw)
		basic_machine=m68k-apple
		;;
	pmac | pmac-mpw)
		basic_machine=powerpc-apple
		;;
	c4x*)
		basic_machine=c4x-none
		os=-coff
		;;
	*-unknown)
		# Make sure to match an already-canonicalized machine name.
		;;
	*)
	*)
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
		exit 1
 Lines 712-724    Link Here 
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
	      | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -chorusos* | -chorusrdb* \
	      | -mingw32* | -linux-gnu* | -uxpv*)
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova*)
	# Remember, each alternative MUST END IN *, to match a version number.
	# Remember, each alternative MUST END IN *, to match a version number.
		;;
		;;
	-qnx*)
		case $basic_machine in
		    x86-* | i*86-*)
			;;
		    *)
			os=-nto$os
			;;
		esac
		;;
	-nto*)
		os=-nto-qnx
		;;
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
		;;
	-mac*)
		os=`echo $os | sed -e 's|mac|macos|'`
		;;
	-linux*)
	-linux*)
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
		;;
		;;
 Lines 728-733    Link Here 
	-sunos6*)
	-sunos6*)
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
		;;
		;;
	-opened*)
		os=-openedition
		;;
	-wince*)
		os=-wince
		;;
	-osfrose*)
	-osfrose*)
		os=-osfrose
		os=-osfrose
		;;
		;;
 Lines 743-754    Link Here 
	-acis*)
	-acis*)
		os=-aos
		os=-aos
		;;
		;;
	-atheos*)
		os=-atheos
		;;
	-386bsd)
		os=-bsd
		;;
	-ctix* | -uts*)
	-ctix* | -uts*)
		os=-sysv
		os=-sysv
		;;
		;;
	-nova*)
		os=-rtmk-nova
		;;
	-ns2 )
	-ns2 )
	        os=-nextstep2
	        os=-nextstep2
		;;
		;;
	-nsk*)
		os=-nsk
		;;
	# Preserve the version number of sinix5.
	# Preserve the version number of sinix5.
	-sinix5.*)
	-sinix5.*)
		os=`echo $os | sed -e 's|sinix|sysv|'`
		os=`echo $os | sed -e 's|sinix|sysv|'`
 Lines 774-782    Link Here 
	# This must come after -sysvr4.
	# This must come after -sysvr4.
	-sysv*)
	-sysv*)
		;;
		;;
	-ose*)
		os=-ose
		;;
	-es1800*)
		os=-ose
		;;
	-xenix)
	-xenix)
		os=-xenix
		os=-xenix
		;;
		;;
        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
	        os=-mint
		;;
	-none)
	-none)
		;;
		;;
	*)
	*)
 Lines 802-810    Link Here 
	*-acorn)
	*-acorn)
		os=-riscix1.2
		os=-riscix1.2
		;;
		;;
	arm*-rebel)
		os=-linux
		;;
	arm*-semi)
	arm*-semi)
		os=-aout
		os=-aout
		;;
		;;
	# This must come before the *-dec entry.
	pdp10-*)
		os=-tops20
		;;
        pdp11-*)
        pdp11-*)
		os=-none
		os=-none
		;;
		;;
 Lines 823-837    Link Here 
		# default.
		# default.
		# os=-sunos4
		# os=-sunos4
		;;
		;;
	m68*-cisco)
		os=-aout
		;;
	mips*-cisco)
		os=-elf
		;;
	mips*-*)
		os=-elf
		;;
	or32-*)
		os=-coff
		;;
	*-tti)	# must be before sparc entry or we get the wrong os.
	*-tti)	# must be before sparc entry or we get the wrong os.
		os=-sysv3
		os=-sysv3
		;;
		;;
	sparc-* | *-sun)
	sparc-* | *-sun)
		os=-sunos4.1.1
		os=-sunos4.1.1
		;;
		;;
	*-be)
		os=-beos
		;;
	*-ibm)
	*-ibm)
		os=-aix
		os=-aix
		;;
		;;
	*-wec)
		os=-proelf
		;;
	*-winbond)
		os=-proelf
		;;
	*-oki)
		os=-proelf
		;;
	*-hp)
	*-hp)
		os=-hpux
		os=-hpux
		;;
		;;
 Lines 892-900    Link Here 
	*-masscomp)
	*-masscomp)
		os=-rtu
		os=-rtu
		;;
		;;
	f301-fujitsu)
	f30[01]-fujitsu | f700-fujitsu)
		os=-uxpv
		os=-uxpv
		;;
		;;
	*-rom68k)
		os=-coff
		;;
	*-*bug)
		os=-coff
		;;
	*-apple)
		os=-macos
		;;
	*-atari*)
		os=-mint
		;;
	*)
	*)
		os=-none
		os=-none
		;;
		;;
 Lines 916-924    Link Here 
			-aix*)
			-aix*)
				vendor=ibm
				vendor=ibm
				;;
				;;
			-beos*)
				vendor=be
				;;
			-hpux*)
			-hpux*)
				vendor=hp
				vendor=hp
				;;
				;;
			-mpeix*)
				vendor=hp
				;;
			-hiux*)
			-hiux*)
				vendor=hitachi
				vendor=hitachi
				;;
				;;
 Lines 934-940    Link Here 
			-genix*)
			-genix*)
				vendor=ns
				vendor=ns
				;;
				;;
			-mvs*)
			-mvs* | -opened*)
				vendor=ibm
				vendor=ibm
				;;
				;;
			-ptx*)
			-ptx*)
 Lines 946-954    Link Here 
			-aux*)
			-aux*)
				vendor=apple
				vendor=apple
				;;
				;;
			-hms*)
				vendor=hitachi
				;;
			-mpw* | -macos*)
				vendor=apple
				;;
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
				vendor=atari
				;;
			-vos*)
				vendor=stratus
				;;
		esac
		esac
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
		;;
		;;
esac
esac
echo $basic_machine$os
echo $basic_machine$os
exit 0
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
(-) gpsim-0.21.2/configure (-193 / +142 lines)
 Lines 1534-1592    Link Here 
  fi
  fi
fi
fi
for ac_declaration in \
   ''\
   '#include <stdlib.h>' \
   'extern "C" void std::exit (int) throw (); using std::exit;' \
   'extern "C" void std::exit (int); using std::exit;' \
   'extern "C" void exit (int) throw ();' \
   'extern "C" void exit (int);' \
   'void exit (int);'
do
  cat > conftest.$ac_ext <<EOF
#line 1548 "configure"
#include "confdefs.h"
#include <stdlib.h>
$ac_declaration
int main() {
exit (42);
; return 0; }
EOF
if { (eval echo configure:1556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  continue
fi
rm -f conftest*
  cat > conftest.$ac_ext <<EOF
#line 1566 "configure"
#include "confdefs.h"
$ac_declaration
int main() {
exit (42);
; return 0; }
EOF
if { (eval echo configure:1573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
if test -n "$ac_declaration"; then
  echo '#ifdef __cplusplus' >>confdefs.h
  echo $ac_declaration      >>confdefs.h
  echo '#endif'             >>confdefs.h
fi
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
echo "configure:1590: checking how to run the C++ preprocessor" >&5
echo "configure:1539: checking how to run the C++ preprocessor" >&5
if test -z "$CXXCPP"; then
if test -z "$CXXCPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 1599-1610    Link Here 
cross_compiling=$ac_cv_prog_cxx_cross
cross_compiling=$ac_cv_prog_cxx_cross
  CXXCPP="${CXX-g++} -E"
  CXXCPP="${CXX-g++} -E"
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 1603 "configure"
#line 1552 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <stdlib.h>
#include <stdlib.h>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  :
  :
 Lines 1635-1641    Link Here 
# Extract the first word of "$ac_prog", so it can be a program name with args.
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1639: checking for $ac_word" >&5
echo "configure:1588: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 1668-1674    Link Here 
# Extract the first word of "flex", so it can be a program name with args.
# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
set dummy flex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1672: checking for $ac_word" >&5
echo "configure:1621: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 1702-1708    Link Here 
  *) ac_lib=l ;;
  *) ac_lib=l ;;
  esac
  esac
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
echo "configure:1706: checking for yywrap in -l$ac_lib" >&5
echo "configure:1655: checking for yywrap in -l$ac_lib" >&5
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 1710-1716    Link Here 
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-l$ac_lib  $LIBS"
LIBS="-l$ac_lib  $LIBS"
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 1714 "configure"
#line 1663 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
 Lines 1721-1727    Link Here 
yywrap()
yywrap()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
 Lines 1744-1750    Link Here 
fi
fi
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
echo $ac_n "checking lex output file root""... $ac_c" 1>&6
echo "configure:1748: checking lex output file root" >&5
echo "configure:1697: checking lex output file root" >&5
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 1765-1771    Link Here 
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
echo "configure:1769: checking whether yytext is a pointer" >&5
echo "configure:1718: checking whether yytext is a pointer" >&5
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 1777-1790    Link Here 
ac_save_LIBS="$LIBS"
ac_save_LIBS="$LIBS"
LIBS="$LIBS $LEXLIB"
LIBS="$LIBS $LEXLIB"
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 1781 "configure"
#line 1730 "configure"
#include "confdefs.h"
#include "confdefs.h"
`cat $LEX_OUTPUT_ROOT.c`
`cat $LEX_OUTPUT_ROOT.c`
int main() {
int main() {
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_prog_lex_yytext_pointer=yes
  ac_cv_prog_lex_yytext_pointer=yes
else
else
 Lines 1817-1823    Link Here 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1821: checking for a BSD compatible install" >&5
echo "configure:1770: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 1870-1876    Link Here 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:1874: checking whether ${MAKE-make} sets \${MAKE}" >&5
echo "configure:1823: checking whether ${MAKE-make} sets \${MAKE}" >&5
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 1898-1909    Link Here 
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
echo "configure:1902: checking for Cygwin environment" >&5
echo "configure:1851: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 1907 "configure"
#line 1856 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
 Lines 1914-1920    Link Here 
return __CYGWIN__;
return __CYGWIN__;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_cygwin=yes
  ac_cv_cygwin=yes
else
else
 Lines 1931-1949    Link Here 
CYGWIN=
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
echo "configure:1935: checking for mingw32 environment" >&5
echo "configure:1884: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 1940 "configure"
#line 1889 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
return __MINGW32__;
return __MINGW32__;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:1896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_mingw32=yes
  ac_cv_mingw32=yes
else
else
 Lines 2040-2046    Link Here 
if test "$GCC" = yes; then
if test "$GCC" = yes; then
  # Check if gcc -print-prog-name=ld gives a path.
  # Check if gcc -print-prog-name=ld gives a path.
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:2044: checking for ld used by GCC" >&5
echo "configure:1993: checking for ld used by GCC" >&5
  case $host in
  case $host in
  *-*-mingw*)
  *-*-mingw*)
    # gcc leaves a trailing carriage return which upsets mingw
    # gcc leaves a trailing carriage return which upsets mingw
 Lines 2070-2079    Link Here 
  esac
  esac
elif test "$with_gnu_ld" = yes; then
elif test "$with_gnu_ld" = yes; then
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
echo "configure:2074: checking for GNU ld" >&5
echo "configure:2023: checking for GNU ld" >&5
else
else
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
echo "configure:2077: checking for non-GNU ld" >&5
echo "configure:2026: checking for non-GNU ld" >&5
fi
fi
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 2108-2114    Link Here 
fi
fi
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
echo "configure:2112: checking if the linker ($LD) is GNU ld" >&5
echo "configure:2061: checking if the linker ($LD) is GNU ld" >&5
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2125-2131    Link Here 
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
echo "configure:2129: checking for $LD option to reload object files" >&5
echo "configure:2078: checking for $LD option to reload object files" >&5
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2137-2143    Link Here 
test -n "$reload_flag" && reload_flag=" $reload_flag"
test -n "$reload_flag" && reload_flag=" $reload_flag"
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
echo "configure:2141: checking for BSD-compatible nm" >&5
echo "configure:2090: checking for BSD-compatible nm" >&5
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2175-2181    Link Here 
echo "$ac_t""$NM" 1>&6
echo "$ac_t""$NM" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:2179: checking whether ln -s works" >&5
echo "configure:2128: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2196-2202    Link Here 
fi
fi
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
echo "configure:2200: checking how to recognise dependant libraries" >&5
echo "configure:2149: checking how to recognise dependant libraries" >&5
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2369-2381    Link Here 
deplibs_check_method=$lt_cv_deplibs_check_method
deplibs_check_method=$lt_cv_deplibs_check_method
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
echo "configure:2373: checking for object suffix" >&5
echo "configure:2322: checking for object suffix" >&5
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  rm -f conftest*
  rm -f conftest*
echo 'int i = 1;' > conftest.$ac_ext
echo 'int i = 1;' > conftest.$ac_ext
if { (eval echo configure:2379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:2328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  for ac_file in conftest.*; do
  for ac_file in conftest.*; do
    case $ac_file in
    case $ac_file in
    *.c) ;;
    *.c) ;;
 Lines 2395-2401    Link Here 
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
echo "configure:2399: checking for executable suffix" >&5
echo "configure:2348: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2405-2411    Link Here 
  rm -f conftest*
  rm -f conftest*
  echo 'int main () { return 0; }' > conftest.$ac_ext
  echo 'int main () { return 0; }' > conftest.$ac_ext
  ac_cv_exeext=
  ac_cv_exeext=
  if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    for file in conftest.*; do
    for file in conftest.*; do
      case $file in
      case $file in
      *.c | *.o | *.obj) ;;
      *.c | *.o | *.obj) ;;
 Lines 2436-2442    Link Here 
# Check for command to grab the raw symbol name followed by C symbol from nm.
# Check for command to grab the raw symbol name followed by C symbol from nm.
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
echo "configure:2440: checking command to parse $NM output" >&5
echo "configure:2389: checking command to parse $NM output" >&5
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2512-2521    Link Here 
int main(){nm_test_var='a';nm_test_func();return(0);}
int main(){nm_test_var='a';nm_test_func();return(0);}
EOF
EOF
  if { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    # Now try to grab the symbols.
    # Now try to grab the symbols.
    nlist=conftest.nm
    nlist=conftest.nm
    if { (eval echo configure:2519: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
    if { (eval echo configure:2468: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
      # Try sorting and uniquifying the output.
      # Try sorting and uniquifying the output.
      if sort "$nlist" | uniq > "$nlist"T; then
      if sort "$nlist" | uniq > "$nlist"T; then
	mv -f "$nlist"T "$nlist"
	mv -f "$nlist"T "$nlist"
 Lines 2566-2572    Link Here 
	  save_CFLAGS="$CFLAGS"
	  save_CFLAGS="$CFLAGS"
	  LIBS="conftstm.$ac_objext"
	  LIBS="conftstm.$ac_objext"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  CFLAGS="$CFLAGS$no_builtin_flag"
	  if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
	  if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
	    pipe_works=yes
	    pipe_works=yes
	  fi
	  fi
	  LIBS="$save_LIBS"
	  LIBS="$save_LIBS"
 Lines 2612-2628    Link Here 
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2616: checking for $ac_hdr" >&5
echo "configure:2565: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 2621 "configure"
#line 2570 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
 Lines 2657-2663    Link Here 
file_magic*)
file_magic*)
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
echo "configure:2661: checking for ${ac_tool_prefix}file" >&5
echo "configure:2610: checking for ${ac_tool_prefix}file" >&5
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2719-2725    Link Here 
if test -z "$lt_cv_path_MAGIC_CMD"; then
if test -z "$lt_cv_path_MAGIC_CMD"; then
  if test -n "$ac_tool_prefix"; then
  if test -n "$ac_tool_prefix"; then
    echo $ac_n "checking for file""... $ac_c" 1>&6
    echo $ac_n "checking for file""... $ac_c" 1>&6
echo "configure:2723: checking for file" >&5
echo "configure:2672: checking for file" >&5
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2790-2796    Link Here 
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2794: checking for $ac_word" >&5
echo "configure:2743: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2822-2828    Link Here 
  # Extract the first word of "ranlib", so it can be a program name with args.
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2826: checking for $ac_word" >&5
echo "configure:2775: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2857-2863    Link Here 
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2861: checking for $ac_word" >&5
echo "configure:2810: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2889-2895    Link Here 
  # Extract the first word of "strip", so it can be a program name with args.
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
set dummy strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:2893: checking for $ac_word" >&5
echo "configure:2842: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2938-2945    Link Here 
case $host in
case $host in
*-*-irix6*)
*-*-irix6*)
  # Find out which ABI we are using.
  # Find out which ABI we are using.
  echo '#line 2942 "configure"' > conftest.$ac_ext
  echo '#line 2891 "configure"' > conftest.$ac_ext
  if { (eval echo configure:2943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  if { (eval echo configure:2892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    case `/usr/bin/file conftest.$ac_objext` in
    case `/usr/bin/file conftest.$ac_objext` in
    *32-bit*)
    *32-bit*)
      LD="${LD-ld} -32"
      LD="${LD-ld} -32"
 Lines 2960-2966    Link Here 
  SAVE_CFLAGS="$CFLAGS"
  SAVE_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -belf"
  CFLAGS="$CFLAGS -belf"
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
echo "configure:2964: checking whether the C compiler needs -belf" >&5
echo "configure:2913: checking whether the C compiler needs -belf" >&5
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 2973-2986    Link Here 
cross_compiling=$ac_cv_prog_cc_cross
cross_compiling=$ac_cv_prog_cc_cross
     cat > conftest.$ac_ext <<EOF
     cat > conftest.$ac_ext <<EOF
#line 2977 "configure"
#line 2926 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  lt_cv_cc_needs_belf=yes
  lt_cv_cc_needs_belf=yes
else
else
 Lines 3093-3099    Link Here 
compiler="$2"
compiler="$2"
echo $ac_n "checking for objdir""... $ac_c" 1>&6
echo $ac_n "checking for objdir""... $ac_c" 1>&6
echo "configure:3097: checking for objdir" >&5
echo "configure:3046: checking for objdir" >&5
rm -f .libs 2>/dev/null
rm -f .libs 2>/dev/null
mkdir .libs 2>/dev/null
mkdir .libs 2>/dev/null
if test -d .libs; then
if test -d .libs; then
 Lines 3120-3126    Link Here 
# in isolation, and that seeing it set (from the cache) indicates that
# in isolation, and that seeing it set (from the cache) indicates that
# the associated values are set (in the cache) correctly too.
# the associated values are set (in the cache) correctly too.
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
echo "configure:3124: checking for $compiler option to produce PIC" >&5
echo "configure:3073: checking for $compiler option to produce PIC" >&5
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 3272-3292    Link Here 
  # Check to make sure the pic_flag actually works.
  # Check to make sure the pic_flag actually works.
  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
echo "configure:3276: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
echo "configure:3225: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
      save_CFLAGS="$CFLAGS"
      save_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
    cat > conftest.$ac_ext <<EOF
    cat > conftest.$ac_ext <<EOF
#line 3283 "configure"
#line 3232 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
        case $host_os in
        case $host_os in
      hpux9* | hpux10* | hpux11*)
      hpux9* | hpux10* | hpux11*)
 Lines 3338-3344    Link Here 
fi
fi
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
echo "configure:3342: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
echo "configure:3291: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 3346-3359    Link Here 
  save_LDFLAGS="$LDFLAGS"
  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 3350 "configure"
#line 3299 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  lt_cv_prog_cc_static_works=yes
  lt_cv_prog_cc_static_works=yes
else
else
 Lines 3380-3386    Link Here 
# Check to see if options -o and -c are simultaneously supported by compiler
# Check to see if options -o and -c are simultaneously supported by compiler
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
echo "configure:3384: checking if $compiler supports -c -o file.$ac_objext" >&5
echo "configure:3333: checking if $compiler supports -c -o file.$ac_objext" >&5
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 3399-3405    Link Here 
save_CFLAGS="$CFLAGS"
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
compiler_c_o=no
if { (eval echo configure:3403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
if { (eval echo configure:3352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  # The compiler can only warn and ignore the option if not recognized
  # The compiler can only warn and ignore the option if not recognized
  # So say no if there are warnings
  # So say no if there are warnings
  if test -s out/conftest.err; then
  if test -s out/conftest.err; then
 Lines 3428-3434    Link Here 
if test x"$compiler_c_o" = x"yes"; then
if test x"$compiler_c_o" = x"yes"; then
  # Check to see if we can write to a .lo
  # Check to see if we can write to a .lo
  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
echo "configure:3432: checking if $compiler supports -c -o file.lo" >&5
echo "configure:3381: checking if $compiler supports -c -o file.lo" >&5
  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 3437-3450    Link Here 
  save_CFLAGS="$CFLAGS"
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -c -o conftest.lo"
  CFLAGS="$CFLAGS -c -o conftest.lo"
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 3441 "configure"
#line 3390 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
int some_variable = 0;
int some_variable = 0;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
      # The compiler can only warn and ignore the option if not recognized
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    # So say no if there are warnings
 Lines 3474-3480    Link Here 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
if test "$compiler_c_o" = no && test "$need_locks" != no; then
  # do not overwrite the value of need_locks provided by the user
  # do not overwrite the value of need_locks provided by the user
  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
echo "configure:3478: checking if we can lock with hard links" >&5
echo "configure:3427: checking if we can lock with hard links" >&5
  hard_links=yes
  hard_links=yes
  $rm conftest*
  $rm conftest*
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 Lines 3493-3512    Link Here 
if test "$GCC" = yes; then
if test "$GCC" = yes; then
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
echo "configure:3497: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
echo "configure:3446: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  echo "int some_variable = 0;" > conftest.$ac_ext
  echo "int some_variable = 0;" > conftest.$ac_ext
  save_CFLAGS="$CFLAGS"
  save_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  compiler_rtti_exceptions=no
  compiler_rtti_exceptions=no
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 3503 "configure"
#line 3452 "configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
int some_variable = 0;
int some_variable = 0;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:3510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:3459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
      # The compiler can only warn and ignore the option if not recognized
      # The compiler can only warn and ignore the option if not recognized
    # So say no if there are warnings
    # So say no if there are warnings
 Lines 3533-3539    Link Here 
# See if the linker supports building shared libraries.
# See if the linker supports building shared libraries.
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
echo "configure:3537: checking whether the linker ($LD) supports shared libraries" >&5
echo "configure:3486: checking whether the linker ($LD) supports shared libraries" >&5
allow_undefined_flag=
allow_undefined_flag=
no_undefined_flag=
no_undefined_flag=
 Lines 4149-4155    Link Here 
# Check hardcoding attributes.
# Check hardcoding attributes.
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
echo "configure:4153: checking how to hardcode library paths into programs" >&5
echo "configure:4102: checking how to hardcode library paths into programs" >&5
hardcode_action=
hardcode_action=
if test -n "$hardcode_libdir_flag_spec" || \
if test -n "$hardcode_libdir_flag_spec" || \
   test -n "$runpath_var"; then
   test -n "$runpath_var"; then
 Lines 4177-4183    Link Here 
striplib=
striplib=
old_striplib=
old_striplib=
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
echo "configure:4181: checking whether stripping libraries is possible" >&5
echo "configure:4130: checking whether stripping libraries is possible" >&5
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 Lines 4191-4197    Link Here 
# PORTME Fill in your ld.so characteristics
# PORTME Fill in your ld.so characteristics
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
echo "configure:4195: checking dynamic linker characteristics" >&5
echo "configure:4144: checking dynamic linker characteristics" >&5
library_names_spec=
library_names_spec=
libname_spec='lib$name'
libname_spec='lib$name'
soname_spec=
soname_spec=
 Lines 4577-4583    Link Here 
# Report the final consequences.
# Report the final consequences.
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
echo "configure:4581: checking if libtool supports shared libraries" >&5
echo "configure:4530: checking if libtool supports shared libraries" >&5
echo "$ac_t""$can_build_shared" 1>&6
echo "$ac_t""$can_build_shared" 1>&6
if test "$hardcode_action" = relink; then
if test "$hardcode_action" = relink; then
 Lines 4616-4622    Link Here 
  *)
  *)
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:4620: checking for dlopen in -ldl" >&5
echo "configure:4569: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 4624-4630    Link Here 
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-ldl  $LIBS"
LIBS="-ldl  $LIBS"
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 4628 "configure"
#line 4577 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
 Lines 4635-4641    Link Here 
dlopen()
dlopen()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
 Lines 4654-4665    Link Here 
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
echo "configure:4658: checking for dlopen" >&5
echo "configure:4607: checking for dlopen" >&5
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 4663 "configure"
#line 4612 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen(); below.  */
    which can conflict with char dlopen(); below.  */
 Lines 4682-4688    Link Here 
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_dlopen=yes"
  eval "ac_cv_func_dlopen=yes"
else
else
 Lines 4700-4711    Link Here 
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for shl_load""... $ac_c" 1>&6
echo $ac_n "checking for shl_load""... $ac_c" 1>&6
echo "configure:4704: checking for shl_load" >&5
echo "configure:4653: checking for shl_load" >&5
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 4709 "configure"
#line 4658 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char shl_load(); below.  */
    which can conflict with char shl_load(); below.  */
 Lines 4728-4734    Link Here 
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_shl_load=yes"
  eval "ac_cv_func_shl_load=yes"
else
else
 Lines 4746-4752    Link Here 
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
echo "configure:4750: checking for dlopen in -lsvld" >&5
echo "configure:4699: checking for dlopen in -lsvld" >&5
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 4754-4760    Link Here 
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-lsvld  $LIBS"
LIBS="-lsvld  $LIBS"
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 4758 "configure"
#line 4707 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
 Lines 4765-4771    Link Here 
dlopen()
dlopen()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
 Lines 4784-4790    Link Here 
else
else
  echo "$ac_t""no" 1>&6
  echo "$ac_t""no" 1>&6
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
echo "configure:4788: checking for shl_load in -ldld" >&5
echo "configure:4737: checking for shl_load in -ldld" >&5
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
 Lines 4792-4798    Link Here 
  ac_save_LIBS="$LIBS"
  ac_save_LIBS="$LIBS"
LIBS="-ldld  $LIBS"
LIBS="-ldld  $LIBS"
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 4796 "configure"
#line 4745 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
 Lines 4803-4809    Link Here 
shl_load()
shl_load()
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  eval "ac_cv_lib_$ac_lib_var=yes"
else
else
 Lines 4856-4862    Link Here 
    LIBS="$lt_cv_dlopen_libs $LIBS"
    LIBS="$lt_cv_dlopen_libs $LIBS"
    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
echo "configure:4860: checking whether a program can dlopen itself" >&5
echo "configure:4809: checking whether a program can dlopen itself" >&5
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 4866-4872    Link Here 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 4870 "configure"
#line 4819 "configure"
#include "confdefs.h"
#include "confdefs.h"
#if HAVE_DLFCN_H
#if HAVE_DLFCN_H
 Lines 4927-4933    Link Here 
    exit (status);
    exit (status);
}
}
EOF
EOF
  if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    lt_status=$?
    case x$lt_status in
    case x$lt_status in
 Lines 4950-4956    Link Here 
    if test "x$lt_cv_dlopen_self" = xyes; then
    if test "x$lt_cv_dlopen_self" = xyes; then
      LDFLAGS="$LDFLAGS $link_static_flag"
      LDFLAGS="$LDFLAGS $link_static_flag"
      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
echo "configure:4954: checking whether a statically linked program can dlopen itself" >&5
echo "configure:4903: checking whether a statically linked program can dlopen itself" >&5
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 4960-4966    Link Here 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  lt_status=$lt_dlunknown
  lt_status=$lt_dlunknown
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 4964 "configure"
#line 4913 "configure"
#include "confdefs.h"
#include "confdefs.h"
#if HAVE_DLFCN_H
#if HAVE_DLFCN_H
 Lines 5021-5027    Link Here 
    exit (status);
    exit (status);
}
}
EOF
EOF
  if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
    (./conftest; exit; ) 2>/dev/null
    (./conftest; exit; ) 2>/dev/null
    lt_status=$?
    lt_status=$?
    case x$lt_status in
    case x$lt_status in
 Lines 5070-5083    Link Here 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
    # to ld, don't add -lc before -lgcc.
    # to ld, don't add -lc before -lgcc.
    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
echo "configure:5074: checking whether -lc should be explicitly linked in" >&5
echo "configure:5023: checking whether -lc should be explicitly linked in" >&5
    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  $rm conftest*
  $rm conftest*
    echo 'static int dummy;' > conftest.$ac_ext
    echo 'static int dummy;' > conftest.$ac_ext
    if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    if { (eval echo configure:5030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
      soname=conftest
      soname=conftest
      lib=conftest
      lib=conftest
      libobjs=conftest.$ac_objext
      libobjs=conftest.$ac_objext
 Lines 5090-5096    Link Here 
      libname=conftest
      libname=conftest
      save_allow_undefined_flag=$allow_undefined_flag
      save_allow_undefined_flag=$allow_undefined_flag
      allow_undefined_flag=
      allow_undefined_flag=
      if { (eval echo configure:5094: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
      if { (eval echo configure:5043: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
      then
      then
	lt_cv_archive_cmds_need_lc=no
	lt_cv_archive_cmds_need_lc=no
      else
      else
 Lines 5721-5727    Link Here 
echo $ac_n "checking for GNU Readline library, version 2.0 or newer""... $ac_c" 1>&6
echo $ac_n "checking for GNU Readline library, version 2.0 or newer""... $ac_c" 1>&6
echo "configure:5725: checking for GNU Readline library, version 2.0 or newer" >&5
echo "configure:5674: checking for GNU Readline library, version 2.0 or newer" >&5
wi_cv_lib_readline=no
wi_cv_lib_readline=no
wi_cv_lib_readline_result=no
wi_cv_lib_readline_result=no
 Lines 5737-5743    Link Here 
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 5741 "configure"
#line 5690 "configure"
#include "confdefs.h"
#include "confdefs.h"
	/* program */
	/* program */
 Lines 5755-5761    Link Here 
}
}
EOF
EOF
if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  
  
	# action if true
	# action if true
 Lines 5781-5787    Link Here 
# rl_function_of_keyseq appeared in version 2.0
# rl_function_of_keyseq appeared in version 2.0
#
#
	cat > conftest.$ac_ext <<EOF
	cat > conftest.$ac_ext <<EOF
#line 5785 "configure"
#line 5734 "configure"
#include "confdefs.h"
#include "confdefs.h"
		/* includes */
		/* includes */
 Lines 5794-5800    Link Here 
	
	
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  
  
		wi_cv_lib_readline=yes
		wi_cv_lib_readline=yes
 Lines 5827-5833    Link Here 
	
	
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 5831 "configure"
#line 5780 "configure"
#include "confdefs.h"
#include "confdefs.h"
	/* program */
	/* program */
 Lines 5852-5858    Link Here 
}
}
	
	
EOF
EOF
if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  
  
		# action if true
		# action if true
 Lines 5882-5888    Link Here 
		*)
		*)
			# Test using current LIBS.
			# Test using current LIBS.
			cat > conftest.$ac_ext <<EOF
			cat > conftest.$ac_ext <<EOF
#line 5886 "configure"
#line 5835 "configure"
#include "confdefs.h"
#include "confdefs.h"
				/* includes */
				/* includes */
 Lines 5896-5902    Link Here 
			
			
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:5849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  
  
				rlver="210"
				rlver="210"
 Lines 5939-5955    Link Here 
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5943: checking for $ac_hdr" >&5
echo "configure:5892: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 5948 "configure"
#line 5897 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:5902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
 Lines 6009-6015    Link Here 
    # Extract the first word of "glib-config", so it can be a program name with args.
    # Extract the first word of "glib-config", so it can be a program name with args.
set dummy glib-config; ac_word=$2
set dummy glib-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6013: checking for $ac_word" >&5
echo "configure:5962: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_GLIBCONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 6061-6067    Link Here 
            # Extract the first word of "gtk-config gtk12-config", so it can be a program name with args.
            # Extract the first word of "gtk-config gtk12-config", so it can be a program name with args.
set dummy gtk-config gtk12-config; ac_word=$2
set dummy gtk-config gtk12-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6065: checking for $ac_word" >&5
echo "configure:6014: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GTKCONFIG'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_GTKCONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 6102-6108    Link Here 
    # Extract the first word of "gtkextra-config", so it can be a program name with args.
    # Extract the first word of "gtkextra-config", so it can be a program name with args.
set dummy gtkextra-config; ac_word=$2
set dummy gtkextra-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6106: checking for $ac_word" >&5
echo "configure:6055: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_GTKEXTRACONFIG'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_GTKEXTRACONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 6153-6159    Link Here 
        # Extract the first word of "pkg-config", so it can be a program name with args.
        # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
set dummy pkg-config; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:6157: checking for $ac_word" >&5
echo "configure:6106: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_PKGCONFIG'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_path_PKGCONFIG'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 6215-6226    Link Here 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:6219: checking for ANSI C header files" >&5
echo "configure:6168: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6224 "configure"
#line 6173 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <stdlib.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdarg.h>
 Lines 6228-6234    Link Here 
#include <float.h>
#include <float.h>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:6181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
 Lines 6245-6251    Link Here 
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 6249 "configure"
#line 6198 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <string.h>
#include <string.h>
EOF
EOF
 Lines 6263-6269    Link Here 
if test $ac_cv_header_stdc = yes; then
if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
cat > conftest.$ac_ext <<EOF
#line 6267 "configure"
#line 6216 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <stdlib.h>
#include <stdlib.h>
EOF
EOF
 Lines 6284-6290    Link Here 
  :
  :
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6288 "configure"
#line 6237 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <ctype.h>
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 Lines 6295-6301    Link Here 
exit (0); }
exit (0); }
EOF
EOF
if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  :
  :
else
else
 Lines 6322-6338    Link Here 
do
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6326: checking for $ac_hdr" >&5
echo "configure:6275: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6331 "configure"
#line 6280 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <$ac_hdr>
#include <$ac_hdr>
EOF
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:6285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
if test -z "$ac_err"; then
  rm -rf conftest*
  rm -rf conftest*
 Lines 6362-6380    Link Here 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:6366: checking for working alloca.h" >&5
echo "configure:6315: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6371 "configure"
#line 6320 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <alloca.h>
#include <alloca.h>
int main() {
int main() {
char *p = alloca(2 * sizeof(int));
char *p = alloca(2 * sizeof(int));
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
  ac_cv_header_alloca_h=yes
else
else
 Lines 6395-6406    Link Here 
fi
fi
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:6399: checking for alloca" >&5
echo "configure:6348: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6404 "configure"
#line 6353 "configure"
#include "confdefs.h"
#include "confdefs.h"
#ifdef __GNUC__
#ifdef __GNUC__
 Lines 6428-6434    Link Here 
char *p = (char *) alloca(1);
char *p = (char *) alloca(1);
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
  ac_cv_func_alloca_works=yes
else
else
 Lines 6460-6471    Link Here 
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:6464: checking whether alloca needs Cray hooks" >&5
echo "configure:6413: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6469 "configure"
#line 6418 "configure"
#include "confdefs.h"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
#if defined(CRAY) && ! defined(CRAY2)
webecray
webecray
 Lines 6490-6501    Link Here 
if test $ac_cv_os_cray = yes; then
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6494: checking for $ac_func" >&5
echo "configure:6443: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6499 "configure"
#line 6448 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
 Lines 6518-6524    Link Here 
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:6471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else
 Lines 6545-6551    Link Here 
fi
fi
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:6549: checking stack direction for C alloca" >&5
echo "configure:6498: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
 Lines 6553-6559    Link Here 
  ac_cv_c_stack_direction=0
  ac_cv_c_stack_direction=0
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6557 "configure"
#line 6506 "configure"
#include "confdefs.h"
#include "confdefs.h"
find_stack_direction ()
find_stack_direction ()
{
{
 Lines 6572-6578    Link Here 
  exit (find_stack_direction() < 0);
  exit (find_stack_direction() < 0);
}
}
EOF
EOF
if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
then
  ac_cv_c_stack_direction=1
  ac_cv_c_stack_direction=1
else
else
 Lines 6605-6616    Link Here 
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:6609: checking return type of signal handlers" >&5
echo "configure:6558: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6614 "configure"
#line 6563 "configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/types.h>
#include <signal.h>
#include <signal.h>
 Lines 6627-6633    Link Here 
int i;
int i;
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:6631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:6580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  rm -rf conftest*
  ac_cv_type_signal=void
  ac_cv_type_signal=void
else
else
 Lines 6649-6660    Link Here 
for ac_func in strdup strstr strtod strtol strtoul
for ac_func in strdup strstr strtod strtol strtoul
do
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6653: checking for $ac_func" >&5
echo "configure:6602: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
  echo $ac_n "(cached) $ac_c" 1>&6
else
else
  cat > conftest.$ac_ext <<EOF
  cat > conftest.$ac_ext <<EOF
#line 6658 "configure"
#line 6607 "configure"
#include "confdefs.h"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
    which can conflict with char $ac_func(); below.  */
 Lines 6680-6686    Link Here 
; return 0; }
; return 0; }
EOF
EOF
if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
  eval "ac_cv_func_$ac_func=yes"
else
else