Changes On Branch autoconf
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Changes In Branch autoconf Excluding Merge-Ins

This is equivalent to a diff from dbe1e68e43 to c5f994d4c5

2011-06-19
16:52
Require version 2.61 of autoconf, the version installed by default on Mac OS X. Changes to get autoconf working under Solaris 10: Prefer system version of OpenSSL found in /usr/sfw directory. Check for getpassphrase using autoconf rather than making assumptions in config.h. Closed-Leaf check-in: c5f994d4c5 user: ben tags: autoconf
16:48
Fix syntax in Makefile.in so it works with Solaris make. check-in: 4787336f2f user: ben tags: autoconf
2011-06-16
19:51
Updates to the VC++ makefile. check-in: 82d741db3e user: drh tags: trunk
2011-06-15
18:54
some changes check-in: e661691b74 user: 5340 tags: orefkovs-change
15:33
Add the configure script and merge in the latest trunk changes. check-in: 57ca24966f user: drh tags: autoconf
15:22
Update the built-in SQLite to the latest 3.7.7 beta. check-in: dbe1e68e43 user: drh tags: trunk
2011-06-14
23:59
When doing a merge, only follow direct ancestor links when computing the set of filename changes. Do not follow merge links as this can result in non-intuitive changes. Ticket [554f44ee74e3d3b]. check-in: 1c4d1272a6 user: drh tags: trunk

Deleted Makefile.

     1         -#!/usr/bin/make
     2         -#
     3         -# This is the top-level makefile for Fossil when the build is occurring
     4         -# on a unix platform.  This works out-of-the-box on most unix platforms.
     5         -# But you are free to vary some of the definitions if desired.
     6         -#
     7         -#### The toplevel directory of the source tree.  Fossil can be built
     8         -#    in a directory that is separate from the source tree.  Just change
     9         -#    the following to point from the build directory to the src/ folder.
    10         -#
    11         -SRCDIR = ./src
    12         -
    13         -#### The directory into which object code files should be written.
    14         -#
    15         -#
    16         -OBJDIR = ./bld
    17         -
    18         -#### C Compiler and options for use in building executables that
    19         -#    will run on the platform that is doing the build.  This is used
    20         -#    to compile code-generator programs as part of the build process.
    21         -#    See TCC below for the C compiler for building the finished binary.
    22         -#
    23         -BCC = gcc
    24         -
    25         -#### The suffix to add to final executable file.  When cross-compiling
    26         -#    to windows, make this ".exe".  Otherwise leave it blank.
    27         -#
    28         -E =
    29         -
    30         -#### C Compile and options for use in building executables that 
    31         -#    will run on the target platform.  This is usually the same
    32         -#    as BCC, unless you are cross-compiling.  This C compiler builds
    33         -#    the finished binary for fossil.  The BCC compiler above is used
    34         -#    for building intermediate code-generator tools.
    35         -#
    36         -#TCC = gcc -O6
    37         -#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
    38         -TCC = gcc -g -Os -Wall
    39         -
    40         -# To add support for HTTPS
    41         -TCC += -DFOSSIL_ENABLE_SSL
    42         -
    43         -#### Extra arguments for linking the finished binary.  Fossil needs
    44         -#    to link against the Z-Lib compression library.  There are no
    45         -#    other dependencies.  We sometimes add the -static option here
    46         -#    so that we can build a static executable that will run in a
    47         -#    chroot jail.
    48         -#
    49         -LIB = -lz $(LDFLAGS)
    50         -
    51         -# If using HTTPS:
    52         -LIB += -lcrypto -lssl
    53         -
    54         -#### Tcl shell for use in running the fossil testsuite.  If you do not
    55         -#    care about testing the end result, this can be blank.
    56         -#
    57         -TCLSH = tclsh
    58         -
    59         -# You should not need to change anything below this line
    60         -###############################################################################
    61         -#
    62         -# Automatic platform-specific options.
    63         -HOST_OS_CMD = uname -s
    64         -HOST_OS = $(HOST_OS_CMD:sh)
    65         -
    66         -LIB.SunOS= -lsocket -lnsl
    67         -LIB += $(LIB.$(HOST_OS))
    68         -
    69         -TCC.DragonFly += -DUSE_PREAD
    70         -TCC.FreeBSD += -DUSE_PREAD
    71         -TCC.NetBSD += -DUSE_PREAD
    72         -TCC.OpenBSD += -DUSE_PREAD
    73         -TCC += $(TCC.$(HOST_OS))
    74         -
    75         -include $(SRCDIR)/main.mk

Added Makefile.classic.

            1  +#!/usr/bin/make
            2  +#
            3  +# This is the top-level makefile for Fossil when the build is occurring
            4  +# on a unix platform.  This works out-of-the-box on most unix platforms.
            5  +# But you are free to vary some of the definitions if desired.
            6  +#
            7  +#### The toplevel directory of the source tree.  Fossil can be built
            8  +#    in a directory that is separate from the source tree.  Just change
            9  +#    the following to point from the build directory to the src/ folder.
           10  +#
           11  +SRCDIR = ./src
           12  +
           13  +#### The directory into which object code files should be written.
           14  +#
           15  +#
           16  +OBJDIR = ./bld
           17  +
           18  +#### C Compiler and options for use in building executables that
           19  +#    will run on the platform that is doing the build.  This is used
           20  +#    to compile code-generator programs as part of the build process.
           21  +#    See TCC below for the C compiler for building the finished binary.
           22  +#
           23  +BCC = gcc
           24  +
           25  +#### The suffix to add to final executable file.  When cross-compiling
           26  +#    to windows, make this ".exe".  Otherwise leave it blank.
           27  +#
           28  +E =
           29  +
           30  +#### C Compile and options for use in building executables that 
           31  +#    will run on the target platform.  This is usually the same
           32  +#    as BCC, unless you are cross-compiling.  This C compiler builds
           33  +#    the finished binary for fossil.  The BCC compiler above is used
           34  +#    for building intermediate code-generator tools.
           35  +#
           36  +#TCC = gcc -O6
           37  +#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
           38  +TCC = gcc -g -Os -Wall
           39  +
           40  +# To add support for HTTPS
           41  +TCC += -DFOSSIL_ENABLE_SSL
           42  +
           43  +#### Extra arguments for linking the finished binary.  Fossil needs
           44  +#    to link against the Z-Lib compression library.  There are no
           45  +#    other dependencies.  We sometimes add the -static option here
           46  +#    so that we can build a static executable that will run in a
           47  +#    chroot jail.
           48  +#
           49  +LIB = -lz $(LDFLAGS)
           50  +
           51  +# If using HTTPS:
           52  +LIB += -lcrypto -lssl
           53  +
           54  +#### Tcl shell for use in running the fossil testsuite.  If you do not
           55  +#    care about testing the end result, this can be blank.
           56  +#
           57  +TCLSH = tclsh
           58  +
           59  +# You should not need to change anything below this line
           60  +###############################################################################
           61  +#
           62  +# Automatic platform-specific options.
           63  +HOST_OS_CMD = uname -s
           64  +HOST_OS = $(HOST_OS_CMD:sh)
           65  +
           66  +LIB.SunOS= -lsocket -lnsl
           67  +LIB += $(LIB.$(HOST_OS))
           68  +
           69  +TCC.DragonFly += -DUSE_PREAD
           70  +TCC.FreeBSD += -DUSE_PREAD
           71  +TCC.NetBSD += -DUSE_PREAD
           72  +TCC.OpenBSD += -DUSE_PREAD
           73  +TCC += $(TCC.$(HOST_OS))
           74  +
           75  +include $(SRCDIR)/main.mk

Added Makefile.in.

            1  +#!/usr/bin/make
            2  +#
            3  +# This is the top-level makefile for Fossil when the build is occurring
            4  +# on a unix platform.  This works out-of-the-box on most unix platforms.
            5  +# But you are free to vary some of the definitions if desired.
            6  +#
            7  +#### The toplevel directory of the source tree.  Fossil can be built
            8  +#    in a directory that is separate from the source tree.  Just change
            9  +#    the following to point from the build directory to the src/ folder.
           10  +#
           11  +SRCDIR = @srcdir@/src
           12  +
           13  +#### The directory into which object code files should be written.
           14  +#
           15  +#
           16  +OBJDIR = ./bld
           17  +
           18  +#### C Compiler and options for use in building executables that
           19  +#    will run on the platform that is doing the build.  This is used
           20  +#    to compile code-generator programs as part of the build process.
           21  +#    See TCC below for the C compiler for building the finished binary.
           22  +#
           23  +BCC = @CC@
           24  +
           25  +#### The suffix to add to final executable file.  When cross-compiling
           26  +#    to windows, make this ".exe".  Otherwise leave it blank.
           27  +#
           28  +E = @EXEEXT@
           29  +
           30  +TCC = @CC@
           31  +
           32  +#### Tcl shell for use in running the fossil testsuite.  If you do not
           33  +#    care about testing the end result, this can be blank.
           34  +#
           35  +TCLSH = tclsh
           36  +
           37  +LIB =	@LDFLAGS@ @LIBS@ @OPENSSL_LDFLAGS@ @OPENSSL_LIBS@
           38  +TCC +=	@CPPFLAGS@ @CFLAGS@ @OPENSSL_INCLUDES@ -DHAVE_AUTOCONFIG_H
           39  +
           40  +include $(SRCDIR)/main.mk

Added acsite.m4.

            1  +# ===========================================================================
            2  +#     http://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
            3  +# ===========================================================================
            4  +#
            5  +# SYNOPSIS
            6  +#
            7  +#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
            8  +#
            9  +# DESCRIPTION
           10  +#
           11  +#   Look for OpenSSL in a number of default spots, or in a user-selected
           12  +#   spot (via --with-openssl).  Sets
           13  +#
           14  +#     OPENSSL_INCLUDES to the include directives required
           15  +#     OPENSSL_LIBS to the -l directives required
           16  +#     OPENSSL_LDFLAGS to the -L or -R flags required
           17  +#
           18  +#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
           19  +#
           20  +#   This macro sets OPENSSL_INCLUDES such that source files should use the
           21  +#   openssl/ directory in include directives:
           22  +#
           23  +#     #include <openssl/hmac.h>
           24  +#
           25  +# LICENSE
           26  +#
           27  +#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
           28  +#   Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
           29  +#
           30  +#   Copying and distribution of this file, with or without modification, are
           31  +#   permitted in any medium without royalty provided the copyright notice
           32  +#   and this notice are preserved. This file is offered as-is, without any
           33  +#   warranty.
           34  +
           35  +#serial 7
           36  +
           37  +AU_ALIAS([CHECK_SSL], [AX_CHECK_OPENSSL])
           38  +AC_DEFUN([AX_CHECK_OPENSSL], [
           39  +    found=false
           40  +    AC_ARG_WITH(openssl,
           41  +        AS_HELP_STRING([--with-openssl=DIR],
           42  +            [root of the OpenSSL directory]),
           43  +        [
           44  +            case "$withval" in
           45  +            "" | y | ye | yes | n | no)
           46  +            AC_MSG_ERROR([Invalid --with-openssl value])
           47  +              ;;
           48  +            *) ssldirs="$withval"
           49  +              ;;
           50  +            esac
           51  +        ], [
           52  +            # if pkg-config is installed and openssl has installed a .pc file,
           53  +            # then use that information and don't search ssldirs
           54  +            AC_PATH_PROG(PKG_CONFIG, pkg-config)
           55  +            if test x"$PKG_CONFIG" != x""; then
           56  +                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
           57  +                if test $? = 0; then
           58  +                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
           59  +                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
           60  +                    found=true
           61  +                fi
           62  +            fi
           63  +
           64  +            # no such luck; use some default ssldirs
           65  +            # -- check /usr/sfw first to get the right OpenSSL on Solaris 10
           66  +            if ! $found; then
           67  +                ssldirs="/usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
           68  +            fi
           69  +        ]
           70  +        )
           71  +
           72  +
           73  +    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
           74  +    # an 'openssl' subdirectory
           75  +
           76  +    if ! $found; then
           77  +        OPENSSL_INCLUDES=
           78  +        for ssldir in $ssldirs; do
           79  +            AC_MSG_CHECKING([for openssl/ssl.h in $ssldir])
           80  +            if test -f "$ssldir/include/openssl/ssl.h"; then
           81  +                OPENSSL_INCLUDES="-I$ssldir/include"
           82  +                OPENSSL_LDFLAGS="-L$ssldir/lib"
           83  +                OPENSSL_LIBS="-lssl -lcrypto"
           84  +                found=true
           85  +                AC_MSG_RESULT([yes])
           86  +                break
           87  +            else
           88  +                AC_MSG_RESULT([no])
           89  +            fi
           90  +        done
           91  +
           92  +        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
           93  +        # it will just work!
           94  +    fi
           95  +
           96  +    # try the preprocessor and linker with our new flags,
           97  +    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
           98  +
           99  +    AC_MSG_CHECKING([whether compiling and linking against OpenSSL works])
          100  +    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
          101  +        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&AS_MESSAGE_LOG_FD
          102  +
          103  +    save_LIBS="$LIBS"
          104  +    save_LDFLAGS="$LDFLAGS"
          105  +    save_CPPFLAGS="$CPPFLAGS"
          106  +    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
          107  +    LIBS="$OPENSSL_LIBS $LIBS"
          108  +    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
          109  +    AC_LINK_IFELSE(
          110  +        AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)]),
          111  +        [
          112  +            AC_MSG_RESULT([yes])
          113  +            $1
          114  +        ], [
          115  +            AC_MSG_RESULT([no])
          116  +            $2
          117  +        ])
          118  +    CPPFLAGS="$save_CPPFLAGS"
          119  +    LDFLAGS="$save_LDFLAGS"
          120  +    LIBS="$save_LIBS"
          121  +
          122  +    AC_SUBST([OPENSSL_INCLUDES])
          123  +    AC_SUBST([OPENSSL_LIBS])
          124  +    AC_SUBST([OPENSSL_LDFLAGS])
          125  +])

Added autoconf/ax_check_openssl.m4.

            1  +# ===========================================================================
            2  +#     http://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
            3  +# ===========================================================================
            4  +#
            5  +# SYNOPSIS
            6  +#
            7  +#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
            8  +#
            9  +# DESCRIPTION
           10  +#
           11  +#   Look for OpenSSL in a number of default spots, or in a user-selected
           12  +#   spot (via --with-openssl).  Sets
           13  +#
           14  +#     OPENSSL_INCLUDES to the include directives required
           15  +#     OPENSSL_LIBS to the -l directives required
           16  +#     OPENSSL_LDFLAGS to the -L or -R flags required
           17  +#
           18  +#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
           19  +#
           20  +#   This macro sets OPENSSL_INCLUDES such that source files should use the
           21  +#   openssl/ directory in include directives:
           22  +#
           23  +#     #include <openssl/hmac.h>
           24  +#
           25  +# LICENSE
           26  +#
           27  +#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
           28  +#   Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
           29  +#
           30  +#   Copying and distribution of this file, with or without modification, are
           31  +#   permitted in any medium without royalty provided the copyright notice
           32  +#   and this notice are preserved. This file is offered as-is, without any
           33  +#   warranty.
           34  +
           35  +#serial 7
           36  +
           37  +AU_ALIAS([CHECK_SSL], [AX_CHECK_OPENSSL])
           38  +AC_DEFUN([AX_CHECK_OPENSSL], [
           39  +    found=false
           40  +    AC_ARG_WITH(openssl,
           41  +        AS_HELP_STRING([--with-openssl=DIR],
           42  +            [root of the OpenSSL directory]),
           43  +        [
           44  +            case "$withval" in
           45  +            "" | y | ye | yes | n | no)
           46  +            AC_MSG_ERROR([Invalid --with-openssl value])
           47  +              ;;
           48  +            *) ssldirs="$withval"
           49  +              ;;
           50  +            esac
           51  +        ], [
           52  +            # if pkg-config is installed and openssl has installed a .pc file,
           53  +            # then use that information and don't search ssldirs
           54  +            AC_PATH_PROG(PKG_CONFIG, pkg-config)
           55  +            if test x"$PKG_CONFIG" != x""; then
           56  +                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
           57  +                if test $? = 0; then
           58  +                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
           59  +                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
           60  +                    found=true
           61  +                fi
           62  +            fi
           63  +
           64  +            # no such luck; use some default ssldirs
           65  +            # -- check /usr/sfw first to get the right OpenSSL on Solaris 10
           66  +            if ! $found; then
           67  +                ssldirs="/usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
           68  +            fi
           69  +        ]
           70  +        )
           71  +
           72  +
           73  +    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
           74  +    # an 'openssl' subdirectory
           75  +
           76  +    if ! $found; then
           77  +        OPENSSL_INCLUDES=
           78  +        for ssldir in $ssldirs; do
           79  +            AC_MSG_CHECKING([for openssl/ssl.h in $ssldir])
           80  +            if test -f "$ssldir/include/openssl/ssl.h"; then
           81  +                OPENSSL_INCLUDES="-I$ssldir/include"
           82  +                OPENSSL_LDFLAGS="-L$ssldir/lib"
           83  +                OPENSSL_LIBS="-lssl -lcrypto"
           84  +                found=true
           85  +                AC_MSG_RESULT([yes])
           86  +                break
           87  +            else
           88  +                AC_MSG_RESULT([no])
           89  +            fi
           90  +        done
           91  +
           92  +        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
           93  +        # it will just work!
           94  +    fi
           95  +
           96  +    # try the preprocessor and linker with our new flags,
           97  +    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
           98  +
           99  +    AC_MSG_CHECKING([whether compiling and linking against OpenSSL works])
          100  +    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
          101  +        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&AS_MESSAGE_LOG_FD
          102  +
          103  +    save_LIBS="$LIBS"
          104  +    save_LDFLAGS="$LDFLAGS"
          105  +    save_CPPFLAGS="$CPPFLAGS"
          106  +    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
          107  +    LIBS="$OPENSSL_LIBS $LIBS"
          108  +    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
          109  +    AC_LINK_IFELSE(
          110  +        AC_LANG_PROGRAM([#include <openssl/ssl.h>], [SSL_new(NULL)]),
          111  +        [
          112  +            AC_MSG_RESULT([yes])
          113  +            $1
          114  +        ], [
          115  +            AC_MSG_RESULT([no])
          116  +            $2
          117  +        ])
          118  +    CPPFLAGS="$save_CPPFLAGS"
          119  +    LDFLAGS="$save_LDFLAGS"
          120  +    LIBS="$save_LIBS"
          121  +
          122  +    AC_SUBST([OPENSSL_INCLUDES])
          123  +    AC_SUBST([OPENSSL_LIBS])
          124  +    AC_SUBST([OPENSSL_LDFLAGS])
          125  +])

Added autoconf/config.guess.

            1  +#! /bin/sh
            2  +# Attempt to guess a canonical system name.
            3  +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
            4  +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
            5  +#   Free Software Foundation, Inc.
            6  +
            7  +timestamp='2009-12-30'
            8  +
            9  +# This file is free software; you can redistribute it and/or modify it
           10  +# under the terms of the GNU General Public License as published by
           11  +# the Free Software Foundation; either version 2 of the License, or
           12  +# (at your option) any later version.
           13  +#
           14  +# This program is distributed in the hope that it will be useful, but
           15  +# WITHOUT ANY WARRANTY; without even the implied warranty of
           16  +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
           17  +# General Public License for more details.
           18  +#
           19  +# You should have received a copy of the GNU General Public License
           20  +# along with this program; if not, write to the Free Software
           21  +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
           22  +# 02110-1301, USA.
           23  +#
           24  +# As a special exception to the GNU General Public License, if you
           25  +# distribute this file as part of a program that contains a
           26  +# configuration script generated by Autoconf, you may include it under
           27  +# the same distribution terms that you use for the rest of that program.
           28  +
           29  +
           30  +# Originally written by Per Bothner.  Please send patches (context
           31  +# diff format) to <config-patches@gnu.org> and include a ChangeLog
           32  +# entry.
           33  +#
           34  +# This script attempts to guess a canonical system name similar to
           35  +# config.sub.  If it succeeds, it prints the system name on stdout, and
           36  +# exits with 0.  Otherwise, it exits with 1.
           37  +#
           38  +# You can get the latest version of this script from:
           39  +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
           40  +
           41  +me=`echo "$0" | sed -e 's,.*/,,'`
           42  +
           43  +usage="\
           44  +Usage: $0 [OPTION]
           45  +
           46  +Output the configuration name of the system \`$me' is run on.
           47  +
           48  +Operation modes:
           49  +  -h, --help         print this help, then exit
           50  +  -t, --time-stamp   print date of last modification, then exit
           51  +  -v, --version      print version number, then exit
           52  +
           53  +Report bugs and patches to <config-patches@gnu.org>."
           54  +
           55  +version="\
           56  +GNU config.guess ($timestamp)
           57  +
           58  +Originally written by Per Bothner.
           59  +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
           60  +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
           61  +Software Foundation, Inc.
           62  +
           63  +This is free software; see the source for copying conditions.  There is NO
           64  +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
           65  +
           66  +help="
           67  +Try \`$me --help' for more information."
           68  +
           69  +# Parse command line
           70  +while test $# -gt 0 ; do
           71  +  case $1 in
           72  +    --time-stamp | --time* | -t )
           73  +       echo "$timestamp" ; exit ;;
           74  +    --version | -v )
           75  +       echo "$version" ; exit ;;
           76  +    --help | --h* | -h )
           77  +       echo "$usage"; exit ;;
           78  +    -- )     # Stop option processing
           79  +       shift; break ;;
           80  +    - )	# Use stdin as input.
           81  +       break ;;
           82  +    -* )
           83  +       echo "$me: invalid option $1$help" >&2
           84  +       exit 1 ;;
           85  +    * )
           86  +       break ;;
           87  +  esac
           88  +done
           89  +
           90  +if test $# != 0; then
           91  +  echo "$me: too many arguments$help" >&2
           92  +  exit 1
           93  +fi
           94  +
           95  +trap 'exit 1' 1 2 15
           96  +
           97  +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
           98  +# compiler to aid in system detection is discouraged as it requires
           99  +# temporary files to be created and, as you can see below, it is a
          100  +# headache to deal with in a portable fashion.
          101  +
          102  +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
          103  +# use `HOST_CC' if defined, but it is deprecated.
          104  +
          105  +# Portable tmp directory creation inspired by the Autoconf team.
          106  +
          107  +set_cc_for_build='
          108  +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
          109  +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
          110  +: ${TMPDIR=/tmp} ;
          111  + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
          112  + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
          113  + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
          114  + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
          115  +dummy=$tmp/dummy ;
          116  +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
          117  +case $CC_FOR_BUILD,$HOST_CC,$CC in
          118  + ,,)    echo "int x;" > $dummy.c ;
          119  +	for c in cc gcc c89 c99 ; do
          120  +	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
          121  +	     CC_FOR_BUILD="$c"; break ;
          122  +	  fi ;
          123  +	done ;
          124  +	if test x"$CC_FOR_BUILD" = x ; then
          125  +	  CC_FOR_BUILD=no_compiler_found ;
          126  +	fi
          127  +	;;
          128  + ,,*)   CC_FOR_BUILD=$CC ;;
          129  + ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
          130  +esac ; set_cc_for_build= ;'
          131  +
          132  +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
          133  +# (ghazi@noc.rutgers.edu 1994-08-24)
          134  +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
          135  +	PATH=$PATH:/.attbin ; export PATH
          136  +fi
          137  +
          138  +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
          139  +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
          140  +UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
          141  +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
          142  +
          143  +# Note: order is significant - the case branches are not exclusive.
          144  +
          145  +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
          146  +    *:NetBSD:*:*)
          147  +	# NetBSD (nbsd) targets should (where applicable) match one or
          148  +	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
          149  +	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
          150  +	# switched to ELF, *-*-netbsd* would select the old
          151  +	# object file format.  This provides both forward
          152  +	# compatibility and a consistent mechanism for selecting the
          153  +	# object file format.
          154  +	#
          155  +	# Note: NetBSD doesn't particularly care about the vendor
          156  +	# portion of the name.  We always set it to "unknown".
          157  +	sysctl="sysctl -n hw.machine_arch"
          158  +	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
          159  +	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
          160  +	case "${UNAME_MACHINE_ARCH}" in
          161  +	    armeb) machine=armeb-unknown ;;
          162  +	    arm*) machine=arm-unknown ;;
          163  +	    sh3el) machine=shl-unknown ;;
          164  +	    sh3eb) machine=sh-unknown ;;
          165  +	    sh5el) machine=sh5le-unknown ;;
          166  +	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
          167  +	esac
          168  +	# The Operating System including object format, if it has switched
          169  +	# to ELF recently, or will in the future.
          170  +	case "${UNAME_MACHINE_ARCH}" in
          171  +	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
          172  +		eval $set_cc_for_build
          173  +		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
          174  +			| grep -q __ELF__
          175  +		then
          176  +		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
          177  +		    # Return netbsd for either.  FIX?
          178  +		    os=netbsd
          179  +		else
          180  +		    os=netbsdelf
          181  +		fi
          182  +		;;
          183  +	    *)
          184  +	        os=netbsd
          185  +		;;
          186  +	esac
          187  +	# The OS release
          188  +	# Debian GNU/NetBSD machines have a different userland, and
          189  +	# thus, need a distinct triplet. However, they do not need
          190  +	# kernel version information, so it can be replaced with a
          191  +	# suitable tag, in the style of linux-gnu.
          192  +	case "${UNAME_VERSION}" in
          193  +	    Debian*)
          194  +		release='-gnu'
          195  +		;;
          196  +	    *)
          197  +		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
          198  +		;;
          199  +	esac
          200  +	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
          201  +	# contains redundant information, the shorter form:
          202  +	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
          203  +	echo "${machine}-${os}${release}"
          204  +	exit ;;
          205  +    *:OpenBSD:*:*)
          206  +	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
          207  +	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
          208  +	exit ;;
          209  +    *:ekkoBSD:*:*)
          210  +	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
          211  +	exit ;;
          212  +    *:SolidBSD:*:*)
          213  +	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
          214  +	exit ;;
          215  +    macppc:MirBSD:*:*)
          216  +	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
          217  +	exit ;;
          218  +    *:MirBSD:*:*)
          219  +	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
          220  +	exit ;;
          221  +    alpha:OSF1:*:*)
          222  +	case $UNAME_RELEASE in
          223  +	*4.0)
          224  +		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
          225  +		;;
          226  +	*5.*)
          227  +	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
          228  +		;;
          229  +	esac
          230  +	# According to Compaq, /usr/sbin/psrinfo has been available on
          231  +	# OSF/1 and Tru64 systems produced since 1995.  I hope that
          232  +	# covers most systems running today.  This code pipes the CPU
          233  +	# types through head -n 1, so we only detect the type of CPU 0.
          234  +	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
          235  +	case "$ALPHA_CPU_TYPE" in
          236  +	    "EV4 (21064)")
          237  +		UNAME_MACHINE="alpha" ;;
          238  +	    "EV4.5 (21064)")
          239  +		UNAME_MACHINE="alpha" ;;
          240  +	    "LCA4 (21066/21068)")
          241  +		UNAME_MACHINE="alpha" ;;
          242  +	    "EV5 (21164)")
          243  +		UNAME_MACHINE="alphaev5" ;;
          244  +	    "EV5.6 (21164A)")
          245  +		UNAME_MACHINE="alphaev56" ;;
          246  +	    "EV5.6 (21164PC)")
          247  +		UNAME_MACHINE="alphapca56" ;;
          248  +	    "EV5.7 (21164PC)")
          249  +		UNAME_MACHINE="alphapca57" ;;
          250  +	    "EV6 (21264)")
          251  +		UNAME_MACHINE="alphaev6" ;;
          252  +	    "EV6.7 (21264A)")
          253  +		UNAME_MACHINE="alphaev67" ;;
          254  +	    "EV6.8CB (21264C)")
          255  +		UNAME_MACHINE="alphaev68" ;;
          256  +	    "EV6.8AL (21264B)")
          257  +		UNAME_MACHINE="alphaev68" ;;
          258  +	    "EV6.8CX (21264D)")
          259  +		UNAME_MACHINE="alphaev68" ;;
          260  +	    "EV6.9A (21264/EV69A)")
          261  +		UNAME_MACHINE="alphaev69" ;;
          262  +	    "EV7 (21364)")
          263  +		UNAME_MACHINE="alphaev7" ;;
          264  +	    "EV7.9 (21364A)")
          265  +		UNAME_MACHINE="alphaev79" ;;
          266  +	esac
          267  +	# A Pn.n version is a patched version.
          268  +	# A Vn.n version is a released version.
          269  +	# A Tn.n version is a released field test version.
          270  +	# A Xn.n version is an unreleased experimental baselevel.
          271  +	# 1.2 uses "1.2" for uname -r.
          272  +	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
          273  +	exit ;;
          274  +    Alpha\ *:Windows_NT*:*)
          275  +	# How do we know it's Interix rather than the generic POSIX subsystem?
          276  +	# Should we change UNAME_MACHINE based on the output of uname instead
          277  +	# of the specific Alpha model?
          278  +	echo alpha-pc-interix
          279  +	exit ;;
          280  +    21064:Windows_NT:50:3)
          281  +	echo alpha-dec-winnt3.5
          282  +	exit ;;
          283  +    Amiga*:UNIX_System_V:4.0:*)
          284  +	echo m68k-unknown-sysv4
          285  +	exit ;;
          286  +    *:[Aa]miga[Oo][Ss]:*:*)
          287  +	echo ${UNAME_MACHINE}-unknown-amigaos
          288  +	exit ;;
          289  +    *:[Mm]orph[Oo][Ss]:*:*)
          290  +	echo ${UNAME_MACHINE}-unknown-morphos
          291  +	exit ;;
          292  +    *:OS/390:*:*)
          293  +	echo i370-ibm-openedition
          294  +	exit ;;
          295  +    *:z/VM:*:*)
          296  +	echo s390-ibm-zvmoe
          297  +	exit ;;
          298  +    *:OS400:*:*)
          299  +        echo powerpc-ibm-os400
          300  +	exit ;;
          301  +    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
          302  +	echo arm-acorn-riscix${UNAME_RELEASE}
          303  +	exit ;;
          304  +    arm:riscos:*:*|arm:RISCOS:*:*)
          305  +	echo arm-unknown-riscos
          306  +	exit ;;
          307  +    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
          308  +	echo hppa1.1-hitachi-hiuxmpp
          309  +	exit ;;
          310  +    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
          311  +	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
          312  +	if test "`(/bin/universe) 2>/dev/null`" = att ; then
          313  +		echo pyramid-pyramid-sysv3
          314  +	else
          315  +		echo pyramid-pyramid-bsd
          316  +	fi
          317  +	exit ;;
          318  +    NILE*:*:*:dcosx)
          319  +	echo pyramid-pyramid-svr4
          320  +	exit ;;
          321  +    DRS?6000:unix:4.0:6*)
          322  +	echo sparc-icl-nx6
          323  +	exit ;;
          324  +    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
          325  +	case `/usr/bin/uname -p` in
          326  +	    sparc) echo sparc-icl-nx7; exit ;;
          327  +	esac ;;
          328  +    s390x:SunOS:*:*)
          329  +	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
          330  +	exit ;;
          331  +    sun4H:SunOS:5.*:*)
          332  +	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
          333  +	exit ;;
          334  +    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
          335  +	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
          336  +	exit ;;
          337  +    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
          338  +	echo i386-pc-auroraux${UNAME_RELEASE}
          339  +	exit ;;
          340  +    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
          341  +	eval $set_cc_for_build
          342  +	SUN_ARCH="i386"
          343  +	# If there is a compiler, see if it is configured for 64-bit objects.
          344  +	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
          345  +	# This test works for both compilers.
          346  +	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
          347  +	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
          348  +		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
          349  +		grep IS_64BIT_ARCH >/dev/null
          350  +	    then
          351  +		SUN_ARCH="x86_64"
          352  +	    fi
          353  +	fi
          354  +	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
          355  +	exit ;;
          356  +    sun4*:SunOS:6*:*)
          357  +	# According to config.sub, this is the proper way to canonicalize
          358  +	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
          359  +	# it's likely to be more like Solaris than SunOS4.
          360  +	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
          361  +	exit ;;
          362  +    sun4*:SunOS:*:*)
          363  +	case "`/usr/bin/arch -k`" in
          364  +	    Series*|S4*)
          365  +		UNAME_RELEASE=`uname -v`
          366  +		;;
          367  +	esac
          368  +	# Japanese Language versions have a version number like `4.1.3-JL'.
          369  +	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
          370  +	exit ;;
          371  +    sun3*:SunOS:*:*)
          372  +	echo m68k-sun-sunos${UNAME_RELEASE}
          373  +	exit ;;
          374  +    sun*:*:4.2BSD:*)
          375  +	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
          376  +	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
          377  +	case "`/bin/arch`" in
          378  +	    sun3)
          379  +		echo m68k-sun-sunos${UNAME_RELEASE}
          380  +		;;
          381  +	    sun4)
          382  +		echo sparc-sun-sunos${UNAME_RELEASE}
          383  +		;;
          384  +	esac
          385  +	exit ;;
          386  +    aushp:SunOS:*:*)
          387  +	echo sparc-auspex-sunos${UNAME_RELEASE}
          388  +	exit ;;
          389  +    # The situation for MiNT is a little confusing.  The machine name
          390  +    # can be virtually everything (everything which is not
          391  +    # "atarist" or "atariste" at least should have a processor
          392  +    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
          393  +    # to the lowercase version "mint" (or "freemint").  Finally
          394  +    # the system name "TOS" denotes a system which is actually not
          395  +    # MiNT.  But MiNT is downward compatible to TOS, so this should
          396  +    # be no problem.
          397  +    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
          398  +        echo m68k-atari-mint${UNAME_RELEASE}
          399  +	exit ;;
          400  +    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
          401  +	echo m68k-atari-mint${UNAME_RELEASE}
          402  +        exit ;;
          403  +    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
          404  +        echo m68k-atari-mint${UNAME_RELEASE}
          405  +	exit ;;
          406  +    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
          407  +        echo m68k-milan-mint${UNAME_RELEASE}
          408  +        exit ;;
          409  +    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
          410  +        echo m68k-hades-mint${UNAME_RELEASE}
          411  +        exit ;;
          412  +    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
          413  +        echo m68k-unknown-mint${UNAME_RELEASE}
          414  +        exit ;;
          415  +    m68k:machten:*:*)
          416  +	echo m68k-apple-machten${UNAME_RELEASE}
          417  +	exit ;;
          418  +    powerpc:machten:*:*)
          419  +	echo powerpc-apple-machten${UNAME_RELEASE}
          420  +	exit ;;
          421  +    RISC*:Mach:*:*)
          422  +	echo mips-dec-mach_bsd4.3
          423  +	exit ;;
          424  +    RISC*:ULTRIX:*:*)
          425  +	echo mips-dec-ultrix${UNAME_RELEASE}
          426  +	exit ;;
          427  +    VAX*:ULTRIX*:*:*)
          428  +	echo vax-dec-ultrix${UNAME_RELEASE}
          429  +	exit ;;
          430  +    2020:CLIX:*:* | 2430:CLIX:*:*)
          431  +	echo clipper-intergraph-clix${UNAME_RELEASE}
          432  +	exit ;;
          433  +    mips:*:*:UMIPS | mips:*:*:RISCos)
          434  +	eval $set_cc_for_build
          435  +	sed 's/^	//' << EOF >$dummy.c
          436  +#ifdef __cplusplus
          437  +#include <stdio.h>  /* for printf() prototype */
          438  +	int main (int argc, char *argv[]) {
          439  +#else
          440  +	int main (argc, argv) int argc; char *argv[]; {
          441  +#endif
          442  +	#if defined (host_mips) && defined (MIPSEB)
          443  +	#if defined (SYSTYPE_SYSV)
          444  +	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
          445  +	#endif
          446  +	#if defined (SYSTYPE_SVR4)
          447  +	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
          448  +	#endif
          449  +	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
          450  +	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
          451  +	#endif
          452  +	#endif
          453  +	  exit (-1);
          454  +	}
          455  +EOF
          456  +	$CC_FOR_BUILD -o $dummy $dummy.c &&
          457  +	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
          458  +	  SYSTEM_NAME=`$dummy $dummyarg` &&
          459  +	    { echo "$SYSTEM_NAME"; exit; }
          460  +	echo mips-mips-riscos${UNAME_RELEASE}
          461  +	exit ;;
          462  +    Motorola:PowerMAX_OS:*:*)
          463  +	echo powerpc-motorola-powermax
          464  +	exit ;;
          465  +    Motorola:*:4.3:PL8-*)
          466  +	echo powerpc-harris-powermax
          467  +	exit ;;
          468  +    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
          469  +	echo powerpc-harris-powermax
          470  +	exit ;;
          471  +    Night_Hawk:Power_UNIX:*:*)
          472  +	echo powerpc-harris-powerunix
          473  +	exit ;;
          474  +    m88k:CX/UX:7*:*)
          475  +	echo m88k-harris-cxux7
          476  +	exit ;;
          477  +    m88k:*:4*:R4*)
          478  +	echo m88k-motorola-sysv4
          479  +	exit ;;
          480  +    m88k:*:3*:R3*)
          481  +	echo m88k-motorola-sysv3
          482  +	exit ;;
          483  +    AViiON:dgux:*:*)
          484  +        # DG/UX returns AViiON for all architectures
          485  +        UNAME_PROCESSOR=`/usr/bin/uname -p`
          486  +	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
          487  +	then
          488  +	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
          489  +	       [ ${TARGET_BINARY_INTERFACE}x = x ]
          490  +	    then
          491  +		echo m88k-dg-dgux${UNAME_RELEASE}
          492  +	    else
          493  +		echo m88k-dg-dguxbcs${UNAME_RELEASE}
          494  +	    fi
          495  +	else
          496  +	    echo i586-dg-dgux${UNAME_RELEASE}
          497  +	fi
          498  + 	exit ;;
          499  +    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
          500  +	echo m88k-dolphin-sysv3
          501  +	exit ;;
          502  +    M88*:*:R3*:*)
          503  +	# Delta 88k system running SVR3
          504  +	echo m88k-motorola-sysv3
          505  +	exit ;;
          506  +    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
          507  +	echo m88k-tektronix-sysv3
          508  +	exit ;;
          509  +    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
          510  +	echo m68k-tektronix-bsd
          511  +	exit ;;
          512  +    *:IRIX*:*:*)
          513  +	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
          514  +	exit ;;
          515  +    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
          516  +	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
          517  +	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
          518  +    i*86:AIX:*:*)
          519  +	echo i386-ibm-aix
          520  +	exit ;;
          521  +    ia64:AIX:*:*)
          522  +	if [ -x /usr/bin/oslevel ] ; then
          523  +		IBM_REV=`/usr/bin/oslevel`
          524  +	else
          525  +		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
          526  +	fi
          527  +	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
          528  +	exit ;;
          529  +    *:AIX:2:3)
          530  +	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
          531  +		eval $set_cc_for_build
          532  +		sed 's/^		//' << EOF >$dummy.c
          533  +		#include <sys/systemcfg.h>
          534  +
          535  +		main()
          536  +			{
          537  +			if (!__power_pc())
          538  +				exit(1);
          539  +			puts("powerpc-ibm-aix3.2.5");
          540  +			exit(0);
          541  +			}
          542  +EOF
          543  +		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
          544  +		then
          545  +			echo "$SYSTEM_NAME"
          546  +		else
          547  +			echo rs6000-ibm-aix3.2.5
          548  +		fi
          549  +	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
          550  +		echo rs6000-ibm-aix3.2.4
          551  +	else
          552  +		echo rs6000-ibm-aix3.2
          553  +	fi
          554  +	exit ;;
          555  +    *:AIX:*:[456])
          556  +	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
          557  +	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
          558  +		IBM_ARCH=rs6000
          559  +	else
          560  +		IBM_ARCH=powerpc
          561  +	fi
          562  +	if [ -x /usr/bin/oslevel ] ; then
          563  +		IBM_REV=`/usr/bin/oslevel`
          564  +	else
          565  +		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
          566  +	fi
          567  +	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
          568  +	exit ;;
          569  +    *:AIX:*:*)
          570  +	echo rs6000-ibm-aix
          571  +	exit ;;
          572  +    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
          573  +	echo romp-ibm-bsd4.4
          574  +	exit ;;
          575  +    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
          576  +	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
          577  +	exit ;;                             # report: romp-ibm BSD 4.3
          578  +    *:BOSX:*:*)
          579  +	echo rs6000-bull-bosx
          580  +	exit ;;
          581  +    DPX/2?00:B.O.S.:*:*)
          582  +	echo m68k-bull-sysv3
          583  +	exit ;;
          584  +    9000/[34]??:4.3bsd:1.*:*)
          585  +	echo m68k-hp-bsd
          586  +	exit ;;
          587  +    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
          588  +	echo m68k-hp-bsd4.4
          589  +	exit ;;
          590  +    9000/[34678]??:HP-UX:*:*)
          591  +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
          592  +	case "${UNAME_MACHINE}" in
          593  +	    9000/31? )            HP_ARCH=m68000 ;;
          594  +	    9000/[34]?? )         HP_ARCH=m68k ;;
          595  +	    9000/[678][0-9][0-9])
          596  +		if [ -x /usr/bin/getconf ]; then
          597  +		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
          598  +                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
          599  +                    case "${sc_cpu_version}" in
          600  +                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
          601  +                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
          602  +                      532)                      # CPU_PA_RISC2_0
          603  +                        case "${sc_kernel_bits}" in
          604  +                          32) HP_ARCH="hppa2.0n" ;;
          605  +                          64) HP_ARCH="hppa2.0w" ;;
          606  +			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
          607  +                        esac ;;
          608  +                    esac
          609  +		fi
          610  +		if [ "${HP_ARCH}" = "" ]; then
          611  +		    eval $set_cc_for_build
          612  +		    sed 's/^              //' << EOF >$dummy.c
          613  +
          614  +              #define _HPUX_SOURCE
          615  +              #include <stdlib.h>
          616  +              #include <unistd.h>
          617  +
          618  +              int main ()
          619  +              {
          620  +              #if defined(_SC_KERNEL_BITS)
          621  +                  long bits = sysconf(_SC_KERNEL_BITS);
          622  +              #endif
          623  +                  long cpu  = sysconf (_SC_CPU_VERSION);
          624  +
          625  +                  switch (cpu)
          626  +              	{
          627  +              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
          628  +              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
          629  +              	case CPU_PA_RISC2_0:
          630  +              #if defined(_SC_KERNEL_BITS)
          631  +              	    switch (bits)
          632  +              		{
          633  +              		case 64: puts ("hppa2.0w"); break;
          634  +              		case 32: puts ("hppa2.0n"); break;
          635  +              		default: puts ("hppa2.0"); break;
          636  +              		} break;
          637  +              #else  /* !defined(_SC_KERNEL_BITS) */
          638  +              	    puts ("hppa2.0"); break;
          639  +              #endif
          640  +              	default: puts ("hppa1.0"); break;
          641  +              	}
          642  +                  exit (0);
          643  +              }
          644  +EOF
          645  +		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
          646  +		    test -z "$HP_ARCH" && HP_ARCH=hppa
          647  +		fi ;;
          648  +	esac
          649  +	if [ ${HP_ARCH} = "hppa2.0w" ]
          650  +	then
          651  +	    eval $set_cc_for_build
          652  +
          653  +	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
          654  +	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
          655  +	    # generating 64-bit code.  GNU and HP use different nomenclature:
          656  +	    #
          657  +	    # $ CC_FOR_BUILD=cc ./config.guess
          658  +	    # => hppa2.0w-hp-hpux11.23
          659  +	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
          660  +	    # => hppa64-hp-hpux11.23
          661  +
          662  +	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
          663  +		grep -q __LP64__
          664  +	    then
          665  +		HP_ARCH="hppa2.0w"
          666  +	    else
          667  +		HP_ARCH="hppa64"
          668  +	    fi
          669  +	fi
          670  +	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
          671  +	exit ;;
          672  +    ia64:HP-UX:*:*)
          673  +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
          674  +	echo ia64-hp-hpux${HPUX_REV}
          675  +	exit ;;
          676  +    3050*:HI-UX:*:*)
          677  +	eval $set_cc_for_build
          678  +	sed 's/^	//' << EOF >$dummy.c
          679  +	#include <unistd.h>
          680  +	int
          681  +	main ()
          682  +	{
          683  +	  long cpu = sysconf (_SC_CPU_VERSION);
          684  +	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
          685  +	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
          686  +	     results, however.  */
          687  +	  if (CPU_IS_PA_RISC (cpu))
          688  +	    {
          689  +	      switch (cpu)
          690  +		{
          691  +		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
          692  +		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
          693  +		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
          694  +		  default: puts ("hppa-hitachi-hiuxwe2"); break;
          695  +		}
          696  +	    }
          697  +	  else if (CPU_IS_HP_MC68K (cpu))
          698  +	    puts ("m68k-hitachi-hiuxwe2");
          699  +	  else puts ("unknown-hitachi-hiuxwe2");
          700  +	  exit (0);
          701  +	}
          702  +EOF
          703  +	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
          704  +		{ echo "$SYSTEM_NAME"; exit; }
          705  +	echo unknown-hitachi-hiuxwe2
          706  +	exit ;;
          707  +    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
          708  +	echo hppa1.1-hp-bsd
          709  +	exit ;;
          710  +    9000/8??:4.3bsd:*:*)
          711  +	echo hppa1.0-hp-bsd
          712  +	exit ;;
          713  +    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
          714  +	echo hppa1.0-hp-mpeix
          715  +	exit ;;
          716  +    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
          717  +	echo hppa1.1-hp-osf
          718  +	exit ;;
          719  +    hp8??:OSF1:*:*)
          720  +	echo hppa1.0-hp-osf
          721  +	exit ;;
          722  +    i*86:OSF1:*:*)
          723  +	if [ -x /usr/sbin/sysversion ] ; then
          724  +	    echo ${UNAME_MACHINE}-unknown-osf1mk
          725  +	else
          726  +	    echo ${UNAME_MACHINE}-unknown-osf1
          727  +	fi
          728  +	exit ;;
          729  +    parisc*:Lites*:*:*)
          730  +	echo hppa1.1-hp-lites
          731  +	exit ;;
          732  +    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
          733  +	echo c1-convex-bsd
          734  +        exit ;;
          735  +    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
          736  +	if getsysinfo -f scalar_acc
          737  +	then echo c32-convex-bsd
          738  +	else echo c2-convex-bsd
          739  +	fi
          740  +        exit ;;
          741  +    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
          742  +	echo c34-convex-bsd
          743  +        exit ;;
          744  +    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
          745  +	echo c38-convex-bsd
          746  +        exit ;;
          747  +    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
          748  +	echo c4-convex-bsd
          749  +        exit ;;
          750  +    CRAY*Y-MP:*:*:*)
          751  +	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
          752  +	exit ;;
          753  +    CRAY*[A-Z]90:*:*:*)
          754  +	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
          755  +	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
          756  +	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
          757  +	      -e 's/\.[^.]*$/.X/'
          758  +	exit ;;
          759  +    CRAY*TS:*:*:*)
          760  +	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
          761  +	exit ;;
          762  +    CRAY*T3E:*:*:*)
          763  +	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
          764  +	exit ;;
          765  +    CRAY*SV1:*:*:*)
          766  +	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
          767  +	exit ;;
          768  +    *:UNICOS/mp:*:*)
          769  +	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
          770  +	exit ;;
          771  +    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
          772  +	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
          773  +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
          774  +        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
          775  +        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
          776  +        exit ;;
          777  +    5000:UNIX_System_V:4.*:*)
          778  +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
          779  +        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
          780  +        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
          781  +	exit ;;
          782  +    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
          783  +	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
          784  +	exit ;;
          785  +    sparc*:BSD/OS:*:*)
          786  +	echo sparc-unknown-bsdi${UNAME_RELEASE}
          787  +	exit ;;
          788  +    *:BSD/OS:*:*)
          789  +	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
          790  +	exit ;;
          791  +    *:FreeBSD:*:*)
          792  +	case ${UNAME_MACHINE} in
          793  +	    pc98)
          794  +		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
          795  +	    amd64)
          796  +		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
          797  +	    *)
          798  +		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
          799  +	esac
          800  +	exit ;;
          801  +    i*:CYGWIN*:*)
          802  +	echo ${UNAME_MACHINE}-pc-cygwin
          803  +	exit ;;
          804  +    *:MINGW*:*)
          805  +	echo ${UNAME_MACHINE}-pc-mingw32
          806  +	exit ;;
          807  +    i*:windows32*:*)
          808  +    	# uname -m includes "-pc" on this system.
          809  +    	echo ${UNAME_MACHINE}-mingw32
          810  +	exit ;;
          811  +    i*:PW*:*)
          812  +	echo ${UNAME_MACHINE}-pc-pw32
          813  +	exit ;;
          814  +    *:Interix*:*)
          815  +    	case ${UNAME_MACHINE} in
          816  +	    x86)
          817  +		echo i586-pc-interix${UNAME_RELEASE}
          818  +		exit ;;
          819  +	    authenticamd | genuineintel | EM64T)
          820  +		echo x86_64-unknown-interix${UNAME_RELEASE}
          821  +		exit ;;
          822  +	    IA64)
          823  +		echo ia64-unknown-interix${UNAME_RELEASE}
          824  +		exit ;;
          825  +	esac ;;
          826  +    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
          827  +	echo i${UNAME_MACHINE}-pc-mks
          828  +	exit ;;
          829  +    8664:Windows_NT:*)
          830  +	echo x86_64-pc-mks
          831  +	exit ;;
          832  +    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
          833  +	# How do we know it's Interix rather than the generic POSIX subsystem?
          834  +	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
          835  +	# UNAME_MACHINE based on the output of uname instead of i386?
          836  +	echo i586-pc-interix
          837  +	exit ;;
          838  +    i*:UWIN*:*)
          839  +	echo ${UNAME_MACHINE}-pc-uwin
          840  +	exit ;;
          841  +    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
          842  +	echo x86_64-unknown-cygwin
          843  +	exit ;;
          844  +    p*:CYGWIN*:*)
          845  +	echo powerpcle-unknown-cygwin
          846  +	exit ;;
          847  +    prep*:SunOS:5.*:*)
          848  +	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
          849  +	exit ;;
          850  +    *:GNU:*:*)
          851  +	# the GNU system
          852  +	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
          853  +	exit ;;
          854  +    *:GNU/*:*:*)
          855  +	# other systems with GNU libc and userland
          856  +	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
          857  +	exit ;;
          858  +    i*86:Minix:*:*)
          859  +	echo ${UNAME_MACHINE}-pc-minix
          860  +	exit ;;
          861  +    alpha:Linux:*:*)
          862  +	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
          863  +	  EV5)   UNAME_MACHINE=alphaev5 ;;
          864  +	  EV56)  UNAME_MACHINE=alphaev56 ;;
          865  +	  PCA56) UNAME_MACHINE=alphapca56 ;;
          866  +	  PCA57) UNAME_MACHINE=alphapca56 ;;
          867  +	  EV6)   UNAME_MACHINE=alphaev6 ;;
          868  +	  EV67)  UNAME_MACHINE=alphaev67 ;;
          869  +	  EV68*) UNAME_MACHINE=alphaev68 ;;
          870  +        esac
          871  +	objdump --private-headers /bin/sh | grep -q ld.so.1
          872  +	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
          873  +	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
          874  +	exit ;;
          875  +    arm*:Linux:*:*)
          876  +	eval $set_cc_for_build
          877  +	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
          878  +	    | grep -q __ARM_EABI__
          879  +	then
          880  +	    echo ${UNAME_MACHINE}-unknown-linux-gnu
          881  +	else
          882  +	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
          883  +	fi
          884  +	exit ;;
          885  +    avr32*:Linux:*:*)
          886  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          887  +	exit ;;
          888  +    cris:Linux:*:*)
          889  +	echo cris-axis-linux-gnu
          890  +	exit ;;
          891  +    crisv32:Linux:*:*)
          892  +	echo crisv32-axis-linux-gnu
          893  +	exit ;;
          894  +    frv:Linux:*:*)
          895  +    	echo frv-unknown-linux-gnu
          896  +	exit ;;
          897  +    i*86:Linux:*:*)
          898  +	LIBC=gnu
          899  +	eval $set_cc_for_build
          900  +	sed 's/^	//' << EOF >$dummy.c
          901  +	#ifdef __dietlibc__
          902  +	LIBC=dietlibc
          903  +	#endif
          904  +EOF
          905  +	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
          906  +	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
          907  +	exit ;;
          908  +    ia64:Linux:*:*)
          909  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          910  +	exit ;;
          911  +    m32r*:Linux:*:*)
          912  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          913  +	exit ;;
          914  +    m68*:Linux:*:*)
          915  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          916  +	exit ;;
          917  +    mips:Linux:*:* | mips64:Linux:*:*)
          918  +	eval $set_cc_for_build
          919  +	sed 's/^	//' << EOF >$dummy.c
          920  +	#undef CPU
          921  +	#undef ${UNAME_MACHINE}
          922  +	#undef ${UNAME_MACHINE}el
          923  +	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
          924  +	CPU=${UNAME_MACHINE}el
          925  +	#else
          926  +	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
          927  +	CPU=${UNAME_MACHINE}
          928  +	#else
          929  +	CPU=
          930  +	#endif
          931  +	#endif
          932  +EOF
          933  +	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
          934  +	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
          935  +	;;
          936  +    or32:Linux:*:*)
          937  +	echo or32-unknown-linux-gnu
          938  +	exit ;;
          939  +    padre:Linux:*:*)
          940  +	echo sparc-unknown-linux-gnu
          941  +	exit ;;
          942  +    parisc64:Linux:*:* | hppa64:Linux:*:*)
          943  +	echo hppa64-unknown-linux-gnu
          944  +	exit ;;
          945  +    parisc:Linux:*:* | hppa:Linux:*:*)
          946  +	# Look for CPU level
          947  +	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
          948  +	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
          949  +	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
          950  +	  *)    echo hppa-unknown-linux-gnu ;;
          951  +	esac
          952  +	exit ;;
          953  +    ppc64:Linux:*:*)
          954  +	echo powerpc64-unknown-linux-gnu
          955  +	exit ;;
          956  +    ppc:Linux:*:*)
          957  +	echo powerpc-unknown-linux-gnu
          958  +	exit ;;
          959  +    s390:Linux:*:* | s390x:Linux:*:*)
          960  +	echo ${UNAME_MACHINE}-ibm-linux
          961  +	exit ;;
          962  +    sh64*:Linux:*:*)
          963  +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
          964  +	exit ;;
          965  +    sh*:Linux:*:*)
          966  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          967  +	exit ;;
          968  +    sparc:Linux:*:* | sparc64:Linux:*:*)
          969  +	echo ${UNAME_MACHINE}-unknown-linux-gnu
          970  +	exit ;;
          971  +    vax:Linux:*:*)
          972  +	echo ${UNAME_MACHINE}-dec-linux-gnu
          973  +	exit ;;
          974  +    x86_64:Linux:*:*)
          975  +	echo x86_64-unknown-linux-gnu
          976  +	exit ;;
          977  +    xtensa*:Linux:*:*)
          978  +    	echo ${UNAME_MACHINE}-unknown-linux-gnu
          979  +	exit ;;
          980  +    i*86:DYNIX/ptx:4*:*)
          981  +	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
          982  +	# earlier versions are messed up and put the nodename in both
          983  +	# sysname and nodename.
          984  +	echo i386-sequent-sysv4
          985  +	exit ;;
          986  +    i*86:UNIX_SV:4.2MP:2.*)
          987  +        # Unixware is an offshoot of SVR4, but it has its own version
          988  +        # number series starting with 2...
          989  +        # I am not positive that other SVR4 systems won't match this,
          990  +	# I just have to hope.  -- rms.
          991  +        # Use sysv4.2uw... so that sysv4* matches it.
          992  +	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
          993  +	exit ;;
          994  +    i*86:OS/2:*:*)
          995  +	# If we were able to find `uname', then EMX Unix compatibility
          996  +	# is probably installed.
          997  +	echo ${UNAME_MACHINE}-pc-os2-emx
          998  +	exit ;;
          999  +    i*86:XTS-300:*:STOP)
         1000  +	echo ${UNAME_MACHINE}-unknown-stop
         1001  +	exit ;;
         1002  +    i*86:atheos:*:*)
         1003  +	echo ${UNAME_MACHINE}-unknown-atheos
         1004  +	exit ;;
         1005  +    i*86:syllable:*:*)
         1006  +	echo ${UNAME_MACHINE}-pc-syllable
         1007  +	exit ;;
         1008  +    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
         1009  +	echo i386-unknown-lynxos${UNAME_RELEASE}
         1010  +	exit ;;
         1011  +    i*86:*DOS:*:*)
         1012  +	echo ${UNAME_MACHINE}-pc-msdosdjgpp
         1013  +	exit ;;
         1014  +    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
         1015  +	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
         1016  +	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
         1017  +		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
         1018  +	else
         1019  +		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
         1020  +	fi
         1021  +	exit ;;
         1022  +    i*86:*:5:[678]*)
         1023  +    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
         1024  +	case `/bin/uname -X | grep "^Machine"` in
         1025  +	    *486*)	     UNAME_MACHINE=i486 ;;
         1026  +	    *Pentium)	     UNAME_MACHINE=i586 ;;
         1027  +	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
         1028  +	esac
         1029  +	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
         1030  +	exit ;;
         1031  +    i*86:*:3.2:*)
         1032  +	if test -f /usr/options/cb.name; then
         1033  +		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
         1034  +		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
         1035  +	elif /bin/uname -X 2>/dev/null >/dev/null ; then
         1036  +		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
         1037  +		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
         1038  +		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
         1039  +			&& UNAME_MACHINE=i586
         1040  +		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
         1041  +			&& UNAME_MACHINE=i686
         1042  +		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
         1043  +			&& UNAME_MACHINE=i686
         1044  +		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
         1045  +	else
         1046  +		echo ${UNAME_MACHINE}-pc-sysv32
         1047  +	fi
         1048  +	exit ;;
         1049  +    pc:*:*:*)
         1050  +	# Left here for compatibility:
         1051  +        # uname -m prints for DJGPP always 'pc', but it prints nothing about
         1052  +        # the processor, so we play safe by assuming i586.
         1053  +	# Note: whatever this is, it MUST be the same as what config.sub
         1054  +	# prints for the "djgpp" host, or else GDB configury will decide that
         1055  +	# this is a cross-build.
         1056  +	echo i586-pc-msdosdjgpp
         1057  +        exit ;;
         1058  +    Intel:Mach:3*:*)
         1059  +	echo i386-pc-mach3
         1060  +	exit ;;
         1061  +    paragon:*:*:*)
         1062  +	echo i860-intel-osf1
         1063  +	exit ;;
         1064  +    i860:*:4.*:*) # i860-SVR4
         1065  +	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
         1066  +	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
         1067  +	else # Add other i860-SVR4 vendors below as they are discovered.
         1068  +	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
         1069  +	fi
         1070  +	exit ;;
         1071  +    mini*:CTIX:SYS*5:*)
         1072  +	# "miniframe"
         1073  +	echo m68010-convergent-sysv
         1074  +	exit ;;
         1075  +    mc68k:UNIX:SYSTEM5:3.51m)
         1076  +	echo m68k-convergent-sysv
         1077  +	exit ;;
         1078  +    M680?0:D-NIX:5.3:*)
         1079  +	echo m68k-diab-dnix
         1080  +	exit ;;
         1081  +    M68*:*:R3V[5678]*:*)
         1082  +	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
         1083  +    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
         1084  +	OS_REL=''
         1085  +	test -r /etc/.relid \
         1086  +	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
         1087  +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
         1088  +	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
         1089  +	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
         1090  +	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
         1091  +    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
         1092  +        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
         1093  +          && { echo i486-ncr-sysv4; exit; } ;;
         1094  +    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
         1095  +	OS_REL='.3'
         1096  +	test -r /etc/.relid \
         1097  +	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
         1098  +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
         1099  +	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
         1100  +	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
         1101  +	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
         1102  +	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
         1103  +	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
         1104  +    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
         1105  +	echo m68k-unknown-lynxos${UNAME_RELEASE}
         1106  +	exit ;;
         1107  +    mc68030:UNIX_System_V:4.*:*)
         1108  +	echo m68k-atari-sysv4
         1109  +	exit ;;
         1110  +    TSUNAMI:LynxOS:2.*:*)
         1111  +	echo sparc-unknown-lynxos${UNAME_RELEASE}
         1112  +	exit ;;
         1113  +    rs6000:LynxOS:2.*:*)
         1114  +	echo rs6000-unknown-lynxos${UNAME_RELEASE}
         1115  +	exit ;;
         1116  +    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
         1117  +	echo powerpc-unknown-lynxos${UNAME_RELEASE}
         1118  +	exit ;;
         1119  +    SM[BE]S:UNIX_SV:*:*)
         1120  +	echo mips-dde-sysv${UNAME_RELEASE}
         1121  +	exit ;;
         1122  +    RM*:ReliantUNIX-*:*:*)
         1123  +	echo mips-sni-sysv4
         1124  +	exit ;;
         1125  +    RM*:SINIX-*:*:*)
         1126  +	echo mips-sni-sysv4
         1127  +	exit ;;
         1128  +    *:SINIX-*:*:*)
         1129  +	if uname -p 2>/dev/null >/dev/null ; then
         1130  +		UNAME_MACHINE=`(uname -p) 2>/dev/null`
         1131  +		echo ${UNAME_MACHINE}-sni-sysv4
         1132  +	else
         1133  +		echo ns32k-sni-sysv
         1134  +	fi
         1135  +	exit ;;
         1136  +    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
         1137  +                      # says <Richard.M.Bartel@ccMail.Census.GOV>
         1138  +        echo i586-unisys-sysv4
         1139  +        exit ;;
         1140  +    *:UNIX_System_V:4*:FTX*)
         1141  +	# From Gerald Hewes <hewes@openmarket.com>.
         1142  +	# How about differentiating between stratus architectures? -djm
         1143  +	echo hppa1.1-stratus-sysv4
         1144  +	exit ;;
         1145  +    *:*:*:FTX*)
         1146  +	# From seanf@swdc.stratus.com.
         1147  +	echo i860-stratus-sysv4
         1148  +	exit ;;
         1149  +    i*86:VOS:*:*)
         1150  +	# From Paul.Green@stratus.com.
         1151  +	echo ${UNAME_MACHINE}-stratus-vos
         1152  +	exit ;;
         1153  +    *:VOS:*:*)
         1154  +	# From Paul.Green@stratus.com.
         1155  +	echo hppa1.1-stratus-vos
         1156  +	exit ;;
         1157  +    mc68*:A/UX:*:*)
         1158  +	echo m68k-apple-aux${UNAME_RELEASE}
         1159  +	exit ;;
         1160  +    news*:NEWS-OS:6*:*)
         1161  +	echo mips-sony-newsos6
         1162  +	exit ;;
         1163  +    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
         1164  +	if [ -d /usr/nec ]; then
         1165  +	        echo mips-nec-sysv${UNAME_RELEASE}
         1166  +	else
         1167  +	        echo mips-unknown-sysv${UNAME_RELEASE}
         1168  +	fi
         1169  +        exit ;;
         1170  +    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
         1171  +	echo powerpc-be-beos
         1172  +	exit ;;
         1173  +    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
         1174  +	echo powerpc-apple-beos
         1175  +	exit ;;
         1176  +    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
         1177  +	echo i586-pc-beos
         1178  +	exit ;;
         1179  +    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
         1180  +	echo i586-pc-haiku
         1181  +	exit ;;
         1182  +    SX-4:SUPER-UX:*:*)
         1183  +	echo sx4-nec-superux${UNAME_RELEASE}
         1184  +	exit ;;
         1185  +    SX-5:SUPER-UX:*:*)
         1186  +	echo sx5-nec-superux${UNAME_RELEASE}
         1187  +	exit ;;
         1188  +    SX-6:SUPER-UX:*:*)
         1189  +	echo sx6-nec-superux${UNAME_RELEASE}
         1190  +	exit ;;
         1191  +    SX-7:SUPER-UX:*:*)
         1192  +	echo sx7-nec-superux${UNAME_RELEASE}
         1193  +	exit ;;
         1194  +    SX-8:SUPER-UX:*:*)
         1195  +	echo sx8-nec-superux${UNAME_RELEASE}
         1196  +	exit ;;
         1197  +    SX-8R:SUPER-UX:*:*)
         1198  +	echo sx8r-nec-superux${UNAME_RELEASE}
         1199  +	exit ;;
         1200  +    Power*:Rhapsody:*:*)
         1201  +	echo powerpc-apple-rhapsody${UNAME_RELEASE}
         1202  +	exit ;;
         1203  +    *:Rhapsody:*:*)
         1204  +	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
         1205  +	exit ;;
         1206  +    *:Darwin:*:*)
         1207  +	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
         1208  +	case $UNAME_PROCESSOR in
         1209  +	    i386)
         1210  +		eval $set_cc_for_build
         1211  +		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
         1212  +		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
         1213  +		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
         1214  +		      grep IS_64BIT_ARCH >/dev/null
         1215  +		  then
         1216  +		      UNAME_PROCESSOR="x86_64"
         1217  +		  fi
         1218  +		fi ;;
         1219  +	    unknown) UNAME_PROCESSOR=powerpc ;;
         1220  +	esac
         1221  +	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
         1222  +	exit ;;
         1223  +    *:procnto*:*:* | *:QNX:[0123456789]*:*)
         1224  +	UNAME_PROCESSOR=`uname -p`
         1225  +	if test "$UNAME_PROCESSOR" = "x86"; then
         1226  +		UNAME_PROCESSOR=i386
         1227  +		UNAME_MACHINE=pc
         1228  +	fi
         1229  +	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
         1230  +	exit ;;
         1231  +    *:QNX:*:4*)
         1232  +	echo i386-pc-qnx
         1233  +	exit ;;
         1234  +    NSE-?:NONSTOP_KERNEL:*:*)
         1235  +	echo nse-tandem-nsk${UNAME_RELEASE}
         1236  +	exit ;;
         1237  +    NSR-?:NONSTOP_KERNEL:*:*)
         1238  +	echo nsr-tandem-nsk${UNAME_RELEASE}
         1239  +	exit ;;
         1240  +    *:NonStop-UX:*:*)
         1241  +	echo mips-compaq-nonstopux
         1242  +	exit ;;
         1243  +    BS2000:POSIX*:*:*)
         1244  +	echo bs2000-siemens-sysv
         1245  +	exit ;;
         1246  +    DS/*:UNIX_System_V:*:*)
         1247  +	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
         1248  +	exit ;;
         1249  +    *:Plan9:*:*)
         1250  +	# "uname -m" is not consistent, so use $cputype instead. 386
         1251  +	# is converted to i386 for consistency with other x86
         1252  +	# operating systems.
         1253  +	if test "$cputype" = "386"; then
         1254  +	    UNAME_MACHINE=i386
         1255  +	else
         1256  +	    UNAME_MACHINE="$cputype"
         1257  +	fi
         1258  +	echo ${UNAME_MACHINE}-unknown-plan9
         1259  +	exit ;;
         1260  +    *:TOPS-10:*:*)
         1261  +	echo pdp10-unknown-tops10
         1262  +	exit ;;
         1263  +    *:TENEX:*:*)
         1264  +	echo pdp10-unknown-tenex
         1265  +	exit ;;
         1266  +    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
         1267  +	echo pdp10-dec-tops20
         1268  +	exit ;;
         1269  +    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
         1270  +	echo pdp10-xkl-tops20
         1271  +	exit ;;
         1272  +    *:TOPS-20:*:*)
         1273  +	echo pdp10-unknown-tops20
         1274  +	exit ;;
         1275  +    *:ITS:*:*)
         1276  +	echo pdp10-unknown-its
         1277  +	exit ;;
         1278  +    SEI:*:*:SEIUX)
         1279  +        echo mips-sei-seiux${UNAME_RELEASE}
         1280  +	exit ;;
         1281  +    *:DragonFly:*:*)
         1282  +	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
         1283  +	exit ;;
         1284  +    *:*VMS:*:*)
         1285  +    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
         1286  +	case "${UNAME_MACHINE}" in
         1287  +	    A*) echo alpha-dec-vms ; exit ;;
         1288  +	    I*) echo ia64-dec-vms ; exit ;;
         1289  +	    V*) echo vax-dec-vms ; exit ;;
         1290  +	esac ;;
         1291  +    *:XENIX:*:SysV)
         1292  +	echo i386-pc-xenix
         1293  +	exit ;;
         1294  +    i*86:skyos:*:*)
         1295  +	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
         1296  +	exit ;;
         1297  +    i*86:rdos:*:*)
         1298  +	echo ${UNAME_MACHINE}-pc-rdos
         1299  +	exit ;;
         1300  +    i*86:AROS:*:*)
         1301  +	echo ${UNAME_MACHINE}-pc-aros
         1302  +	exit ;;
         1303  +esac
         1304  +
         1305  +#echo '(No uname command or uname output not recognized.)' 1>&2
         1306  +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
         1307  +
         1308  +eval $set_cc_for_build
         1309  +cat >$dummy.c <<EOF
         1310  +#ifdef _SEQUENT_
         1311  +# include <sys/types.h>
         1312  +# include <sys/utsname.h>
         1313  +#endif
         1314  +main ()
         1315  +{
         1316  +#if defined (sony)
         1317  +#if defined (MIPSEB)
         1318  +  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
         1319  +     I don't know....  */
         1320  +  printf ("mips-sony-bsd\n"); exit (0);
         1321  +#else
         1322  +#include <sys/param.h>
         1323  +  printf ("m68k-sony-newsos%s\n",
         1324  +#ifdef NEWSOS4
         1325  +          "4"
         1326  +#else
         1327  +	  ""
         1328  +#endif
         1329  +         ); exit (0);
         1330  +#endif
         1331  +#endif
         1332  +
         1333  +#if defined (__arm) && defined (__acorn) && defined (__unix)
         1334  +  printf ("arm-acorn-riscix\n"); exit (0);
         1335  +#endif
         1336  +
         1337  +#if defined (hp300) && !defined (hpux)
         1338  +  printf ("m68k-hp-bsd\n"); exit (0);
         1339  +#endif
         1340  +
         1341  +#if defined (NeXT)
         1342  +#if !defined (__ARCHITECTURE__)
         1343  +#define __ARCHITECTURE__ "m68k"
         1344  +#endif
         1345  +  int version;
         1346  +  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
         1347  +  if (version < 4)
         1348  +    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
         1349  +  else
         1350  +    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
         1351  +  exit (0);
         1352  +#endif
         1353  +
         1354  +#if defined (MULTIMAX) || defined (n16)
         1355  +#if defined (UMAXV)
         1356  +  printf ("ns32k-encore-sysv\n"); exit (0);
         1357  +#else
         1358  +#if defined (CMU)
         1359  +  printf ("ns32k-encore-mach\n"); exit (0);
         1360  +#else
         1361  +  printf ("ns32k-encore-bsd\n"); exit (0);
         1362  +#endif
         1363  +#endif
         1364  +#endif
         1365  +
         1366  +#if defined (__386BSD__)
         1367  +  printf ("i386-pc-bsd\n"); exit (0);
         1368  +#endif
         1369  +
         1370  +#if defined (sequent)
         1371  +#if defined (i386)
         1372  +  printf ("i386-sequent-dynix\n"); exit (0);
         1373  +#endif
         1374  +#if defined (ns32000)
         1375  +  printf ("ns32k-sequent-dynix\n"); exit (0);
         1376  +#endif
         1377  +#endif
         1378  +
         1379  +#if defined (_SEQUENT_)
         1380  +    struct utsname un;
         1381  +
         1382  +    uname(&un);
         1383  +
         1384  +    if (strncmp(un.version, "V2", 2) == 0) {
         1385  +	printf ("i386-sequent-ptx2\n"); exit (0);
         1386  +    }
         1387  +    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
         1388  +	printf ("i386-sequent-ptx1\n"); exit (0);
         1389  +    }
         1390  +    printf ("i386-sequent-ptx\n"); exit (0);
         1391  +
         1392  +#endif
         1393  +
         1394  +#if defined (vax)
         1395  +# if !defined (ultrix)
         1396  +#  include <sys/param.h>
         1397  +#  if defined (BSD)
         1398  +#   if BSD == 43
         1399  +      printf ("vax-dec-bsd4.3\n"); exit (0);
         1400  +#   else
         1401  +#    if BSD == 199006
         1402  +      printf ("vax-dec-bsd4.3reno\n"); exit (0);
         1403  +#    else
         1404  +      printf ("vax-dec-bsd\n"); exit (0);
         1405  +#    endif
         1406  +#   endif
         1407  +#  else
         1408  +    printf ("vax-dec-bsd\n"); exit (0);
         1409  +#  endif
         1410  +# else
         1411  +    printf ("vax-dec-ultrix\n"); exit (0);
         1412  +# endif
         1413  +#endif
         1414  +
         1415  +#if defined (alliant) && defined (i860)
         1416  +  printf ("i860-alliant-bsd\n"); exit (0);
         1417  +#endif
         1418  +
         1419  +  exit (1);
         1420  +}
         1421  +EOF
         1422  +
         1423  +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
         1424  +	{ echo "$SYSTEM_NAME"; exit; }
         1425  +
         1426  +# Apollos put the system type in the environment.
         1427  +
         1428  +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
         1429  +
         1430  +# Convex versions that predate uname can use getsysinfo(1)
         1431  +
         1432  +if [ -x /usr/convex/getsysinfo ]
         1433  +then
         1434  +    case `getsysinfo -f cpu_type` in
         1435  +    c1*)
         1436  +	echo c1-convex-bsd
         1437  +	exit ;;
         1438  +    c2*)
         1439  +	if getsysinfo -f scalar_acc
         1440  +	then echo c32-convex-bsd
         1441  +	else echo c2-convex-bsd
         1442  +	fi
         1443  +	exit ;;
         1444  +    c34*)
         1445  +	echo c34-convex-bsd
         1446  +	exit ;;
         1447  +    c38*)
         1448  +	echo c38-convex-bsd
         1449  +	exit ;;
         1450  +    c4*)
         1451  +	echo c4-convex-bsd
         1452  +	exit ;;
         1453  +    esac
         1454  +fi
         1455  +
         1456  +cat >&2 <<EOF
         1457  +$0: unable to guess system type
         1458  +
         1459  +This script, last modified $timestamp, has failed to recognize
         1460  +the operating system you are using. It is advised that you
         1461  +download the most up to date version of the config scripts from
         1462  +
         1463  +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
         1464  +and
         1465  +  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
         1466  +
         1467  +If the version you run ($0) is already up to date, please
         1468  +send the following data and any information you think might be
         1469  +pertinent to <config-patches@gnu.org> in order to provide the needed
         1470  +information to handle your system.
         1471  +
         1472  +config.guess timestamp = $timestamp
         1473  +
         1474  +uname -m = `(uname -m) 2>/dev/null || echo unknown`
         1475  +uname -r = `(uname -r) 2>/dev/null || echo unknown`
         1476  +uname -s = `(uname -s) 2>/dev/null || echo unknown`
         1477  +uname -v = `(uname -v) 2>/dev/null || echo unknown`
         1478  +
         1479  +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
         1480  +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
         1481  +
         1482  +hostinfo               = `(hostinfo) 2>/dev/null`
         1483  +/bin/universe          = `(/bin/universe) 2>/dev/null`
         1484  +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
         1485  +/bin/arch              = `(/bin/arch) 2>/dev/null`
         1486  +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
         1487  +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
         1488  +
         1489  +UNAME_MACHINE = ${UNAME_MACHINE}
         1490  +UNAME_RELEASE = ${UNAME_RELEASE}
         1491  +UNAME_SYSTEM  = ${UNAME_SYSTEM}
         1492  +UNAME_VERSION = ${UNAME_VERSION}
         1493  +EOF
         1494  +
         1495  +exit 1
         1496  +
         1497  +# Local variables:
         1498  +# eval: (add-hook 'write-file-hooks 'time-stamp)
         1499  +# time-stamp-start: "timestamp='"
         1500  +# time-stamp-format: "%:y-%02m-%02d"
         1501  +# time-stamp-end: "'"
         1502  +# End:

Added autoconf/config.sub.

            1  +#! /bin/sh
            2  +# Configuration validation subroutine script.
            3  +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
            4  +#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
            5  +#   Free Software Foundation, Inc.
            6  +
            7  +timestamp='2010-01-22'
            8  +
            9  +# This file is (in principle) common to ALL GNU software.
           10  +# The presence of a machine in this file suggests that SOME GNU software
           11  +# can handle that machine.  It does not imply ALL GNU software can.
           12  +#
           13  +# This file is free software; you can redistribute it and/or modify
           14  +# it under the terms of the GNU General Public License as published by
           15  +# the Free Software Foundation; either version 2 of the License, or
           16  +# (at your option) any later version.
           17  +#
           18  +# This program is distributed in the hope that it will be useful,
           19  +# but WITHOUT ANY WARRANTY; without even the implied warranty of
           20  +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
           21  +# GNU General Public License for more details.
           22  +#
           23  +# You should have received a copy of the GNU General Public License
           24  +# along with this program; if not, write to the Free Software
           25  +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
           26  +# 02110-1301, USA.
           27  +#
           28  +# As a special exception to the GNU General Public License, if you
           29  +# distribute this file as part of a program that contains a
           30  +# configuration script generated by Autoconf, you may include it under
           31  +# the same distribution terms that you use for the rest of that program.
           32  +
           33  +
           34  +# Please send patches to <config-patches@gnu.org>.  Submit a context
           35  +# diff and a properly formatted GNU ChangeLog entry.
           36  +#
           37  +# Configuration subroutine to validate and canonicalize a configuration type.
           38  +# Supply the specified configuration type as an argument.
           39  +# If it is invalid, we print an error message on stderr and exit with code 1.
           40  +# Otherwise, we print the canonical config type on stdout and succeed.
           41  +
           42  +# You can get the latest version of this script from:
           43  +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
           44  +
           45  +# This file is supposed to be the same for all GNU packages
           46  +# and recognize all the CPU types, system types and aliases
           47  +# that are meaningful with *any* GNU software.
           48  +# Each package is responsible for reporting which valid configurations
           49  +# it does not support.  The user should be able to distinguish
           50  +# a failure to support a valid configuration from a meaningless
           51  +# configuration.
           52  +
           53  +# The goal of this file is to map all the various variations of a given
           54  +# machine specification into a single specification in the form:
           55  +#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
           56  +# or in some cases, the newer four-part form:
           57  +#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
           58  +# It is wrong to echo any other type of specification.
           59  +
           60  +me=`echo "$0" | sed -e 's,.*/,,'`
           61  +
           62  +usage="\
           63  +Usage: $0 [OPTION] CPU-MFR-OPSYS
           64  +       $0 [OPTION] ALIAS
           65  +
           66  +Canonicalize a configuration name.
           67  +
           68  +Operation modes:
           69  +  -h, --help         print this help, then exit
           70  +  -t, --time-stamp   print date of last modification, then exit
           71  +  -v, --version      print version number, then exit
           72  +
           73  +Report bugs and patches to <config-patches@gnu.org>."
           74  +
           75  +version="\
           76  +GNU config.sub ($timestamp)
           77  +
           78  +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
           79  +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
           80  +Software Foundation, Inc.
           81  +
           82  +This is free software; see the source for copying conditions.  There is NO
           83  +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
           84  +
           85  +help="
           86  +Try \`$me --help' for more information."
           87  +
           88  +# Parse command line
           89  +while test $# -gt 0 ; do
           90  +  case $1 in
           91  +    --time-stamp | --time* | -t )
           92  +       echo "$timestamp" ; exit ;;
           93  +    --version | -v )
           94  +       echo "$version" ; exit ;;
           95  +    --help | --h* | -h )
           96  +       echo "$usage"; exit ;;
           97  +    -- )     # Stop option processing
           98  +       shift; break ;;
           99  +    - )	# Use stdin as input.
          100  +       break ;;
          101  +    -* )
          102  +       echo "$me: invalid option $1$help"
          103  +       exit 1 ;;
          104  +
          105  +    *local*)
          106  +       # First pass through any local machine types.
          107  +       echo $1
          108  +       exit ;;
          109  +
          110  +    * )
          111  +       break ;;
          112  +  esac
          113  +done
          114  +
          115  +case $# in
          116  + 0) echo "$me: missing argument$help" >&2
          117  +    exit 1;;
          118  + 1) ;;
          119  + *) echo "$me: too many arguments$help" >&2
          120  +    exit 1;;
          121  +esac
          122  +
          123  +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
          124  +# Here we must recognize all the valid KERNEL-OS combinations.
          125  +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
          126  +case $maybe_os in
          127  +  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
          128  +  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
          129  +  kopensolaris*-gnu* | \
          130  +  storm-chaos* | os2-emx* | rtmk-nova*)
          131  +    os=-$maybe_os
          132  +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
          133  +    ;;
          134  +  *)
          135  +    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
          136  +    if [ $basic_machine != $1 ]
          137  +    then os=`echo $1 | sed 's/.*-/-/'`
          138  +    else os=; fi
          139  +    ;;
          140  +esac
          141  +
          142  +### Let's recognize common machines as not being operating systems so
          143  +### that things like config.sub decstation-3100 work.  We also
          144  +### recognize some manufacturers as not being operating systems, so we
          145  +### can provide default operating systems below.
          146  +case $os in
          147  +	-sun*os*)
          148  +		# Prevent following clause from handling this invalid input.
          149  +		;;
          150  +	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
          151  +	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
          152  +	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
          153  +	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
          154  +	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
          155  +	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
          156  +	-apple | -axis | -knuth | -cray | -microblaze)
          157  +		os=
          158  +		basic_machine=$1
          159  +		;;
          160  +        -bluegene*)
          161  +	        os=-cnk
          162  +		;;
          163  +	-sim | -cisco | -oki | -wec | -winbond)
          164  +		os=
          165  +		basic_machine=$1
          166  +		;;
          167  +	-scout)
          168  +		;;
          169  +	-wrs)
          170  +		os=-vxworks
          171  +		basic_machine=$1
          172  +		;;
          173  +	-chorusos*)
          174  +		os=-chorusos
          175  +		basic_machine=$1
          176  +		;;
          177  + 	-chorusrdb)
          178  + 		os=-chorusrdb
          179  +		basic_machine=$1
          180  + 		;;
          181  +	-hiux*)
          182  +		os=-hiuxwe2
          183  +		;;
          184  +	-sco6)
          185  +		os=-sco5v6
          186  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          187  +		;;
          188  +	-sco5)
          189  +		os=-sco3.2v5
          190  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          191  +		;;
          192  +	-sco4)
          193  +		os=-sco3.2v4
          194  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          195  +		;;
          196  +	-sco3.2.[4-9]*)
          197  +		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
          198  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          199  +		;;
          200  +	-sco3.2v[4-9]*)
          201  +		# Don't forget version if it is 3.2v4 or newer.
          202  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          203  +		;;
          204  +	-sco5v6*)
          205  +		# Don't forget version if it is 3.2v4 or newer.
          206  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          207  +		;;
          208  +	-sco*)
          209  +		os=-sco3.2v2
          210  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          211  +		;;
          212  +	-udk*)
          213  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          214  +		;;
          215  +	-isc)
          216  +		os=-isc2.2
          217  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          218  +		;;
          219  +	-clix*)
          220  +		basic_machine=clipper-intergraph
          221  +		;;
          222  +	-isc*)
          223  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
          224  +		;;
          225  +	-lynx*)
          226  +		os=-lynxos
          227  +		;;
          228  +	-ptx*)
          229  +		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
          230  +		;;
          231  +	-windowsnt*)
          232  +		os=`echo $os | sed -e 's/windowsnt/winnt/'`
          233  +		;;
          234  +	-psos*)
          235  +		os=-psos
          236  +		;;
          237  +	-mint | -mint[0-9]*)
          238  +		basic_machine=m68k-atari
          239  +		os=-mint
          240  +		;;
          241  +esac
          242  +
          243  +# Decode aliases for certain CPU-COMPANY combinations.
          244  +case $basic_machine in
          245  +	# Recognize the basic CPU types without company name.
          246  +	# Some are omitted here because they have special meanings below.
          247  +	1750a | 580 \
          248  +	| a29k \
          249  +	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
          250  +	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
          251  +	| am33_2.0 \
          252  +	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
          253  +	| bfin \
          254  +	| c4x | clipper \
          255  +	| d10v | d30v | dlx | dsp16xx \
          256  +	| fido | fr30 | frv \
          257  +	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
          258  +	| i370 | i860 | i960 | ia64 \
          259  +	| ip2k | iq2000 \
          260  +	| lm32 \
          261  +	| m32c | m32r | m32rle | m68000 | m68k | m88k \
          262  +	| maxq | mb | microblaze | mcore | mep | metag \
          263  +	| mips | mipsbe | mipseb | mipsel | mipsle \
          264  +	| mips16 \
          265  +	| mips64 | mips64el \
          266  +	| mips64octeon | mips64octeonel \
          267  +	| mips64orion | mips64orionel \
          268  +	| mips64r5900 | mips64r5900el \
          269  +	| mips64vr | mips64vrel \
          270  +	| mips64vr4100 | mips64vr4100el \
          271  +	| mips64vr4300 | mips64vr4300el \
          272  +	| mips64vr5000 | mips64vr5000el \
          273  +	| mips64vr5900 | mips64vr5900el \
          274  +	| mipsisa32 | mipsisa32el \
          275  +	| mipsisa32r2 | mipsisa32r2el \
          276  +	| mipsisa64 | mipsisa64el \
          277  +	| mipsisa64r2 | mipsisa64r2el \
          278  +	| mipsisa64sb1 | mipsisa64sb1el \
          279  +	| mipsisa64sr71k | mipsisa64sr71kel \
          280  +	| mipstx39 | mipstx39el \
          281  +	| mn10200 | mn10300 \
          282  +	| moxie \
          283  +	| mt \
          284  +	| msp430 \
          285  +	| nios | nios2 \
          286  +	| ns16k | ns32k \
          287  +	| or32 \
          288  +	| pdp10 | pdp11 | pj | pjl \
          289  +	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
          290  +	| pyramid \
          291  +	| rx \
          292  +	| score \
          293  +	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
          294  +	| sh64 | sh64le \
          295  +	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
          296  +	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
          297  +	| spu | strongarm \
          298  +	| tahoe | thumb | tic4x | tic80 | tron \
          299  +	| ubicom32 \
          300  +	| v850 | v850e \
          301  +	| we32k \
          302  +	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
          303  +	| z8k | z80)
          304  +		basic_machine=$basic_machine-unknown
          305  +		;;
          306  +	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
          307  +		# Motorola 68HC11/12.
          308  +		basic_machine=$basic_machine-unknown
          309  +		os=-none
          310  +		;;
          311  +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
          312  +		;;
          313  +	ms1)
          314  +		basic_machine=mt-unknown
          315  +		;;
          316  +
          317  +	# We use `pc' rather than `unknown'
          318  +	# because (1) that's what they normally are, and
          319  +	# (2) the word "unknown" tends to confuse beginning users.
          320  +	i*86 | x86_64)
          321  +	  basic_machine=$basic_machine-pc
          322  +	  ;;
          323  +	# Object if more than one company name word.
          324  +	*-*-*)
          325  +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
          326  +		exit 1
          327  +		;;
          328  +	# Recognize the basic CPU types with company name.
          329  +	580-* \
          330  +	| a29k-* \
          331  +	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
          332  +	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
          333  +	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
          334  +	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
          335  +	| avr-* | avr32-* \
          336  +	| bfin-* | bs2000-* \
          337  +	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
          338  +	| clipper-* | craynv-* | cydra-* \
          339  +	| d10v-* | d30v-* | dlx-* \
          340  +	| elxsi-* \
          341  +	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
          342  +	| h8300-* | h8500-* \
          343  +	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
          344  +	| i*86-* | i860-* | i960-* | ia64-* \
          345  +	| ip2k-* | iq2000-* \
          346  +	| lm32-* \
          347  +	| m32c-* | m32r-* | m32rle-* \
          348  +	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
          349  +	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
          350  +	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
          351  +	| mips16-* \
          352  +	| mips64-* | mips64el-* \
          353  +	| mips64octeon-* | mips64octeonel-* \
          354  +	| mips64orion-* | mips64orionel-* \
          355  +	| mips64r5900-* | mips64r5900el-* \
          356  +	| mips64vr-* | mips64vrel-* \
          357  +	| mips64vr4100-* | mips64vr4100el-* \
          358  +	| mips64vr4300-* | mips64vr4300el-* \
          359  +	| mips64vr5000-* | mips64vr5000el-* \
          360  +	| mips64vr5900-* | mips64vr5900el-* \
          361  +	| mipsisa32-* | mipsisa32el-* \
          362  +	| mipsisa32r2-* | mipsisa32r2el-* \
          363  +	| mipsisa64-* | mipsisa64el-* \
          364  +	| mipsisa64r2-* | mipsisa64r2el-* \
          365  +	| mipsisa64sb1-* | mipsisa64sb1el-* \
          366  +	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
          367  +	| mipstx39-* | mipstx39el-* \
          368  +	| mmix-* \
          369  +	| mt-* \
          370  +	| msp430-* \
          371  +	| nios-* | nios2-* \
          372  +	| none-* | np1-* | ns16k-* | ns32k-* \
          373  +	| orion-* \
          374  +	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
          375  +	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
          376  +	| pyramid-* \
          377  +	| romp-* | rs6000-* | rx-* \
          378  +	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
          379  +	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
          380  +	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
          381  +	| sparclite-* \
          382  +	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
          383  +	| tahoe-* | thumb-* \
          384  +	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
          385  +	| tile-* | tilegx-* \
          386  +	| tron-* \
          387  +	| ubicom32-* \
          388  +	| v850-* | v850e-* | vax-* \
          389  +	| we32k-* \
          390  +	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
          391  +	| xstormy16-* | xtensa*-* \
          392  +	| ymp-* \
          393  +	| z8k-* | z80-*)
          394  +		;;
          395  +	# Recognize the basic CPU types without company name, with glob match.
          396  +	xtensa*)
          397  +		basic_machine=$basic_machine-unknown
          398  +		;;
          399  +	# Recognize the various machine names and aliases which stand
          400  +	# for a CPU type and a company and sometimes even an OS.
          401  +	386bsd)
          402  +		basic_machine=i386-unknown
          403  +		os=-bsd
          404  +		;;
          405  +	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
          406  +		basic_machine=m68000-att
          407  +		;;
          408  +	3b*)
          409  +		basic_machine=we32k-att
          410  +		;;
          411  +	a29khif)
          412  +		basic_machine=a29k-amd
          413  +		os=-udi
          414  +		;;
          415  +    	abacus)
          416  +		basic_machine=abacus-unknown
          417  +		;;
          418  +	adobe68k)
          419  +		basic_machine=m68010-adobe
          420  +		os=-scout
          421  +		;;
          422  +	alliant | fx80)
          423  +		basic_machine=fx80-alliant
          424  +		;;
          425  +	altos | altos3068)
          426  +		basic_machine=m68k-altos
          427  +		;;
          428  +	am29k)
          429  +		basic_machine=a29k-none
          430  +		os=-bsd
          431  +		;;
          432  +	amd64)
          433  +		basic_machine=x86_64-pc
          434  +		;;
          435  +	amd64-*)
          436  +		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
          437  +		;;
          438  +	amdahl)
          439  +		basic_machine=580-amdahl
          440  +		os=-sysv
          441  +		;;
          442  +	amiga | amiga-*)
          443  +		basic_machine=m68k-unknown
          444  +		;;
          445  +	amigaos | amigados)
          446  +		basic_machine=m68k-unknown
          447  +		os=-amigaos
          448  +		;;
          449  +	amigaunix | amix)
          450  +		basic_machine=m68k-unknown
          451  +		os=-sysv4
          452  +		;;
          453  +	apollo68)
          454  +		basic_machine=m68k-apollo
          455  +		os=-sysv
          456  +		;;
          457  +	apollo68bsd)
          458  +		basic_machine=m68k-apollo
          459  +		os=-bsd
          460  +		;;
          461  +	aros)
          462  +		basic_machine=i386-pc
          463  +		os=-aros
          464  +		;;
          465  +	aux)
          466  +		basic_machine=m68k-apple
          467  +		os=-aux
          468  +		;;
          469  +	balance)
          470  +		basic_machine=ns32k-sequent
          471  +		os=-dynix
          472  +		;;
          473  +	blackfin)
          474  +		basic_machine=bfin-unknown
          475  +		os=-linux
          476  +		;;
          477  +	blackfin-*)
          478  +		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
          479  +		os=-linux
          480  +		;;
          481  +	bluegene*)
          482  +		basic_machine=powerpc-ibm
          483  +		os=-cnk
          484  +		;;
          485  +	c90)
          486  +		basic_machine=c90-cray
          487  +		os=-unicos
          488  +		;;
          489  +        cegcc)
          490  +		basic_machine=arm-unknown
          491  +		os=-cegcc
          492  +		;;
          493  +	convex-c1)
          494  +		basic_machine=c1-convex
          495  +		os=-bsd
          496  +		;;
          497  +	convex-c2)
          498  +		basic_machine=c2-convex
          499  +		os=-bsd
          500  +		;;
          501  +	convex-c32)
          502  +		basic_machine=c32-convex
          503  +		os=-bsd
          504  +		;;
          505  +	convex-c34)
          506  +		basic_machine=c34-convex
          507  +		os=-bsd
          508  +		;;
          509  +	convex-c38)
          510  +		basic_machine=c38-convex
          511  +		os=-bsd
          512  +		;;
          513  +	cray | j90)
          514  +		basic_machine=j90-cray
          515  +		os=-unicos
          516  +		;;
          517  +	craynv)
          518  +		basic_machine=craynv-cray
          519  +		os=-unicosmp
          520  +		;;
          521  +	cr16)
          522  +		basic_machine=cr16-unknown
          523  +		os=-elf
          524  +		;;
          525  +	crds | unos)
          526  +		basic_machine=m68k-crds
          527  +		;;
          528  +	crisv32 | crisv32-* | etraxfs*)
          529  +		basic_machine=crisv32-axis
          530  +		;;
          531  +	cris | cris-* | etrax*)
          532  +		basic_machine=cris-axis
          533  +		;;
          534  +	crx)
          535  +		basic_machine=crx-unknown
          536  +		os=-elf
          537  +		;;
          538  +	da30 | da30-*)
          539  +		basic_machine=m68k-da30
          540  +		;;
          541  +	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
          542  +		basic_machine=mips-dec
          543  +		;;
          544  +	decsystem10* | dec10*)
          545  +		basic_machine=pdp10-dec
          546  +		os=-tops10
          547  +		;;
          548  +	decsystem20* | dec20*)
          549  +		basic_machine=pdp10-dec
          550  +		os=-tops20
          551  +		;;
          552  +	delta | 3300 | motorola-3300 | motorola-delta \
          553  +	      | 3300-motorola | delta-motorola)
          554  +		basic_machine=m68k-motorola
          555  +		;;
          556  +	delta88)
          557  +		basic_machine=m88k-motorola
          558  +		os=-sysv3
          559  +		;;
          560  +	dicos)
          561  +		basic_machine=i686-pc
          562  +		os=-dicos
          563  +		;;
          564  +	djgpp)
          565  +		basic_machine=i586-pc
          566  +		os=-msdosdjgpp
          567  +		;;
          568  +	dpx20 | dpx20-*)
          569  +		basic_machine=rs6000-bull
          570  +		os=-bosx
          571  +		;;
          572  +	dpx2* | dpx2*-bull)
          573  +		basic_machine=m68k-bull
          574  +		os=-sysv3
          575  +		;;
          576  +	ebmon29k)
          577  +		basic_machine=a29k-amd
          578  +		os=-ebmon
          579  +		;;
          580  +	elxsi)
          581  +		basic_machine=elxsi-elxsi
          582  +		os=-bsd
          583  +		;;
          584  +	encore | umax | mmax)
          585  +		basic_machine=ns32k-encore
          586  +		;;
          587  +	es1800 | OSE68k | ose68k | ose | OSE)
          588  +		basic_machine=m68k-ericsson
          589  +		os=-ose
          590  +		;;
          591  +	fx2800)
          592  +		basic_machine=i860-alliant
          593  +		;;
          594  +	genix)
          595  +		basic_machine=ns32k-ns
          596  +		;;
          597  +	gmicro)
          598  +		basic_machine=tron-gmicro
          599  +		os=-sysv
          600  +		;;
          601  +	go32)
          602  +		basic_machine=i386-pc
          603  +		os=-go32
          604  +		;;
          605  +	h3050r* | hiux*)
          606  +		basic_machine=hppa1.1-hitachi
          607  +		os=-hiuxwe2
          608  +		;;
          609  +	h8300hms)
          610  +		basic_machine=h8300-hitachi
          611  +		os=-hms
          612  +		;;
          613  +	h8300xray)
          614  +		basic_machine=h8300-hitachi
          615  +		os=-xray
          616  +		;;
          617  +	h8500hms)
          618  +		basic_machine=h8500-hitachi
          619  +		os=-hms
          620  +		;;
          621  +	harris)
          622  +		basic_machine=m88k-harris
          623  +		os=-sysv3
          624  +		;;
          625  +	hp300-*)
          626  +		basic_machine=m68k-hp
          627  +		;;
          628  +	hp300bsd)
          629  +		basic_machine=m68k-hp
          630  +		os=-bsd
          631  +		;;
          632  +	hp300hpux)
          633  +		basic_machine=m68k-hp
          634  +		os=-hpux
          635  +		;;
          636  +	hp3k9[0-9][0-9] | hp9[0-9][0-9])
          637  +		basic_machine=hppa1.0-hp
          638  +		;;
          639  +	hp9k2[0-9][0-9] | hp9k31[0-9])
          640  +		basic_machine=m68000-hp
          641  +		;;
          642  +	hp9k3[2-9][0-9])
          643  +		basic_machine=m68k-hp
          644  +		;;
          645  +	hp9k6[0-9][0-9] | hp6[0-9][0-9])
          646  +		basic_machine=hppa1.0-hp
          647  +		;;
          648  +	hp9k7[0-79][0-9] | hp7[0-79][0-9])
          649  +		basic_machine=hppa1.1-hp
          650  +		;;
          651  +	hp9k78[0-9] | hp78[0-9])
          652  +		# FIXME: really hppa2.0-hp
          653  +		basic_machine=hppa1.1-hp
          654  +		;;
          655  +	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
          656  +		# FIXME: really hppa2.0-hp
          657  +		basic_machine=hppa1.1-hp
          658  +		;;
          659  +	hp9k8[0-9][13679] | hp8[0-9][13679])
          660  +		basic_machine=hppa1.1-hp
          661  +		;;
          662  +	hp9k8[0-9][0-9] | hp8[0-9][0-9])
          663  +		basic_machine=hppa1.0-hp
          664  +		;;
          665  +	hppa-next)
          666  +		os=-nextstep3
          667  +		;;
          668  +	hppaosf)
          669  +		basic_machine=hppa1.1-hp
          670  +		os=-osf
          671  +		;;
          672  +	hppro)
          673  +		basic_machine=hppa1.1-hp
          674  +		os=-proelf
          675  +		;;
          676  +	i370-ibm* | ibm*)
          677  +		basic_machine=i370-ibm
          678  +		;;
          679  +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
          680  +	i*86v32)
          681  +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
          682  +		os=-sysv32
          683  +		;;
          684  +	i*86v4*)
          685  +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
          686  +		os=-sysv4
          687  +		;;
          688  +	i*86v)
          689  +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
          690  +		os=-sysv
          691  +		;;
          692  +	i*86sol2)
          693  +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
          694  +		os=-solaris2
          695  +		;;
          696  +	i386mach)
          697  +		basic_machine=i386-mach
          698  +		os=-mach
          699  +		;;
          700  +	i386-vsta | vsta)
          701  +		basic_machine=i386-unknown
          702  +		os=-vsta
          703  +		;;
          704  +	iris | iris4d)
          705  +		basic_machine=mips-sgi
          706  +		case $os in
          707  +		    -irix*)
          708  +			;;
          709  +		    *)
          710  +			os=-irix4
          711  +			;;
          712  +		esac
          713  +		;;
          714  +	isi68 | isi)
          715  +		basic_machine=m68k-isi
          716  +		os=-sysv
          717  +		;;
          718  +	m68knommu)
          719  +		basic_machine=m68k-unknown
          720  +		os=-linux
          721  +		;;
          722  +	m68knommu-*)
          723  +		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
          724  +		os=-linux
          725  +		;;
          726  +	m88k-omron*)
          727  +		basic_machine=m88k-omron
          728  +		;;
          729  +	magnum | m3230)
          730  +		basic_machine=mips-mips
          731  +		os=-sysv
          732  +		;;
          733  +	merlin)
          734  +		basic_machine=ns32k-utek
          735  +		os=-sysv
          736  +		;;
          737  +        microblaze)
          738  +		basic_machine=microblaze-xilinx
          739  +		;;
          740  +	mingw32)
          741  +		basic_machine=i386-pc
          742  +		os=-mingw32
          743  +		;;
          744  +	mingw32ce)
          745  +		basic_machine=arm-unknown
          746  +		os=-mingw32ce
          747  +		;;
          748  +	miniframe)
          749  +		basic_machine=m68000-convergent
          750  +		;;
          751  +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
          752  +		basic_machine=m68k-atari
          753  +		os=-mint
          754  +		;;
          755  +	mips3*-*)
          756  +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
          757  +		;;
          758  +	mips3*)
          759  +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
          760  +		;;
          761  +	monitor)
          762  +		basic_machine=m68k-rom68k
          763  +		os=-coff
          764  +		;;
          765  +	morphos)
          766  +		basic_machine=powerpc-unknown
          767  +		os=-morphos
          768  +		;;
          769  +	msdos)
          770  +		basic_machine=i386-pc
          771  +		os=-msdos
          772  +		;;
          773  +	ms1-*)
          774  +		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
          775  +		;;
          776  +	mvs)
          777  +		basic_machine=i370-ibm
          778  +		os=-mvs
          779  +		;;
          780  +	ncr3000)
          781  +		basic_machine=i486-ncr
          782  +		os=-sysv4
          783  +		;;
          784  +	netbsd386)
          785  +		basic_machine=i386-unknown
          786  +		os=-netbsd
          787  +		;;
          788  +	netwinder)
          789  +		basic_machine=armv4l-rebel
          790  +		os=-linux
          791  +		;;
          792  +	news | news700 | news800 | news900)
          793  +		basic_machine=m68k-sony
          794  +		os=-newsos
          795  +		;;
          796  +	news1000)
          797  +		basic_machine=m68030-sony
          798  +		os=-newsos
          799  +		;;
          800  +	news-3600 | risc-news)
          801  +		basic_machine=mips-sony
          802  +		os=-newsos
          803  +		;;
          804  +	necv70)
          805  +		basic_machine=v70-nec
          806  +		os=-sysv
          807  +		;;
          808  +	next | m*-next )
          809  +		basic_machine=m68k-next
          810  +		case $os in
          811  +		    -nextstep* )
          812  +			;;
          813  +		    -ns2*)
          814  +		      os=-nextstep2
          815  +			;;
          816  +		    *)
          817  +		      os=-nextstep3
          818  +			;;
          819  +		esac
          820  +		;;
          821  +	nh3000)
          822  +		basic_machine=m68k-harris
          823  +		os=-cxux
          824  +		;;
          825  +	nh[45]000)
          826  +		basic_machine=m88k-harris
          827  +		os=-cxux
          828  +		;;
          829  +	nindy960)
          830  +		basic_machine=i960-intel
          831  +		os=-nindy
          832  +		;;
          833  +	mon960)
          834  +		basic_machine=i960-intel
          835  +		os=-mon960
          836  +		;;
          837  +	nonstopux)
          838  +		basic_machine=mips-compaq
          839  +		os=-nonstopux
          840  +		;;
          841  +	np1)
          842  +		basic_machine=np1-gould
          843  +		;;
          844  +	nsr-tandem)
          845  +		basic_machine=nsr-tandem
          846  +		;;
          847  +	op50n-* | op60c-*)
          848  +		basic_machine=hppa1.1-oki
          849  +		os=-proelf
          850  +		;;
          851  +	openrisc | openrisc-*)
          852  +		basic_machine=or32-unknown
          853  +		;;
          854  +	os400)
          855  +		basic_machine=powerpc-ibm
          856  +		os=-os400
          857  +		;;
          858  +	OSE68000 | ose68000)
          859  +		basic_machine=m68000-ericsson
          860  +		os=-ose
          861  +		;;
          862  +	os68k)
          863  +		basic_machine=m68k-none
          864  +		os=-os68k
          865  +		;;
          866  +	pa-hitachi)
          867  +		basic_machine=hppa1.1-hitachi
          868  +		os=-hiuxwe2
          869  +		;;
          870  +	paragon)
          871  +		basic_machine=i860-intel
          872  +		os=-osf
          873  +		;;
          874  +	parisc)
          875  +		basic_machine=hppa-unknown
          876  +		os=-linux
          877  +		;;
          878  +	parisc-*)
          879  +		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
          880  +		os=-linux
          881  +		;;
          882  +	pbd)
          883  +		basic_machine=sparc-tti
          884  +		;;
          885  +	pbb)
          886  +		basic_machine=m68k-tti
          887  +		;;
          888  +	pc532 | pc532-*)
          889  +		basic_machine=ns32k-pc532
          890  +		;;
          891  +	pc98)
          892  +		basic_machine=i386-pc
          893  +		;;
          894  +	pc98-*)
          895  +		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
          896  +		;;
          897  +	pentium | p5 | k5 | k6 | nexgen | viac3)
          898  +		basic_machine=i586-pc
          899  +		;;
          900  +	pentiumpro | p6 | 6x86 | athlon | athlon_*)
          901  +		basic_machine=i686-pc
          902  +		;;
          903  +	pentiumii | pentium2 | pentiumiii | pentium3)
          904  +		basic_machine=i686-pc
          905  +		;;
          906  +	pentium4)
          907  +		basic_machine=i786-pc
          908  +		;;
          909  +	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
          910  +		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
          911  +		;;
          912  +	pentiumpro-* | p6-* | 6x86-* | athlon-*)
          913  +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
          914  +		;;
          915  +	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
          916  +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
          917  +		;;
          918  +	pentium4-*)
          919  +		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
          920  +		;;
          921  +	pn)
          922  +		basic_machine=pn-gould
          923  +		;;
          924  +	power)	basic_machine=power-ibm
          925  +		;;
          926  +	ppc)	basic_machine=powerpc-unknown
          927  +		;;
          928  +	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
          929  +		;;
          930  +	ppcle | powerpclittle | ppc-le | powerpc-little)
          931  +		basic_machine=powerpcle-unknown
          932  +		;;
          933  +	ppcle-* | powerpclittle-*)
          934  +		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
          935  +		;;
          936  +	ppc64)	basic_machine=powerpc64-unknown
          937  +		;;
          938  +	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
          939  +		;;
          940  +	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
          941  +		basic_machine=powerpc64le-unknown
          942  +		;;
          943  +	ppc64le-* | powerpc64little-*)
          944  +		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
          945  +		;;
          946  +	ps2)
          947  +		basic_machine=i386-ibm
          948  +		;;
          949  +	pw32)
          950  +		basic_machine=i586-unknown
          951  +		os=-pw32
          952  +		;;
          953  +	rdos)
          954  +		basic_machine=i386-pc
          955  +		os=-rdos
          956  +		;;
          957  +	rom68k)
          958  +		basic_machine=m68k-rom68k
          959  +		os=-coff
          960  +		;;
          961  +	rm[46]00)
          962  +		basic_machine=mips-siemens
          963  +		;;
          964  +	rtpc | rtpc-*)
          965  +		basic_machine=romp-ibm
          966  +		;;
          967  +	s390 | s390-*)
          968  +		basic_machine=s390-ibm
          969  +		;;
          970  +	s390x | s390x-*)
          971  +		basic_machine=s390x-ibm
          972  +		;;
          973  +	sa29200)
          974  +		basic_machine=a29k-amd
          975  +		os=-udi
          976  +		;;
          977  +	sb1)
          978  +		basic_machine=mipsisa64sb1-unknown
          979  +		;;
          980  +	sb1el)
          981  +		basic_machine=mipsisa64sb1el-unknown
          982  +		;;
          983  +	sde)
          984  +		basic_machine=mipsisa32-sde
          985  +		os=-elf
          986  +		;;
          987  +	sei)
          988  +		basic_machine=mips-sei
          989  +		os=-seiux
          990  +		;;
          991  +	sequent)
          992  +		basic_machine=i386-sequent
          993  +		;;
          994  +	sh)
          995  +		basic_machine=sh-hitachi
          996  +		os=-hms
          997  +		;;
          998  +	sh5el)
          999  +		basic_machine=sh5le-unknown
         1000  +		;;
         1001  +	sh64)
         1002  +		basic_machine=sh64-unknown
         1003  +		;;
         1004  +	sparclite-wrs | simso-wrs)
         1005  +		basic_machine=sparclite-wrs
         1006  +		os=-vxworks
         1007  +		;;
         1008  +	sps7)
         1009  +		basic_machine=m68k-bull
         1010  +		os=-sysv2
         1011  +		;;
         1012  +	spur)
         1013  +		basic_machine=spur-unknown
         1014  +		;;
         1015  +	st2000)
         1016  +		basic_machine=m68k-tandem
         1017  +		;;
         1018  +	stratus)
         1019  +		basic_machine=i860-stratus
         1020  +		os=-sysv4
         1021  +		;;
         1022  +	sun2)
         1023  +		basic_machine=m68000-sun
         1024  +		;;
         1025  +	sun2os3)
         1026  +		basic_machine=m68000-sun
         1027  +		os=-sunos3
         1028  +		;;
         1029  +	sun2os4)
         1030  +		basic_machine=m68000-sun
         1031  +		os=-sunos4
         1032  +		;;
         1033  +	sun3os3)
         1034  +		basic_machine=m68k-sun
         1035  +		os=-sunos3
         1036  +		;;
         1037  +	sun3os4)
         1038  +		basic_machine=m68k-sun
         1039  +		os=-sunos4
         1040  +		;;
         1041  +	sun4os3)
         1042  +		basic_machine=sparc-sun
         1043  +		os=-sunos3
         1044  +		;;
         1045  +	sun4os4)
         1046  +		basic_machine=sparc-sun
         1047  +		os=-sunos4
         1048  +		;;
         1049  +	sun4sol2)
         1050  +		basic_machine=sparc-sun
         1051  +		os=-solaris2
         1052  +		;;
         1053  +	sun3 | sun3-*)
         1054  +		basic_machine=m68k-sun
         1055  +		;;
         1056  +	sun4)
         1057  +		basic_machine=sparc-sun
         1058  +		;;
         1059  +	sun386 | sun386i | roadrunner)
         1060  +		basic_machine=i386-sun
         1061  +		;;
         1062  +	sv1)
         1063  +		basic_machine=sv1-cray
         1064  +		os=-unicos
         1065  +		;;
         1066  +	symmetry)
         1067  +		basic_machine=i386-sequent
         1068  +		os=-dynix
         1069  +		;;
         1070  +	t3e)
         1071  +		basic_machine=alphaev5-cray
         1072  +		os=-unicos
         1073  +		;;
         1074  +	t90)
         1075  +		basic_machine=t90-cray
         1076  +		os=-unicos
         1077  +		;;
         1078  +	tic54x | c54x*)
         1079  +		basic_machine=tic54x-unknown
         1080  +		os=-coff
         1081  +		;;
         1082  +	tic55x | c55x*)
         1083  +		basic_machine=tic55x-unknown
         1084  +		os=-coff
         1085  +		;;
         1086  +	tic6x | c6x*)
         1087  +		basic_machine=tic6x-unknown
         1088  +		os=-coff
         1089  +		;;
         1090  +        # This must be matched before tile*.
         1091  +        tilegx*)
         1092  +		basic_machine=tilegx-unknown
         1093  +		os=-linux-gnu
         1094  +		;;
         1095  +	tile*)
         1096  +		basic_machine=tile-unknown
         1097  +		os=-linux-gnu
         1098  +		;;
         1099  +	tx39)
         1100  +		basic_machine=mipstx39-unknown
         1101  +		;;
         1102  +	tx39el)
         1103  +		basic_machine=mipstx39el-unknown
         1104  +		;;
         1105  +	toad1)
         1106  +		basic_machine=pdp10-xkl
         1107  +		os=-tops20
         1108  +		;;
         1109  +	tower | tower-32)
         1110  +		basic_machine=m68k-ncr
         1111  +		;;
         1112  +	tpf)
         1113  +		basic_machine=s390x-ibm
         1114  +		os=-tpf
         1115  +		;;
         1116  +	udi29k)
         1117  +		basic_machine=a29k-amd
         1118  +		os=-udi
         1119  +		;;
         1120  +	ultra3)
         1121  +		basic_machine=a29k-nyu
         1122  +		os=-sym1
         1123  +		;;
         1124  +	v810 | necv810)
         1125  +		basic_machine=v810-nec
         1126  +		os=-none
         1127  +		;;
         1128  +	vaxv)
         1129  +		basic_machine=vax-dec
         1130  +		os=-sysv
         1131  +		;;
         1132  +	vms)
         1133  +		basic_machine=vax-dec
         1134  +		os=-vms
         1135  +		;;
         1136  +	vpp*|vx|vx-*)
         1137  +		basic_machine=f301-fujitsu
         1138  +		;;
         1139  +	vxworks960)
         1140  +		basic_machine=i960-wrs
         1141  +		os=-vxworks
         1142  +		;;
         1143  +	vxworks68)
         1144  +		basic_machine=m68k-wrs
         1145  +		os=-vxworks
         1146  +		;;
         1147  +	vxworks29k)
         1148  +		basic_machine=a29k-wrs
         1149  +		os=-vxworks
         1150  +		;;
         1151  +	w65*)
         1152  +		basic_machine=w65-wdc
         1153  +		os=-none
         1154  +		;;
         1155  +	w89k-*)
         1156  +		basic_machine=hppa1.1-winbond
         1157  +		os=-proelf
         1158  +		;;
         1159  +	xbox)
         1160  +		basic_machine=i686-pc
         1161  +		os=-mingw32
         1162  +		;;
         1163  +	xps | xps100)
         1164  +		basic_machine=xps100-honeywell
         1165  +		;;
         1166  +	ymp)
         1167  +		basic_machine=ymp-cray
         1168  +		os=-unicos
         1169  +		;;
         1170  +	z8k-*-coff)
         1171  +		basic_machine=z8k-unknown
         1172  +		os=-sim
         1173  +		;;
         1174  +	z80-*-coff)
         1175  +		basic_machine=z80-unknown
         1176  +		os=-sim
         1177  +		;;
         1178  +	none)
         1179  +		basic_machine=none-none
         1180  +		os=-none
         1181  +		;;
         1182  +
         1183  +# Here we handle the default manufacturer of certain CPU types.  It is in
         1184  +# some cases the only manufacturer, in others, it is the most popular.
         1185  +	w89k)
         1186  +		basic_machine=hppa1.1-winbond
         1187  +		;;
         1188  +	op50n)
         1189  +		basic_machine=hppa1.1-oki
         1190  +		;;
         1191  +	op60c)
         1192  +		basic_machine=hppa1.1-oki
         1193  +		;;
         1194  +	romp)
         1195  +		basic_machine=romp-ibm
         1196  +		;;
         1197  +	mmix)
         1198  +		basic_machine=mmix-knuth
         1199  +		;;
         1200  +	rs6000)
         1201  +		basic_machine=rs6000-ibm
         1202  +		;;
         1203  +	vax)
         1204  +		basic_machine=vax-dec
         1205  +		;;
         1206  +	pdp10)
         1207  +		# there are many clones, so DEC is not a safe bet
         1208  +		basic_machine=pdp10-unknown
         1209  +		;;
         1210  +	pdp11)
         1211  +		basic_machine=pdp11-dec
         1212  +		;;
         1213  +	we32k)
         1214  +		basic_machine=we32k-att
         1215  +		;;
         1216  +	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
         1217  +		basic_machine=sh-unknown
         1218  +		;;
         1219  +	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
         1220  +		basic_machine=sparc-sun
         1221  +		;;
         1222  +	cydra)
         1223  +		basic_machine=cydra-cydrome
         1224  +		;;
         1225  +	orion)
         1226  +		basic_machine=orion-highlevel
         1227  +		;;
         1228  +	orion105)
         1229  +		basic_machine=clipper-highlevel
         1230  +		;;
         1231  +	mac | mpw | mac-mpw)
         1232  +		basic_machine=m68k-apple
         1233  +		;;
         1234  +	pmac | pmac-mpw)
         1235  +		basic_machine=powerpc-apple
         1236  +		;;
         1237  +	*-unknown)
         1238  +		# Make sure to match an already-canonicalized machine name.
         1239  +		;;
         1240  +	*)
         1241  +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
         1242  +		exit 1
         1243  +		;;
         1244  +esac
         1245  +
         1246  +# Here we canonicalize certain aliases for manufacturers.
         1247  +case $basic_machine in
         1248  +	*-digital*)
         1249  +		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
         1250  +		;;
         1251  +	*-commodore*)
         1252  +		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
         1253  +		;;
         1254  +	*)
         1255  +		;;
         1256  +esac
         1257  +
         1258  +# Decode manufacturer-specific aliases for certain operating systems.
         1259  +
         1260  +if [ x"$os" != x"" ]
         1261  +then
         1262  +case $os in
         1263  +        # First match some system type aliases
         1264  +        # that might get confused with valid system types.
         1265  +	# -solaris* is a basic system type, with this one exception.
         1266  +        -auroraux)
         1267  +	        os=-auroraux
         1268  +		;;
         1269  +	-solaris1 | -solaris1.*)
         1270  +		os=`echo $os | sed -e 's|solaris1|sunos4|'`
         1271  +		;;
         1272  +	-solaris)
         1273  +		os=-solaris2
         1274  +		;;
         1275  +	-svr4*)
         1276  +		os=-sysv4
         1277  +		;;
         1278  +	-unixware*)
         1279  +		os=-sysv4.2uw
         1280  +		;;
         1281  +	-gnu/linux*)
         1282  +		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
         1283  +		;;
         1284  +	# First accept the basic system types.
         1285  +	# The portable systems comes first.
         1286  +	# Each alternative MUST END IN A *, to match a version number.
         1287  +	# -sysv* is not here because it comes later, after sysvr4.
         1288  +	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
         1289  +	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
         1290  +	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
         1291  +	      | -sym* | -kopensolaris* \
         1292  +	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
         1293  +	      | -aos* | -aros* \
         1294  +	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
         1295  +	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
         1296  +	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
         1297  +	      | -openbsd* | -solidbsd* \
         1298  +	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
         1299  +	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
         1300  +	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
         1301  +	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
         1302  +	      | -chorusos* | -chorusrdb* | -cegcc* \
         1303  +	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
         1304  +	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
         1305  +	      | -uxpv* | -beos* | -mpeix* | -udk* \
         1306  +	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
         1307  +	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
         1308  +	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
         1309  +	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
         1310  +	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
         1311  +	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
         1312  +	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
         1313  +	# Remember, each alternative MUST END IN *, to match a version number.
         1314  +		;;
         1315  +	-qnx*)
         1316  +		case $basic_machine in
         1317  +		    x86-* | i*86-*)
         1318  +			;;
         1319  +		    *)
         1320  +			os=-nto$os
         1321  +			;;
         1322  +		esac
         1323  +		;;
         1324  +	-nto-qnx*)
         1325  +		;;
         1326  +	-nto*)
         1327  +		os=`echo $os | sed -e 's|nto|nto-qnx|'`
         1328  +		;;
         1329  +	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
         1330  +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
         1331  +	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
         1332  +		;;
         1333  +	-mac*)
         1334  +		os=`echo $os | sed -e 's|mac|macos|'`
         1335  +		;;
         1336  +	-linux-dietlibc)
         1337  +		os=-linux-dietlibc
         1338  +		;;
         1339  +	-linux*)
         1340  +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
         1341  +		;;
         1342  +	-sunos5*)
         1343  +		os=`echo $os | sed -e 's|sunos5|solaris2|'`
         1344  +		;;
         1345  +	-sunos6*)
         1346  +		os=`echo $os | sed -e 's|sunos6|solaris3|'`
         1347  +		;;
         1348  +	-opened*)
         1349  +		os=-openedition
         1350  +		;;
         1351  +        -os400*)
         1352  +		os=-os400
         1353  +		;;
         1354  +	-wince*)
         1355  +		os=-wince
         1356  +		;;
         1357  +	-osfrose*)
         1358  +		os=-osfrose
         1359  +		;;
         1360  +	-osf*)
         1361  +		os=-osf
         1362  +		;;
         1363  +	-utek*)
         1364  +		os=-bsd
         1365  +		;;
         1366  +	-dynix*)
         1367  +		os=-bsd
         1368  +		;;
         1369  +	-acis*)
         1370  +		os=-aos
         1371  +		;;
         1372  +	-atheos*)
         1373  +		os=-atheos
         1374  +		;;
         1375  +	-syllable*)
         1376  +		os=-syllable
         1377  +		;;
         1378  +	-386bsd)
         1379  +		os=-bsd
         1380  +		;;
         1381  +	-ctix* | -uts*)
         1382  +		os=-sysv
         1383  +		;;
         1384  +	-nova*)
         1385  +		os=-rtmk-nova
         1386  +		;;
         1387  +	-ns2 )
         1388  +		os=-nextstep2
         1389  +		;;
         1390  +	-nsk*)
         1391  +		os=-nsk
         1392  +		;;
         1393  +	# Preserve the version number of sinix5.
         1394  +	-sinix5.*)
         1395  +		os=`echo $os | sed -e 's|sinix|sysv|'`
         1396  +		;;
         1397  +	-sinix*)
         1398  +		os=-sysv4
         1399  +		;;
         1400  +        -tpf*)
         1401  +		os=-tpf
         1402  +		;;
         1403  +	-triton*)
         1404  +		os=-sysv3
         1405  +		;;
         1406  +	-oss*)
         1407  +		os=-sysv3
         1408  +		;;
         1409  +	-svr4)
         1410  +		os=-sysv4
         1411  +		;;
         1412  +	-svr3)
         1413  +		os=-sysv3
         1414  +		;;
         1415  +	-sysvr4)
         1416  +		os=-sysv4
         1417  +		;;
         1418  +	# This must come after -sysvr4.
         1419  +	-sysv*)
         1420  +		;;
         1421  +	-ose*)
         1422  +		os=-ose
         1423  +		;;
         1424  +	-es1800*)
         1425  +		os=-ose
         1426  +		;;
         1427  +	-xenix)
         1428  +		os=-xenix
         1429  +		;;
         1430  +	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
         1431  +		os=-mint
         1432  +		;;
         1433  +	-aros*)
         1434  +		os=-aros
         1435  +		;;
         1436  +	-kaos*)
         1437  +		os=-kaos
         1438  +		;;
         1439  +	-zvmoe)
         1440  +		os=-zvmoe
         1441  +		;;
         1442  +	-dicos*)
         1443  +		os=-dicos
         1444  +		;;
         1445  +        -nacl*)
         1446  +	        ;;
         1447  +	-none)
         1448  +		;;
         1449  +	*)
         1450  +		# Get rid of the `-' at the beginning of $os.
         1451  +		os=`echo $os | sed 's/[^-]*-//'`
         1452  +		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
         1453  +		exit 1
         1454  +		;;
         1455  +esac
         1456  +else
         1457  +
         1458  +# Here we handle the default operating systems that come with various machines.
         1459  +# The value should be what the vendor currently ships out the door with their
         1460  +# machine or put another way, the most popular os provided with the machine.
         1461  +
         1462  +# Note that if you're going to try to match "-MANUFACTURER" here (say,
         1463  +# "-sun"), then you have to tell the case statement up towards the top
         1464  +# that MANUFACTURER isn't an operating system.  Otherwise, code above
         1465  +# will signal an error saying that MANUFACTURER isn't an operating
         1466  +# system, and we'll never get to this point.
         1467  +
         1468  +case $basic_machine in
         1469  +        score-*)
         1470  +		os=-elf
         1471  +		;;
         1472  +        spu-*)
         1473  +		os=-elf
         1474  +		;;
         1475  +	*-acorn)
         1476  +		os=-riscix1.2
         1477  +		;;
         1478  +	arm*-rebel)
         1479  +		os=-linux
         1480  +		;;
         1481  +	arm*-semi)
         1482  +		os=-aout
         1483  +		;;
         1484  +        c4x-* | tic4x-*)
         1485  +        	os=-coff
         1486  +		;;
         1487  +	# This must come before the *-dec entry.
         1488  +	pdp10-*)
         1489  +		os=-tops20
         1490  +		;;
         1491  +	pdp11-*)
         1492  +		os=-none
         1493  +		;;
         1494  +	*-dec | vax-*)
         1495  +		os=-ultrix4.2
         1496  +		;;
         1497  +	m68*-apollo)
         1498  +		os=-domain
         1499  +		;;
         1500  +	i386-sun)
         1501  +		os=-sunos4.0.2
         1502  +		;;
         1503  +	m68000-sun)
         1504  +		os=-sunos3
         1505  +		# This also exists in the configure program, but was not the
         1506  +		# default.
         1507  +		# os=-sunos4
         1508  +		;;
         1509  +	m68*-cisco)
         1510  +		os=-aout
         1511  +		;;
         1512  +        mep-*)
         1513  +		os=-elf
         1514  +		;;
         1515  +	mips*-cisco)
         1516  +		os=-elf
         1517  +		;;
         1518  +	mips*-*)
         1519  +		os=-elf
         1520  +		;;
         1521  +	or32-*)
         1522  +		os=-coff
         1523  +		;;
         1524  +	*-tti)	# must be before sparc entry or we get the wrong os.
         1525  +		os=-sysv3
         1526  +		;;
         1527  +	sparc-* | *-sun)
         1528  +		os=-sunos4.1.1
         1529  +		;;
         1530  +	*-be)
         1531  +		os=-beos
         1532  +		;;
         1533  +	*-haiku)
         1534  +		os=-haiku
         1535  +		;;
         1536  +	*-ibm)
         1537  +		os=-aix
         1538  +		;;
         1539  +    	*-knuth)
         1540  +		os=-mmixware
         1541  +		;;
         1542  +	*-wec)
         1543  +		os=-proelf
         1544  +		;;
         1545  +	*-winbond)
         1546  +		os=-proelf
         1547  +		;;
         1548  +	*-oki)
         1549  +		os=-proelf
         1550  +		;;
         1551  +	*-hp)
         1552  +		os=-hpux
         1553  +		;;
         1554  +	*-hitachi)
         1555  +		os=-hiux
         1556  +		;;
         1557  +	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
         1558  +		os=-sysv
         1559  +		;;
         1560  +	*-cbm)
         1561  +		os=-amigaos
         1562  +		;;
         1563  +	*-dg)
         1564  +		os=-dgux
         1565  +		;;
         1566  +	*-dolphin)
         1567  +		os=-sysv3
         1568  +		;;
         1569  +	m68k-ccur)
         1570  +		os=-rtu
         1571  +		;;
         1572  +	m88k-omron*)
         1573  +		os=-luna
         1574  +		;;
         1575  +	*-next )
         1576  +		os=-nextstep
         1577  +		;;
         1578  +	*-sequent)
         1579  +		os=-ptx
         1580  +		;;
         1581  +	*-crds)
         1582  +		os=-unos
         1583  +		;;
         1584  +	*-ns)
         1585  +		os=-genix
         1586  +		;;
         1587  +	i370-*)
         1588  +		os=-mvs
         1589  +		;;
         1590  +	*-next)
         1591  +		os=-nextstep3
         1592  +		;;
         1593  +	*-gould)
         1594  +		os=-sysv
         1595  +		;;
         1596  +	*-highlevel)
         1597  +		os=-bsd
         1598  +		;;
         1599  +	*-encore)
         1600  +		os=-bsd
         1601  +		;;
         1602  +	*-sgi)
         1603  +		os=-irix
         1604  +		;;
         1605  +	*-siemens)
         1606  +		os=-sysv4
         1607  +		;;
         1608  +	*-masscomp)
         1609  +		os=-rtu
         1610  +		;;
         1611  +	f30[01]-fujitsu | f700-fujitsu)
         1612  +		os=-uxpv
         1613  +		;;
         1614  +	*-rom68k)
         1615  +		os=-coff
         1616  +		;;
         1617  +	*-*bug)
         1618  +		os=-coff
         1619  +		;;
         1620  +	*-apple)
         1621  +		os=-macos
         1622  +		;;
         1623  +	*-atari*)
         1624  +		os=-mint
         1625  +		;;
         1626  +	*)
         1627  +		os=-none
         1628  +		;;
         1629  +esac
         1630  +fi
         1631  +
         1632  +# Here we handle the case where we know the os, and the CPU type, but not the
         1633  +# manufacturer.  We pick the logical manufacturer.
         1634  +vendor=unknown
         1635  +case $basic_machine in
         1636  +	*-unknown)
         1637  +		case $os in
         1638  +			-riscix*)
         1639  +				vendor=acorn
         1640  +				;;
         1641  +			-sunos*)
         1642  +				vendor=sun
         1643  +				;;
         1644  +			-cnk*|-aix*)
         1645  +				vendor=ibm
         1646  +				;;
         1647  +			-beos*)
         1648  +				vendor=be
         1649  +				;;
         1650  +			-hpux*)
         1651  +				vendor=hp
         1652  +				;;
         1653  +			-mpeix*)
         1654  +				vendor=hp
         1655  +				;;
         1656  +			-hiux*)
         1657  +				vendor=hitachi
         1658  +				;;
         1659  +			-unos*)
         1660  +				vendor=crds
         1661  +				;;
         1662  +			-dgux*)
         1663  +				vendor=dg
         1664  +				;;
         1665  +			-luna*)
         1666  +				vendor=omron
         1667  +				;;
         1668  +			-genix*)
         1669  +				vendor=ns
         1670  +				;;
         1671  +			-mvs* | -opened*)
         1672  +				vendor=ibm
         1673  +				;;
         1674  +			-os400*)
         1675  +				vendor=ibm
         1676  +				;;
         1677  +			-ptx*)
         1678  +				vendor=sequent
         1679  +				;;
         1680  +			-tpf*)
         1681  +				vendor=ibm
         1682  +				;;
         1683  +			-vxsim* | -vxworks* | -windiss*)
         1684  +				vendor=wrs
         1685  +				;;
         1686  +			-aux*)
         1687  +				vendor=apple
         1688  +				;;
         1689  +			-hms*)
         1690  +				vendor=hitachi
         1691  +				;;
         1692  +			-mpw* | -macos*)
         1693  +				vendor=apple
         1694  +				;;
         1695  +			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
         1696  +				vendor=atari
         1697  +				;;
         1698  +			-vos*)
         1699  +				vendor=stratus
         1700  +				;;
         1701  +		esac
         1702  +		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
         1703  +		;;
         1704  +esac
         1705  +
         1706  +echo $basic_machine$os
         1707  +exit
         1708  +
         1709  +# Local variables:
         1710  +# eval: (add-hook 'write-file-hooks 'time-stamp)
         1711  +# time-stamp-start: "timestamp='"
         1712  +# time-stamp-format: "%:y-%02m-%02d"
         1713  +# time-stamp-end: "'"
         1714  +# End:

Added autoconf/install-sh.

            1  +#!/bin/sh
            2  +# install - install a program, script, or datafile
            3  +
            4  +scriptversion=2009-04-28.21; # UTC
            5  +
            6  +# This originates from X11R5 (mit/util/scripts/install.sh), which was
            7  +# later released in X11R6 (xc/config/util/install.sh) with the
            8  +# following copyright and license.
            9  +#
           10  +# Copyright (C) 1994 X Consortium
           11  +#
           12  +# Permission is hereby granted, free of charge, to any person obtaining a copy
           13  +# of this software and associated documentation files (the "Software"), to
           14  +# deal in the Software without restriction, including without limitation the
           15  +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
           16  +# sell copies of the Software, and to permit persons to whom the Software is
           17  +# furnished to do so, subject to the following conditions:
           18  +#
           19  +# The above copyright notice and this permission notice shall be included in
           20  +# all copies or substantial portions of the Software.
           21  +#
           22  +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
           23  +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
           24  +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
           25  +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
           26  +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
           27  +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
           28  +#
           29  +# Except as contained in this notice, the name of the X Consortium shall not
           30  +# be used in advertising or otherwise to promote the sale, use or other deal-
           31  +# ings in this Software without prior written authorization from the X Consor-
           32  +# tium.
           33  +#
           34  +#
           35  +# FSF changes to this file are in the public domain.
           36  +#
           37  +# Calling this script install-sh is preferred over install.sh, to prevent
           38  +# `make' implicit rules from creating a file called install from it
           39  +# when there is no Makefile.
           40  +#
           41  +# This script is compatible with the BSD install script, but was written
           42  +# from scratch.
           43  +
           44  +nl='
           45  +'
           46  +IFS=" ""	$nl"
           47  +
           48  +# set DOITPROG to echo to test this script
           49  +
           50  +# Don't use :- since 4.3BSD and earlier shells don't like it.
           51  +doit=${DOITPROG-}
           52  +if test -z "$doit"; then
           53  +  doit_exec=exec
           54  +else
           55  +  doit_exec=$doit
           56  +fi
           57  +
           58  +# Put in absolute file names if you don't have them in your path;
           59  +# or use environment vars.
           60  +
           61  +chgrpprog=${CHGRPPROG-chgrp}
           62  +chmodprog=${CHMODPROG-chmod}
           63  +chownprog=${CHOWNPROG-chown}
           64  +cmpprog=${CMPPROG-cmp}
           65  +cpprog=${CPPROG-cp}
           66  +mkdirprog=${MKDIRPROG-mkdir}
           67  +mvprog=${MVPROG-mv}
           68  +rmprog=${RMPROG-rm}
           69  +stripprog=${STRIPPROG-strip}
           70  +
           71  +posix_glob='?'
           72  +initialize_posix_glob='
           73  +  test "$posix_glob" != "?" || {
           74  +    if (set -f) 2>/dev/null; then
           75  +      posix_glob=
           76  +    else
           77  +      posix_glob=:
           78  +    fi
           79  +  }
           80  +'
           81  +
           82  +posix_mkdir=
           83  +
           84  +# Desired mode of installed file.
           85  +mode=0755
           86  +
           87  +chgrpcmd=
           88  +chmodcmd=$chmodprog
           89  +chowncmd=
           90  +mvcmd=$mvprog
           91  +rmcmd="$rmprog -f"
           92  +stripcmd=
           93  +
           94  +src=
           95  +dst=
           96  +dir_arg=
           97  +dst_arg=
           98  +
           99  +copy_on_change=false
          100  +no_target_directory=
          101  +
          102  +usage="\
          103  +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
          104  +   or: $0 [OPTION]... SRCFILES... DIRECTORY
          105  +   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
          106  +   or: $0 [OPTION]... -d DIRECTORIES...
          107  +
          108  +In the 1st form, copy SRCFILE to DSTFILE.
          109  +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
          110  +In the 4th, create DIRECTORIES.
          111  +
          112  +Options:
          113  +     --help     display this help and exit.
          114  +     --version  display version info and exit.
          115  +
          116  +  -c            (ignored)
          117  +  -C            install only if different (preserve the last data modification time)
          118  +  -d            create directories instead of installing files.
          119  +  -g GROUP      $chgrpprog installed files to GROUP.
          120  +  -m MODE       $chmodprog installed files to MODE.
          121  +  -o USER       $chownprog installed files to USER.
          122  +  -s            $stripprog installed files.
          123  +  -t DIRECTORY  install into DIRECTORY.
          124  +  -T            report an error if DSTFILE is a directory.
          125  +
          126  +Environment variables override the default commands:
          127  +  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
          128  +  RMPROG STRIPPROG
          129  +"
          130  +
          131  +while test $# -ne 0; do
          132  +  case $1 in
          133  +    -c) ;;
          134  +
          135  +    -C) copy_on_change=true;;
          136  +
          137  +    -d) dir_arg=true;;
          138  +
          139  +    -g) chgrpcmd="$chgrpprog $2"
          140  +	shift;;
          141  +
          142  +    --help) echo "$usage"; exit $?;;
          143  +
          144  +    -m) mode=$2
          145  +	case $mode in
          146  +	  *' '* | *'	'* | *'
          147  +'*	  | *'*'* | *'?'* | *'['*)
          148  +	    echo "$0: invalid mode: $mode" >&2
          149  +	    exit 1;;
          150  +	esac
          151  +	shift;;
          152  +
          153  +    -o) chowncmd="$chownprog $2"
          154  +	shift;;
          155  +
          156  +    -s) stripcmd=$stripprog;;
          157  +
          158  +    -t) dst_arg=$2
          159  +	shift;;
          160  +
          161  +    -T) no_target_directory=true;;
          162  +
          163  +    --version) echo "$0 $scriptversion"; exit $?;;
          164  +
          165  +    --)	shift
          166  +	break;;
          167  +
          168  +    -*)	echo "$0: invalid option: $1" >&2
          169  +	exit 1;;
          170  +
          171  +    *)  break;;
          172  +  esac
          173  +  shift
          174  +done
          175  +
          176  +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
          177  +  # When -d is used, all remaining arguments are directories to create.
          178  +  # When -t is used, the destination is already specified.
          179  +  # Otherwise, the last argument is the destination.  Remove it from $@.
          180  +  for arg
          181  +  do
          182  +    if test -n "$dst_arg"; then
          183  +      # $@ is not empty: it contains at least $arg.
          184  +      set fnord "$@" "$dst_arg"
          185  +      shift # fnord
          186  +    fi
          187  +    shift # arg
          188  +    dst_arg=$arg
          189  +  done
          190  +fi
          191  +
          192  +if test $# -eq 0; then
          193  +  if test -z "$dir_arg"; then
          194  +    echo "$0: no input file specified." >&2
          195  +    exit 1
          196  +  fi
          197  +  # It's OK to call `install-sh -d' without argument.
          198  +  # This can happen when creating conditional directories.
          199  +  exit 0
          200  +fi
          201  +
          202  +if test -z "$dir_arg"; then
          203  +  trap '(exit $?); exit' 1 2 13 15
          204  +
          205  +  # Set umask so as not to create temps with too-generous modes.
          206  +  # However, 'strip' requires both read and write access to temps.
          207  +  case $mode in
          208  +    # Optimize common cases.
          209  +    *644) cp_umask=133;;
          210  +    *755) cp_umask=22;;
          211  +
          212  +    *[0-7])
          213  +      if test -z "$stripcmd"; then
          214  +	u_plus_rw=
          215  +      else
          216  +	u_plus_rw='% 200'
          217  +      fi
          218  +      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
          219  +    *)
          220  +      if test -z "$stripcmd"; then
          221  +	u_plus_rw=
          222  +      else
          223  +	u_plus_rw=,u+rw
          224  +      fi
          225  +      cp_umask=$mode$u_plus_rw;;
          226  +  esac
          227  +fi
          228  +
          229  +for src
          230  +do
          231  +  # Protect names starting with `-'.
          232  +  case $src in
          233  +    -*) src=./$src;;
          234  +  esac
          235  +
          236  +  if test -n "$dir_arg"; then
          237  +    dst=$src
          238  +    dstdir=$dst
          239  +    test -d "$dstdir"
          240  +    dstdir_status=$?
          241  +  else
          242  +
          243  +    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
          244  +    # might cause directories to be created, which would be especially bad
          245  +    # if $src (and thus $dsttmp) contains '*'.
          246  +    if test ! -f "$src" && test ! -d "$src"; then
          247  +      echo "$0: $src does not exist." >&2
          248  +      exit 1
          249  +    fi
          250  +
          251  +    if test -z "$dst_arg"; then
          252  +      echo "$0: no destination specified." >&2
          253  +      exit 1
          254  +    fi
          255  +
          256  +    dst=$dst_arg
          257  +    # Protect names starting with `-'.
          258  +    case $dst in
          259  +      -*) dst=./$dst;;
          260  +    esac
          261  +
          262  +    # If destination is a directory, append the input filename; won't work
          263  +    # if double slashes aren't ignored.
          264  +    if test -d "$dst"; then
          265  +      if test -n "$no_target_directory"; then
          266  +	echo "$0: $dst_arg: Is a directory" >&2
          267  +	exit 1
          268  +      fi
          269  +      dstdir=$dst
          270  +      dst=$dstdir/`basename "$src"`
          271  +      dstdir_status=0
          272  +    else
          273  +      # Prefer dirname, but fall back on a substitute if dirname fails.
          274  +      dstdir=`
          275  +	(dirname "$dst") 2>/dev/null ||
          276  +	expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
          277  +	     X"$dst" : 'X\(//\)[^/]' \| \
          278  +	     X"$dst" : 'X\(//\)$' \| \
          279  +	     X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
          280  +	echo X"$dst" |
          281  +	    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
          282  +		   s//\1/
          283  +		   q
          284  +		 }
          285  +		 /^X\(\/\/\)[^/].*/{
          286  +		   s//\1/
          287  +		   q
          288  +		 }
          289  +		 /^X\(\/\/\)$/{
          290  +		   s//\1/
          291  +		   q
          292  +		 }
          293  +		 /^X\(\/\).*/{
          294  +		   s//\1/
          295  +		   q
          296  +		 }
          297  +		 s/.*/./; q'
          298  +      `
          299  +
          300  +      test -d "$dstdir"
          301  +      dstdir_status=$?
          302  +    fi
          303  +  fi
          304  +
          305  +  obsolete_mkdir_used=false
          306  +
          307  +  if test $dstdir_status != 0; then
          308  +    case $posix_mkdir in
          309  +      '')
          310  +	# Create intermediate dirs using mode 755 as modified by the umask.
          311  +	# This is like FreeBSD 'install' as of 1997-10-28.
          312  +	umask=`umask`
          313  +	case $stripcmd.$umask in
          314  +	  # Optimize common cases.
          315  +	  *[2367][2367]) mkdir_umask=$umask;;
          316  +	  .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
          317  +
          318  +	  *[0-7])
          319  +	    mkdir_umask=`expr $umask + 22 \
          320  +	      - $umask % 100 % 40 + $umask % 20 \
          321  +	      - $umask % 10 % 4 + $umask % 2
          322  +	    `;;
          323  +	  *) mkdir_umask=$umask,go-w;;
          324  +	esac
          325  +
          326  +	# With -d, create the new directory with the user-specified mode.
          327  +	# Otherwise, rely on $mkdir_umask.
          328  +	if test -n "$dir_arg"; then
          329  +	  mkdir_mode=-m$mode
          330  +	else
          331  +	  mkdir_mode=
          332  +	fi
          333  +
          334  +	posix_mkdir=false
          335  +	case $umask in
          336  +	  *[123567][0-7][0-7])
          337  +	    # POSIX mkdir -p sets u+wx bits regardless of umask, which
          338  +	    # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
          339  +	    ;;
          340  +	  *)
          341  +	    tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
          342  +	    trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
          343  +
          344  +	    if (umask $mkdir_umask &&
          345  +		exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
          346  +	    then
          347  +	      if test -z "$dir_arg" || {
          348  +		   # Check for POSIX incompatibilities with -m.
          349  +		   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
          350  +		   # other-writeable bit of parent directory when it shouldn't.
          351  +		   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
          352  +		   ls_ld_tmpdir=`ls -ld "$tmpdir"`
          353  +		   case $ls_ld_tmpdir in
          354  +		     d????-?r-*) different_mode=700;;
          355  +		     d????-?--*) different_mode=755;;
          356  +		     *) false;;
          357  +		   esac &&
          358  +		   $mkdirprog -m$different_mode -p -- "$tmpdir" && {
          359  +		     ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
          360  +		     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
          361  +		   }
          362  +		 }
          363  +	      then posix_mkdir=:
          364  +	      fi
          365  +	      rmdir "$tmpdir/d" "$tmpdir"
          366  +	    else
          367  +	      # Remove any dirs left behind by ancient mkdir implementations.
          368  +	      rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
          369  +	    fi
          370  +	    trap '' 0;;
          371  +	esac;;
          372  +    esac
          373  +
          374  +    if
          375  +      $posix_mkdir && (
          376  +	umask $mkdir_umask &&
          377  +	$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
          378  +      )
          379  +    then :
          380  +    else
          381  +
          382  +      # The umask is ridiculous, or mkdir does not conform to POSIX,
          383  +      # or it failed possibly due to a race condition.  Create the
          384  +      # directory the slow way, step by step, checking for races as we go.
          385  +
          386  +      case $dstdir in
          387  +	/*) prefix='/';;
          388  +	-*) prefix='./';;
          389  +	*)  prefix='';;
          390  +      esac
          391  +
          392  +      eval "$initialize_posix_glob"
          393  +
          394  +      oIFS=$IFS
          395  +      IFS=/
          396  +      $posix_glob set -f
          397  +      set fnord $dstdir
          398  +      shift
          399  +      $posix_glob set +f
          400  +      IFS=$oIFS
          401  +
          402  +      prefixes=
          403  +
          404  +      for d
          405  +      do
          406  +	test -z "$d" && continue
          407  +
          408  +	prefix=$prefix$d
          409  +	if test -d "$prefix"; then
          410  +	  prefixes=
          411  +	else
          412  +	  if $posix_mkdir; then
          413  +	    (umask=$mkdir_umask &&
          414  +	     $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
          415  +	    # Don't fail if two instances are running concurrently.
          416  +	    test -d "$prefix" || exit 1
          417  +	  else
          418  +	    case $prefix in
          419  +	      *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
          420  +	      *) qprefix=$prefix;;
          421  +	    esac
          422  +	    prefixes="$prefixes '$qprefix'"
          423  +	  fi
          424  +	fi
          425  +	prefix=$prefix/
          426  +      done
          427  +
          428  +      if test -n "$prefixes"; then
          429  +	# Don't fail if two instances are running concurrently.
          430  +	(umask $mkdir_umask &&
          431  +	 eval "\$doit_exec \$mkdirprog $prefixes") ||
          432  +	  test -d "$dstdir" || exit 1
          433  +	obsolete_mkdir_used=true
          434  +      fi
          435  +    fi
          436  +  fi
          437  +
          438  +  if test -n "$dir_arg"; then
          439  +    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
          440  +    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
          441  +    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
          442  +      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
          443  +  else
          444  +
          445  +    # Make a couple of temp file names in the proper directory.
          446  +    dsttmp=$dstdir/_inst.$$_
          447  +    rmtmp=$dstdir/_rm.$$_
          448  +
          449  +    # Trap to clean up those temp files at exit.
          450  +    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
          451  +
          452  +    # Copy the file name to the temp name.
          453  +    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
          454  +
          455  +    # and set any options; do chmod last to preserve setuid bits.
          456  +    #
          457  +    # If any of these fail, we abort the whole thing.  If we want to
          458  +    # ignore errors from any of these, just make sure not to ignore
          459  +    # errors from the above "$doit $cpprog $src $dsttmp" command.
          460  +    #
          461  +    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
          462  +    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
          463  +    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
          464  +    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
          465  +
          466  +    # If -C, don't bother to copy if it wouldn't change the file.
          467  +    if $copy_on_change &&
          468  +       old=`LC_ALL=C ls -dlL "$dst"	2>/dev/null` &&
          469  +       new=`LC_ALL=C ls -dlL "$dsttmp"	2>/dev/null` &&
          470  +
          471  +       eval "$initialize_posix_glob" &&
          472  +       $posix_glob set -f &&
          473  +       set X $old && old=:$2:$4:$5:$6 &&
          474  +       set X $new && new=:$2:$4:$5:$6 &&
          475  +       $posix_glob set +f &&
          476  +
          477  +       test "$old" = "$new" &&
          478  +       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
          479  +    then
          480  +      rm -f "$dsttmp"
          481  +    else
          482  +      # Rename the file to the real destination.
          483  +      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
          484  +
          485  +      # The rename failed, perhaps because mv can't rename something else
          486  +      # to itself, or perhaps because mv is so ancient that it does not
          487  +      # support -f.
          488  +      {
          489  +	# Now remove or move aside any old file at destination location.
          490  +	# We try this two ways since rm can't unlink itself on some
          491  +	# systems and the destination file might be busy for other
          492  +	# reasons.  In this case, the final cleanup might fail but the new
          493  +	# file should still install successfully.
          494  +	{
          495  +	  test ! -f "$dst" ||
          496  +	  $doit $rmcmd -f "$dst" 2>/dev/null ||
          497  +	  { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
          498  +	    { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
          499  +	  } ||
          500  +	  { echo "$0: cannot unlink or rename $dst" >&2
          501  +	    (exit 1); exit 1
          502  +	  }
          503  +	} &&
          504  +
          505  +	# Now rename the file to the real destination.
          506  +	$doit $mvcmd "$dsttmp" "$dst"
          507  +      }
          508  +    fi || exit 1
          509  +
          510  +    trap '' 0
          511  +  fi
          512  +done
          513  +
          514  +# Local variables:
          515  +# eval: (add-hook 'write-file-hooks 'time-stamp)
          516  +# time-stamp-start: "scriptversion="
          517  +# time-stamp-format: "%:y-%02m-%02d.%02H"
          518  +# time-stamp-time-zone: "UTC"
          519  +# time-stamp-end: "; # UTC"
          520  +# End:

Added autoconfig.h.in.

            1  +/* autoconfig.h.in.  Generated from configure.ac by autoheader.  */
            2  +
            3  +/* Support HTTPS */
            4  +#undef FOSSIL_ENABLE_SSL
            5  +
            6  +/* Define to 1 if you have the `getpassphrase' function. */
            7  +#undef HAVE_GETPASSPHRASE
            8  +
            9  +/* Define to 1 if you have the <inttypes.h> header file. */
           10  +#undef HAVE_INTTYPES_H
           11  +
           12  +/* Define to 1 if you have the <memory.h> header file. */
           13  +#undef HAVE_MEMORY_H
           14  +
           15  +/* Define to 1 if you have the <stdint.h> header file. */
           16  +#undef HAVE_STDINT_H
           17  +
           18  +/* Define to 1 if you have the <stdlib.h> header file. */
           19  +#undef HAVE_STDLIB_H
           20  +
           21  +/* Define to 1 if you have the <strings.h> header file. */
           22  +#undef HAVE_STRINGS_H
           23  +
           24  +/* Define to 1 if you have the <string.h> header file. */
           25  +#undef HAVE_STRING_H
           26  +
           27  +/* Define to 1 if you have the <sys/stat.h> header file. */
           28  +#undef HAVE_SYS_STAT_H
           29  +
           30  +/* Define to 1 if you have the <sys/types.h> header file. */
           31  +#undef HAVE_SYS_TYPES_H
           32  +
           33  +/* Define to 1 if you have the <unistd.h> header file. */
           34  +#undef HAVE_UNISTD_H
           35  +
           36  +/* Define to the address where bug reports for this package should be sent. */
           37  +#undef PACKAGE_BUGREPORT
           38  +
           39  +/* Define to the full name of this package. */
           40  +#undef PACKAGE_NAME
           41  +
           42  +/* Define to the full name and version of this package. */
           43  +#undef PACKAGE_STRING
           44  +
           45  +/* Define to the one symbol short name of this package. */
           46  +#undef PACKAGE_TARNAME
           47  +
           48  +/* Define to the version of this package. */
           49  +#undef PACKAGE_VERSION
           50  +
           51  +/* Define to 1 if you have the ANSI C header files. */
           52  +#undef STDC_HEADERS
           53  +
           54  +/* Use pread/pwrite system calls in place of seek + read/write */
           55  +#undef USE_PREAD

Added configure.

            1  +#! /bin/sh
            2  +# Guess values for system-dependent variables and create Makefiles.
            3  +# Generated by GNU Autoconf 2.61 for fossil 20110528.
            4  +#
            5  +# Report bugs to <joerg@NetBSD.org>.
            6  +#
            7  +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
            8  +# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
            9  +# This configure script is free software; the Free Software Foundation
           10  +# gives unlimited permission to copy, distribute and modify it.
           11  +## --------------------- ##
           12  +## M4sh Initialization.  ##
           13  +## --------------------- ##
           14  +
           15  +# Be more Bourne compatible
           16  +DUALCASE=1; export DUALCASE # for MKS sh
           17  +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
           18  +  emulate sh
           19  +  NULLCMD=:
           20  +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
           21  +  # is contrary to our usage.  Disable this feature.
           22  +  alias -g '${1+"$@"}'='"$@"'
           23  +  setopt NO_GLOB_SUBST
           24  +else
           25  +  case `(set -o) 2>/dev/null` in
           26  +  *posix*) set -o posix ;;
           27  +esac
           28  +
           29  +fi
           30  +
           31  +
           32  +
           33  +
           34  +# PATH needs CR
           35  +# Avoid depending upon Character Ranges.
           36  +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
           37  +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
           38  +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
           39  +as_cr_digits='0123456789'
           40  +as_cr_alnum=$as_cr_Letters$as_cr_digits
           41  +
           42  +# The user is always right.
           43  +if test "${PATH_SEPARATOR+set}" != set; then
           44  +  echo "#! /bin/sh" >conf$$.sh
           45  +  echo  "exit 0"   >>conf$$.sh
           46  +  chmod +x conf$$.sh
           47  +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
           48  +    PATH_SEPARATOR=';'
           49  +  else
           50  +    PATH_SEPARATOR=:
           51  +  fi
           52  +  rm -f conf$$.sh
           53  +fi
           54  +
           55  +# Support unset when possible.
           56  +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
           57  +  as_unset=unset
           58  +else
           59  +  as_unset=false
           60  +fi
           61  +
           62  +
           63  +# IFS
           64  +# We need space, tab and new line, in precisely that order.  Quoting is
           65  +# there to prevent editors from complaining about space-tab.
           66  +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
           67  +# splitting by setting IFS to empty value.)
           68  +as_nl='
           69  +'
           70  +IFS=" ""	$as_nl"
           71  +
           72  +# Find who we are.  Look in the path if we contain no directory separator.
           73  +case $0 in
           74  +  *[\\/]* ) as_myself=$0 ;;
           75  +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
           76  +for as_dir in $PATH
           77  +do
           78  +  IFS=$as_save_IFS
           79  +  test -z "$as_dir" && as_dir=.
           80  +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
           81  +done
           82  +IFS=$as_save_IFS
           83  +
           84  +     ;;
           85  +esac
           86  +# We did not find ourselves, most probably we were run as `sh COMMAND'
           87  +# in which case we are not to be found in the path.
           88  +if test "x$as_myself" = x; then
           89  +  as_myself=$0
           90  +fi
           91  +if test ! -f "$as_myself"; then
           92  +  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
           93  +  { (exit 1); exit 1; }
           94  +fi
           95  +
           96  +# Work around bugs in pre-3.0 UWIN ksh.
           97  +for as_var in ENV MAIL MAILPATH
           98  +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
           99  +done
          100  +PS1='$ '
          101  +PS2='> '
          102  +PS4='+ '
          103  +
          104  +# NLS nuisances.
          105  +for as_var in \
          106  +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
          107  +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
          108  +  LC_TELEPHONE LC_TIME
          109  +do
          110  +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
          111  +    eval $as_var=C; export $as_var
          112  +  else
          113  +    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
          114  +  fi
          115  +done
          116  +
          117  +# Required to use basename.
          118  +if expr a : '\(a\)' >/dev/null 2>&1 &&
          119  +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
          120  +  as_expr=expr
          121  +else
          122  +  as_expr=false
          123  +fi
          124  +
          125  +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
          126  +  as_basename=basename
          127  +else
          128  +  as_basename=false
          129  +fi
          130  +
          131  +
          132  +# Name of the executable.
          133  +as_me=`$as_basename -- "$0" ||
          134  +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
          135  +	 X"$0" : 'X\(//\)$' \| \
          136  +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
          137  +echo X/"$0" |
          138  +    sed '/^.*\/\([^/][^/]*\)\/*$/{
          139  +	    s//\1/
          140  +	    q
          141  +	  }
          142  +	  /^X\/\(\/\/\)$/{
          143  +	    s//\1/
          144  +	    q
          145  +	  }
          146  +	  /^X\/\(\/\).*/{
          147  +	    s//\1/
          148  +	    q
          149  +	  }
          150  +	  s/.*/./; q'`
          151  +
          152  +# CDPATH.
          153  +$as_unset CDPATH
          154  +
          155  +
          156  +if test "x$CONFIG_SHELL" = x; then
          157  +  if (eval ":") 2>/dev/null; then
          158  +  as_have_required=yes
          159  +else
          160  +  as_have_required=no
          161  +fi
          162  +
          163  +  if test $as_have_required = yes && 	 (eval ":
          164  +(as_func_return () {
          165  +  (exit \$1)
          166  +}
          167  +as_func_success () {
          168  +  as_func_return 0
          169  +}
          170  +as_func_failure () {
          171  +  as_func_return 1
          172  +}
          173  +as_func_ret_success () {
          174  +  return 0
          175  +}
          176  +as_func_ret_failure () {
          177  +  return 1
          178  +}
          179  +
          180  +exitcode=0
          181  +if as_func_success; then
          182  +  :
          183  +else
          184  +  exitcode=1
          185  +  echo as_func_success failed.
          186  +fi
          187  +
          188  +if as_func_failure; then
          189  +  exitcode=1
          190  +  echo as_func_failure succeeded.
          191  +fi
          192  +
          193  +if as_func_ret_success; then
          194  +  :
          195  +else
          196  +  exitcode=1
          197  +  echo as_func_ret_success failed.
          198  +fi
          199  +
          200  +if as_func_ret_failure; then
          201  +  exitcode=1
          202  +  echo as_func_ret_failure succeeded.
          203  +fi
          204  +
          205  +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
          206  +  :
          207  +else
          208  +  exitcode=1
          209  +  echo positional parameters were not saved.
          210  +fi
          211  +
          212  +test \$exitcode = 0) || { (exit 1); exit 1; }
          213  +
          214  +(
          215  +  as_lineno_1=\$LINENO
          216  +  as_lineno_2=\$LINENO
          217  +  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
          218  +  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
          219  +") 2> /dev/null; then
          220  +  :
          221  +else
          222  +  as_candidate_shells=
          223  +    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
          224  +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
          225  +do
          226  +  IFS=$as_save_IFS
          227  +  test -z "$as_dir" && as_dir=.
          228  +  case $as_dir in
          229  +	 /*)
          230  +	   for as_base in sh bash ksh sh5; do
          231  +	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
          232  +	   done;;
          233  +       esac
          234  +done
          235  +IFS=$as_save_IFS
          236  +
          237  +
          238  +      for as_shell in $as_candidate_shells $SHELL; do
          239  +	 # Try only shells that exist, to save several forks.
          240  +	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
          241  +		{ ("$as_shell") 2> /dev/null <<\_ASEOF
          242  +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
          243  +  emulate sh
          244  +  NULLCMD=:
          245  +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
          246  +  # is contrary to our usage.  Disable this feature.
          247  +  alias -g '${1+"$@"}'='"$@"'
          248  +  setopt NO_GLOB_SUBST
          249  +else
          250  +  case `(set -o) 2>/dev/null` in
          251  +  *posix*) set -o posix ;;
          252  +esac
          253  +
          254  +fi
          255  +
          256  +
          257  +:
          258  +_ASEOF
          259  +}; then
          260  +  CONFIG_SHELL=$as_shell
          261  +	       as_have_required=yes
          262  +	       if { "$as_shell" 2> /dev/null <<\_ASEOF
          263  +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
          264  +  emulate sh
          265  +  NULLCMD=:
          266  +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
          267  +  # is contrary to our usage.  Disable this feature.
          268  +  alias -g '${1+"$@"}'='"$@"'
          269  +  setopt NO_GLOB_SUBST
          270  +else
          271  +  case `(set -o) 2>/dev/null` in
          272  +  *posix*) set -o posix ;;
          273  +esac
          274  +
          275  +fi
          276  +
          277  +
          278  +:
          279  +(as_func_return () {
          280  +  (exit $1)
          281  +}
          282  +as_func_success () {
          283  +  as_func_return 0
          284  +}
          285  +as_func_failure () {
          286  +  as_func_return 1
          287  +}
          288  +as_func_ret_success () {
          289  +  return 0
          290  +}
          291  +as_func_ret_failure () {
          292  +  return 1
          293  +}
          294  +
          295  +exitcode=0
          296  +if as_func_success; then
          297  +  :
          298  +else
          299  +  exitcode=1
          300  +  echo as_func_success failed.
          301  +fi
          302  +
          303  +if as_func_failure; then
          304  +  exitcode=1
          305  +  echo as_func_failure succeeded.
          306  +fi
          307  +
          308  +if as_func_ret_success; then
          309  +  :
          310  +else
          311  +  exitcode=1
          312  +  echo as_func_ret_success failed.
          313  +fi
          314  +
          315  +if as_func_ret_failure; then
          316  +  exitcode=1
          317  +  echo as_func_ret_failure succeeded.
          318  +fi
          319  +
          320  +if ( set x; as_func_ret_success y && test x = "$1" ); then
          321  +  :
          322  +else
          323  +  exitcode=1
          324  +  echo positional parameters were not saved.
          325  +fi
          326  +
          327  +test $exitcode = 0) || { (exit 1); exit 1; }
          328  +
          329  +(
          330  +  as_lineno_1=$LINENO
          331  +  as_lineno_2=$LINENO
          332  +  test "x$as_lineno_1" != "x$as_lineno_2" &&
          333  +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
          334  +
          335  +_ASEOF
          336  +}; then
          337  +  break
          338  +fi
          339  +
          340  +fi
          341  +
          342  +      done
          343  +
          344  +      if test "x$CONFIG_SHELL" != x; then
          345  +  for as_var in BASH_ENV ENV
          346  +        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
          347  +        done
          348  +        export CONFIG_SHELL
          349  +        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
          350  +fi
          351  +
          352  +
          353  +    if test $as_have_required = no; then
          354  +  echo This script requires a shell more modern than all the
          355  +      echo shells that I found on your system.  Please install a
          356  +      echo modern shell, or manually run the script under such a
          357  +      echo shell if you do have one.
          358  +      { (exit 1); exit 1; }
          359  +fi
          360  +
          361  +
          362  +fi
          363  +
          364  +fi
          365  +
          366  +
          367  +
          368  +(eval "as_func_return () {
          369  +  (exit \$1)
          370  +}
          371  +as_func_success () {
          372  +  as_func_return 0
          373  +}
          374  +as_func_failure () {
          375  +  as_func_return 1
          376  +}
          377  +as_func_ret_success () {
          378  +  return 0
          379  +}
          380  +as_func_ret_failure () {
          381  +  return 1
          382  +}
          383  +
          384  +exitcode=0
          385  +if as_func_success; then
          386  +  :
          387  +else
          388  +  exitcode=1
          389  +  echo as_func_success failed.
          390  +fi
          391  +
          392  +if as_func_failure; then
          393  +  exitcode=1
          394  +  echo as_func_failure succeeded.
          395  +fi
          396  +
          397  +if as_func_ret_success; then
          398  +  :
          399  +else
          400  +  exitcode=1
          401  +  echo as_func_ret_success failed.
          402  +fi
          403  +
          404  +if as_func_ret_failure; then
          405  +  exitcode=1
          406  +  echo as_func_ret_failure succeeded.
          407  +fi
          408  +
          409  +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
          410  +  :
          411  +else
          412  +  exitcode=1
          413  +  echo positional parameters were not saved.
          414  +fi
          415  +
          416  +test \$exitcode = 0") || {
          417  +  echo No shell found that supports shell functions.
          418  +  echo Please tell autoconf@gnu.org about your system,
          419  +  echo including any error possibly output before this
          420  +  echo message
          421  +}
          422  +
          423  +
          424  +
          425  +  as_lineno_1=$LINENO
          426  +  as_lineno_2=$LINENO
          427  +  test "x$as_lineno_1" != "x$as_lineno_2" &&
          428  +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
          429  +
          430  +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
          431  +  # uniformly replaced by the line number.  The first 'sed' inserts a
          432  +  # line-number line after each line using $LINENO; the second 'sed'
          433  +  # does the real work.  The second script uses 'N' to pair each
          434  +  # line-number line with the line containing $LINENO, and appends
          435  +  # trailing '-' during substitution so that $LINENO is not a special
          436  +  # case at line end.
          437  +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
          438  +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
          439  +  # E. McMahon (1931-1989) for sed's syntax.  :-)
          440  +  sed -n '
          441  +    p
          442  +    /[$]LINENO/=
          443  +  ' <$as_myself |
          444  +    sed '
          445  +      s/[$]LINENO.*/&-/
          446  +      t lineno
          447  +      b
          448  +      :lineno
          449  +      N
          450  +      :loop
          451  +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
          452  +      t loop
          453  +      s/-\n.*//
          454  +    ' >$as_me.lineno &&
          455  +  chmod +x "$as_me.lineno" ||
          456  +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
          457  +   { (exit 1); exit 1; }; }
          458  +
          459  +  # Don't try to exec as it changes $[0], causing all sort of problems
          460  +  # (the dirname of $[0] is not the place where we might find the
          461  +  # original and so on.  Autoconf is especially sensitive to this).
          462  +  . "./$as_me.lineno"
          463  +  # Exit status is that of the last command.
          464  +  exit
          465  +}
          466  +
          467  +
          468  +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
          469  +  as_dirname=dirname
          470  +else
          471  +  as_dirname=false
          472  +fi
          473  +
          474  +ECHO_C= ECHO_N= ECHO_T=
          475  +case `echo -n x` in
          476  +-n*)
          477  +  case `echo 'x\c'` in
          478  +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
          479  +  *)   ECHO_C='\c';;
          480  +  esac;;
          481  +*)
          482  +  ECHO_N='-n';;
          483  +esac
          484  +
          485  +if expr a : '\(a\)' >/dev/null 2>&1 &&
          486  +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
          487  +  as_expr=expr
          488  +else
          489  +  as_expr=false
          490  +fi
          491  +
          492  +rm -f conf$$ conf$$.exe conf$$.file
          493  +if test -d conf$$.dir; then
          494  +  rm -f conf$$.dir/conf$$.file
          495  +else
          496  +  rm -f conf$$.dir
          497  +  mkdir conf$$.dir
          498  +fi
          499  +echo >conf$$.file
          500  +if ln -s conf$$.file conf$$ 2>/dev/null; then
          501  +  as_ln_s='ln -s'
          502  +  # ... but there are two gotchas:
          503  +  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
          504  +  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
          505  +  # In both cases, we have to default to `cp -p'.
          506  +  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
          507  +    as_ln_s='cp -p'
          508  +elif ln conf$$.file conf$$ 2>/dev/null; then
          509  +  as_ln_s=ln
          510  +else
          511  +  as_ln_s='cp -p'
          512  +fi
          513  +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
          514  +rmdir conf$$.dir 2>/dev/null
          515  +
          516  +if mkdir -p . 2>/dev/null; then
          517  +  as_mkdir_p=:
          518  +else
          519  +  test -d ./-p && rmdir ./-p
          520  +  as_mkdir_p=false
          521  +fi
          522  +
          523  +if test -x / >/dev/null 2>&1; then
          524  +  as_test_x='test -x'
          525  +else
          526  +  if ls -dL / >/dev/null 2>&1; then
          527  +    as_ls_L_option=L
          528  +  else
          529  +    as_ls_L_option=
          530  +  fi
          531  +  as_test_x='
          532  +    eval sh -c '\''
          533  +      if test -d "$1"; then
          534  +        test -d "$1/.";
          535  +      else
          536  +	case $1 in
          537  +        -*)set "./$1";;
          538  +	esac;
          539  +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
          540  +	???[sx]*):;;*)false;;esac;fi
          541  +    '\'' sh
          542  +  '
          543  +fi
          544  +as_executable_p=$as_test_x
          545  +
          546  +# Sed expression to map a string onto a valid CPP name.
          547  +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
          548  +
          549  +# Sed expression to map a string onto a valid variable name.
          550  +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
          551  +
          552  +
          553  +
          554  +exec 7<&0 </dev/null 6>&1
          555  +
          556  +# Name of the host.
          557  +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
          558  +# so uname gets run too.
          559  +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
          560  +
          561  +#
          562  +# Initializations.
          563  +#
          564  +ac_default_prefix=/usr/local
          565  +ac_clean_files=
          566  +ac_config_libobj_dir=.
          567  +LIBOBJS=
          568  +cross_compiling=no
          569  +subdirs=
          570  +MFLAGS=
          571  +MAKEFLAGS=
          572  +SHELL=${CONFIG_SHELL-/bin/sh}
          573  +
          574  +# Identity of this package.
          575  +PACKAGE_NAME='fossil'
          576  +PACKAGE_TARNAME='fossil'
          577  +PACKAGE_VERSION='20110528'
          578  +PACKAGE_STRING='fossil 20110528'
          579  +PACKAGE_BUGREPORT='joerg@NetBSD.org'
          580  +
          581  +ac_unique_file="src/schema.c"
          582  +# Factoring default headers for most tests.
          583  +ac_includes_default="\
          584  +#include <stdio.h>
          585  +#ifdef HAVE_SYS_TYPES_H
          586  +# include <sys/types.h>
          587  +#endif
          588  +#ifdef HAVE_SYS_STAT_H
          589  +# include <sys/stat.h>
          590  +#endif
          591  +#ifdef STDC_HEADERS
          592  +# include <stdlib.h>
          593  +# include <stddef.h>
          594  +#else
          595  +# ifdef HAVE_STDLIB_H
          596  +#  include <stdlib.h>
          597  +# endif
          598  +#endif
          599  +#ifdef HAVE_STRING_H
          600  +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
          601  +#  include <memory.h>
          602  +# endif
          603  +# include <string.h>
          604  +#endif
          605  +#ifdef HAVE_STRINGS_H
          606  +# include <strings.h>
          607  +#endif
          608  +#ifdef HAVE_INTTYPES_H
          609  +# include <inttypes.h>
          610  +#endif
          611  +#ifdef HAVE_STDINT_H
          612  +# include <stdint.h>
          613  +#endif
          614  +#ifdef HAVE_UNISTD_H
          615  +# include <unistd.h>
          616  +#endif"
          617  +
          618  +ac_subst_vars='SHELL
          619  +PATH_SEPARATOR
          620  +PACKAGE_NAME
          621  +PACKAGE_TARNAME
          622  +PACKAGE_VERSION
          623  +PACKAGE_STRING
          624  +PACKAGE_BUGREPORT
          625  +exec_prefix
          626  +prefix
          627  +program_transform_name
          628  +bindir
          629  +sbindir
          630  +libexecdir
          631  +datarootdir
          632  +datadir
          633  +sysconfdir
          634  +sharedstatedir
          635  +localstatedir
          636  +includedir
          637  +oldincludedir
          638  +docdir
          639  +infodir
          640  +htmldir
          641  +dvidir
          642  +pdfdir
          643  +psdir
          644  +libdir
          645  +localedir
          646  +mandir
          647  +DEFS
          648  +ECHO_C
          649  +ECHO_N
          650  +ECHO_T
          651  +LIBS
          652  +build_alias
          653  +host_alias
          654  +target_alias
          655  +build
          656  +build_cpu
          657  +build_vendor
          658  +build_os
          659  +host
          660  +host_cpu
          661  +host_vendor
          662  +host_os
          663  +SET_MAKE
          664  +CC
          665  +CFLAGS
          666  +LDFLAGS
          667  +CPPFLAGS
          668  +ac_ct_CC
          669  +EXEEXT
          670  +OBJEXT
          671  +CPP
          672  +GREP
          673  +EGREP
          674  +PKG_CONFIG
          675  +OPENSSL_INCLUDES
          676  +OPENSSL_LIBS
          677  +OPENSSL_LDFLAGS
          678  +LIBOBJS
          679  +LTLIBOBJS'
          680  +ac_subst_files=''
          681  +      ac_precious_vars='build_alias
          682  +host_alias
          683  +target_alias
          684  +CC
          685  +CFLAGS
          686  +LDFLAGS
          687  +LIBS
          688  +CPPFLAGS
          689  +CPP'
          690  +
          691  +
          692  +# Initialize some variables set by options.
          693  +ac_init_help=
          694  +ac_init_version=false
          695  +# The variables have the same names as the options, with
          696  +# dashes changed to underlines.
          697  +cache_file=/dev/null
          698  +exec_prefix=NONE
          699  +no_create=
          700  +no_recursion=
          701  +prefix=NONE
          702  +program_prefix=NONE
          703  +program_suffix=NONE
          704  +program_transform_name=s,x,x,
          705  +silent=
          706  +site=
          707  +srcdir=
          708  +verbose=
          709  +x_includes=NONE
          710  +x_libraries=NONE
          711  +
          712  +# Installation directory options.
          713  +# These are left unexpanded so users can "make install exec_prefix=/foo"
          714  +# and all the variables that are supposed to be based on exec_prefix
          715  +# by default will actually change.
          716  +# Use braces instead of parens because sh, perl, etc. also accept them.
          717  +# (The list follows the same order as the GNU Coding Standards.)
          718  +bindir='${exec_prefix}/bin'
          719  +sbindir='${exec_prefix}/sbin'
          720  +libexecdir='${exec_prefix}/libexec'
          721  +datarootdir='${prefix}/share'
          722  +datadir='${datarootdir}'
          723  +sysconfdir='${prefix}/etc'
          724  +sharedstatedir='${prefix}/com'
          725  +localstatedir='${prefix}/var'
          726  +includedir='${prefix}/include'
          727  +oldincludedir='/usr/include'
          728  +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
          729  +infodir='${datarootdir}/info'
          730  +htmldir='${docdir}'
          731  +dvidir='${docdir}'
          732  +pdfdir='${docdir}'
          733  +psdir='${docdir}'
          734  +libdir='${exec_prefix}/lib'
          735  +localedir='${datarootdir}/locale'
          736  +mandir='${datarootdir}/man'
          737  +
          738  +ac_prev=
          739  +ac_dashdash=
          740  +for ac_option
          741  +do
          742  +  # If the previous option needs an argument, assign it.
          743  +  if test -n "$ac_prev"; then
          744  +    eval $ac_prev=\$ac_option
          745  +    ac_prev=
          746  +    continue
          747  +  fi
          748  +
          749  +  case $ac_option in
          750  +  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
          751  +  *)	ac_optarg=yes ;;
          752  +  esac
          753  +
          754  +  # Accept the important Cygnus configure options, so we can diagnose typos.
          755  +
          756  +  case $ac_dashdash$ac_option in
          757  +  --)
          758  +    ac_dashdash=yes ;;
          759  +
          760  +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
          761  +    ac_prev=bindir ;;
          762  +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
          763  +    bindir=$ac_optarg ;;
          764  +
          765  +  -build | --build | --buil | --bui | --bu)
          766  +    ac_prev=build_alias ;;
          767  +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
          768  +    build_alias=$ac_optarg ;;
          769  +
          770  +  -cache-file | --cache-file | --cache-fil | --cache-fi \
          771  +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
          772  +    ac_prev=cache_file ;;
          773  +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
          774  +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
          775  +    cache_file=$ac_optarg ;;
          776  +
          777  +  --config-cache | -C)
          778  +    cache_file=config.cache ;;
          779  +
          780  +  -datadir | --datadir | --datadi | --datad)
          781  +    ac_prev=datadir ;;
          782  +  -datadir=* | --datadir=* | --datadi=* | --datad=*)
          783  +    datadir=$ac_optarg ;;
          784  +
          785  +  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
          786  +  | --dataroo | --dataro | --datar)
          787  +    ac_prev=datarootdir ;;
          788  +  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
          789  +  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
          790  +    datarootdir=$ac_optarg ;;
          791  +
          792  +  -disable-* | --disable-*)
          793  +    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
          794  +    # Reject names that are not valid shell variable names.
          795  +    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
          796  +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
          797  +   { (exit 1); exit 1; }; }
          798  +    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
          799  +    eval enable_$ac_feature=no ;;
          800  +
          801  +  -docdir | --docdir | --docdi | --doc | --do)
          802  +    ac_prev=docdir ;;
          803  +  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
          804  +    docdir=$ac_optarg ;;
          805  +
          806  +  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
          807  +    ac_prev=dvidir ;;
          808  +  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
          809  +    dvidir=$ac_optarg ;;
          810  +
          811  +  -enable-* | --enable-*)
          812  +    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
          813  +    # Reject names that are not valid shell variable names.
          814  +    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
          815  +      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
          816  +   { (exit 1); exit 1; }; }
          817  +    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
          818  +    eval enable_$ac_feature=\$ac_optarg ;;
          819  +
          820  +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
          821  +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
          822  +  | --exec | --exe | --ex)
          823  +    ac_prev=exec_prefix ;;
          824  +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
          825  +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
          826  +  | --exec=* | --exe=* | --ex=*)
          827  +    exec_prefix=$ac_optarg ;;
          828  +
          829  +  -gas | --gas | --ga | --g)
          830  +    # Obsolete; use --with-gas.
          831  +    with_gas=yes ;;
          832  +
          833  +  -help | --help | --hel | --he | -h)
          834  +    ac_init_help=long ;;
          835  +  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
          836  +    ac_init_help=recursive ;;
          837  +  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
          838  +    ac_init_help=short ;;
          839  +
          840  +  -host | --host | --hos | --ho)
          841  +    ac_prev=host_alias ;;
          842  +  -host=* | --host=* | --hos=* | --ho=*)
          843  +    host_alias=$ac_optarg ;;
          844  +
          845  +  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
          846  +    ac_prev=htmldir ;;
          847  +  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
          848  +  | --ht=*)
          849  +    htmldir=$ac_optarg ;;
          850  +
          851  +  -includedir | --includedir | --includedi | --included | --include \
          852  +  | --includ | --inclu | --incl | --inc)
          853  +    ac_prev=includedir ;;
          854  +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
          855  +  | --includ=* | --inclu=* | --incl=* | --inc=*)
          856  +    includedir=$ac_optarg ;;
          857  +
          858  +  -infodir | --infodir | --infodi | --infod | --info | --inf)
          859  +    ac_prev=infodir ;;
          860  +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
          861  +    infodir=$ac_optarg ;;
          862  +
          863  +  -libdir | --libdir | --libdi | --libd)
          864  +    ac_prev=libdir ;;
          865  +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
          866  +    libdir=$ac_optarg ;;
          867  +
          868  +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
          869  +  | --libexe | --libex | --libe)
          870  +    ac_prev=libexecdir ;;
          871  +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
          872  +  | --libexe=* | --libex=* | --libe=*)
          873  +    libexecdir=$ac_optarg ;;
          874  +
          875  +  -localedir | --localedir | --localedi | --localed | --locale)
          876  +    ac_prev=localedir ;;
          877  +  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
          878  +    localedir=$ac_optarg ;;
          879  +
          880  +  -localstatedir | --localstatedir | --localstatedi | --localstated \
          881  +  | --localstate | --localstat | --localsta | --localst | --locals)
          882  +    ac_prev=localstatedir ;;
          883  +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
          884  +  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
          885  +    localstatedir=$ac_optarg ;;
          886  +
          887  +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
          888  +    ac_prev=mandir ;;
          889  +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
          890  +    mandir=$ac_optarg ;;
          891  +
          892  +  -nfp | --nfp | --nf)
          893  +    # Obsolete; use --without-fp.
          894  +    with_fp=no ;;
          895  +
          896  +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
          897  +  | --no-cr | --no-c | -n)
          898  +    no_create=yes ;;
          899  +
          900  +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
          901  +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
          902  +    no_recursion=yes ;;
          903  +
          904  +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
          905  +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
          906  +  | --oldin | --oldi | --old | --ol | --o)
          907  +    ac_prev=oldincludedir ;;
          908  +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
          909  +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
          910  +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
          911  +    oldincludedir=$ac_optarg ;;
          912  +
          913  +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
          914  +    ac_prev=prefix ;;
          915  +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
          916  +    prefix=$ac_optarg ;;
          917  +
          918  +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
          919  +  | --program-pre | --program-pr | --program-p)
          920  +    ac_prev=program_prefix ;;
          921  +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
          922  +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
          923  +    program_prefix=$ac_optarg ;;
          924  +
          925  +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
          926  +  | --program-suf | --program-su | --program-s)
          927  +    ac_prev=program_suffix ;;
          928  +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
          929  +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
          930  +    program_suffix=$ac_optarg ;;
          931  +
          932  +  -program-transform-name | --program-transform-name \
          933  +  | --program-transform-nam | --program-transform-na \
          934  +  | --program-transform-n | --program-transform- \
          935  +  | --program-transform | --program-transfor \
          936  +  | --program-transfo | --program-transf \
          937  +  | --program-trans | --program-tran \
          938  +  | --progr-tra | --program-tr | --program-t)
          939  +    ac_prev=program_transform_name ;;
          940  +  -program-transform-name=* | --program-transform-name=* \
          941  +  | --program-transform-nam=* | --program-transform-na=* \
          942  +  | --program-transform-n=* | --program-transform-=* \
          943  +  | --program-transform=* | --program-transfor=* \
          944  +  | --program-transfo=* | --program-transf=* \
          945  +  | --program-trans=* | --program-tran=* \
          946  +  | --progr-tra=* | --program-tr=* | --program-t=*)
          947  +    program_transform_name=$ac_optarg ;;
          948  +
          949  +  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
          950  +    ac_prev=pdfdir ;;
          951  +  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
          952  +    pdfdir=$ac_optarg ;;
          953  +
          954  +  -psdir | --psdir | --psdi | --psd | --ps)
          955  +    ac_prev=psdir ;;
          956  +  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
          957  +    psdir=$ac_optarg ;;
          958  +
          959  +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
          960  +  | -silent | --silent | --silen | --sile | --sil)
          961  +    silent=yes ;;
          962  +
          963  +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
          964  +    ac_prev=sbindir ;;
          965  +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
          966  +  | --sbi=* | --sb=*)
          967  +    sbindir=$ac_optarg ;;
          968  +
          969  +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
          970  +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
          971  +  | --sharedst | --shareds | --shared | --share | --shar \
          972  +  | --sha | --sh)
          973  +    ac_prev=sharedstatedir ;;
          974  +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
          975  +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
          976  +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
          977  +  | --sha=* | --sh=*)
          978  +    sharedstatedir=$ac_optarg ;;
          979  +
          980  +  -site | --site | --sit)
          981  +    ac_prev=site ;;
          982  +  -site=* | --site=* | --sit=*)
          983  +    site=$ac_optarg ;;
          984  +
          985  +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
          986  +    ac_prev=srcdir ;;
          987  +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
          988  +    srcdir=$ac_optarg ;;
          989  +
          990  +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
          991  +  | --syscon | --sysco | --sysc | --sys | --sy)
          992  +    ac_prev=sysconfdir ;;
          993  +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
          994  +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
          995  +    sysconfdir=$ac_optarg ;;
          996  +
          997  +  -target | --target | --targe | --targ | --tar | --ta | --t)
          998  +    ac_prev=target_alias ;;
          999  +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
         1000  +    target_alias=$ac_optarg ;;
         1001  +
         1002  +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
         1003  +    verbose=yes ;;
         1004  +
         1005  +  -version | --version | --versio | --versi | --vers | -V)
         1006  +    ac_init_version=: ;;
         1007  +
         1008  +  -with-* | --with-*)
         1009  +    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
         1010  +    # Reject names that are not valid shell variable names.
         1011  +    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
         1012  +      { echo "$as_me: error: invalid package name: $ac_package" >&2
         1013  +   { (exit 1); exit 1; }; }
         1014  +    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
         1015  +    eval with_$ac_package=\$ac_optarg ;;
         1016  +
         1017  +  -without-* | --without-*)
         1018  +    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
         1019  +    # Reject names that are not valid shell variable names.
         1020  +    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
         1021  +      { echo "$as_me: error: invalid package name: $ac_package" >&2
         1022  +   { (exit 1); exit 1; }; }
         1023  +    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
         1024  +    eval with_$ac_package=no ;;
         1025  +
         1026  +  --x)
         1027  +    # Obsolete; use --with-x.
         1028  +    with_x=yes ;;
         1029  +
         1030  +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
         1031  +  | --x-incl | --x-inc | --x-in | --x-i)
         1032  +    ac_prev=x_includes ;;
         1033  +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
         1034  +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
         1035  +    x_includes=$ac_optarg ;;
         1036  +
         1037  +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
         1038  +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
         1039  +    ac_prev=x_libraries ;;
         1040  +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
         1041  +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
         1042  +    x_libraries=$ac_optarg ;;
         1043  +
         1044  +  -*) { echo "$as_me: error: unrecognized option: $ac_option
         1045  +Try \`$0 --help' for more information." >&2
         1046  +   { (exit 1); exit 1; }; }
         1047  +    ;;
         1048  +
         1049  +  *=*)
         1050  +    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
         1051  +    # Reject names that are not valid shell variable names.
         1052  +    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
         1053  +      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
         1054  +   { (exit 1); exit 1; }; }
         1055  +    eval $ac_envvar=\$ac_optarg
         1056  +    export $ac_envvar ;;
         1057  +
         1058  +  *)
         1059  +    # FIXME: should be removed in autoconf 3.0.
         1060  +    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
         1061  +    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
         1062  +      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
         1063  +    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
         1064  +    ;;
         1065  +
         1066  +  esac
         1067  +done
         1068  +
         1069  +if test -n "$ac_prev"; then
         1070  +  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
         1071  +  { echo "$as_me: error: missing argument to $ac_option" >&2
         1072  +   { (exit 1); exit 1; }; }
         1073  +fi
         1074  +
         1075  +# Be sure to have absolute directory names.
         1076  +for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
         1077  +		datadir sysconfdir sharedstatedir localstatedir includedir \
         1078  +		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
         1079  +		libdir localedir mandir
         1080  +do
         1081  +  eval ac_val=\$$ac_var
         1082  +  case $ac_val in
         1083  +    [\\/$]* | ?:[\\/]* )  continue;;
         1084  +    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
         1085  +  esac
         1086  +  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
         1087  +   { (exit 1); exit 1; }; }
         1088  +done
         1089  +
         1090  +# There might be people who depend on the old broken behavior: `$host'
         1091  +# used to hold the argument of --host etc.
         1092  +# FIXME: To remove some day.
         1093  +build=$build_alias
         1094  +host=$host_alias
         1095  +target=$target_alias
         1096  +
         1097  +# FIXME: To remove some day.
         1098  +if test "x$host_alias" != x; then
         1099  +  if test "x$build_alias" = x; then
         1100  +    cross_compiling=maybe
         1101  +    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
         1102  +    If a cross compiler is detected then cross compile mode will be used." >&2
         1103  +  elif test "x$build_alias" != "x$host_alias"; then
         1104  +    cross_compiling=yes
         1105  +  fi
         1106  +fi
         1107  +
         1108  +ac_tool_prefix=
         1109  +test -n "$host_alias" && ac_tool_prefix=$host_alias-
         1110  +
         1111  +test "$silent" = yes && exec 6>/dev/null
         1112  +
         1113  +
         1114  +ac_pwd=`pwd` && test -n "$ac_pwd" &&
         1115  +ac_ls_di=`ls -di .` &&
         1116  +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
         1117  +  { echo "$as_me: error: Working directory cannot be determined" >&2
         1118  +   { (exit 1); exit 1; }; }
         1119  +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
         1120  +  { echo "$as_me: error: pwd does not report name of working directory" >&2
         1121  +   { (exit 1); exit 1; }; }
         1122  +
         1123  +
         1124  +# Find the source files, if location was not specified.
         1125  +if test -z "$srcdir"; then
         1126  +  ac_srcdir_defaulted=yes
         1127  +  # Try the directory containing this script, then the parent directory.
         1128  +  ac_confdir=`$as_dirname -- "$0" ||
         1129  +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         1130  +	 X"$0" : 'X\(//\)[^/]' \| \
         1131  +	 X"$0" : 'X\(//\)$' \| \
         1132  +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
         1133  +echo X"$0" |
         1134  +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
         1135  +	    s//\1/
         1136  +	    q
         1137  +	  }
         1138  +	  /^X\(\/\/\)[^/].*/{
         1139  +	    s//\1/
         1140  +	    q
         1141  +	  }
         1142  +	  /^X\(\/\/\)$/{
         1143  +	    s//\1/
         1144  +	    q
         1145  +	  }
         1146  +	  /^X\(\/\).*/{
         1147  +	    s//\1/
         1148  +	    q
         1149  +	  }
         1150  +	  s/.*/./; q'`
         1151  +  srcdir=$ac_confdir
         1152  +  if test ! -r "$srcdir/$ac_unique_file"; then
         1153  +    srcdir=..
         1154  +  fi
         1155  +else
         1156  +  ac_srcdir_defaulted=no
         1157  +fi
         1158  +if test ! -r "$srcdir/$ac_unique_file"; then
         1159  +  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
         1160  +  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
         1161  +   { (exit 1); exit 1; }; }
         1162  +fi
         1163  +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
         1164  +ac_abs_confdir=`(
         1165  +	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
         1166  +   { (exit 1); exit 1; }; }
         1167  +	pwd)`
         1168  +# When building in place, set srcdir=.
         1169  +if test "$ac_abs_confdir" = "$ac_pwd"; then
         1170  +  srcdir=.
         1171  +fi
         1172  +# Remove unnecessary trailing slashes from srcdir.
         1173  +# Double slashes in file names in object file debugging info
         1174  +# mess up M-x gdb in Emacs.
         1175  +case $srcdir in
         1176  +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
         1177  +esac
         1178  +for ac_var in $ac_precious_vars; do
         1179  +  eval ac_env_${ac_var}_set=\${${ac_var}+set}
         1180  +  eval ac_env_${ac_var}_value=\$${ac_var}
         1181  +  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
         1182  +  eval ac_cv_env_${ac_var}_value=\$${ac_var}
         1183  +done
         1184  +
         1185  +#
         1186  +# Report the --help message.
         1187  +#
         1188  +if test "$ac_init_help" = "long"; then
         1189  +  # Omit some internal or obsolete options to make the list less imposing.
         1190  +  # This message is too long to be a string in the A/UX 3.1 sh.
         1191  +  cat <<_ACEOF
         1192  +\`configure' configures fossil 20110528 to adapt to many kinds of systems.
         1193  +
         1194  +Usage: $0 [OPTION]... [VAR=VALUE]...
         1195  +
         1196  +To assign environment variables (e.g., CC, CFLAGS...), specify them as
         1197  +VAR=VALUE.  See below for descriptions of some of the useful variables.
         1198  +
         1199  +Defaults for the options are specified in brackets.
         1200  +
         1201  +Configuration:
         1202  +  -h, --help              display this help and exit
         1203  +      --help=short        display options specific to this package
         1204  +      --help=recursive    display the short help of all the included packages
         1205  +  -V, --version           display version information and exit
         1206  +  -q, --quiet, --silent   do not print \`checking...' messages
         1207  +      --cache-file=FILE   cache test results in FILE [disabled]
         1208  +  -C, --config-cache      alias for \`--cache-file=config.cache'
         1209  +  -n, --no-create         do not create output files
         1210  +      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
         1211  +
         1212  +Installation directories:
         1213  +  --prefix=PREFIX         install architecture-independent files in PREFIX
         1214  +			  [$ac_default_prefix]
         1215  +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
         1216  +			  [PREFIX]
         1217  +
         1218  +By default, \`make install' will install all the files in
         1219  +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
         1220  +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
         1221  +for instance \`--prefix=\$HOME'.
         1222  +
         1223  +For better control, use the options below.
         1224  +
         1225  +Fine tuning of the installation directories:
         1226  +  --bindir=DIR           user executables [EPREFIX/bin]
         1227  +  --sbindir=DIR          system admin executables [EPREFIX/sbin]
         1228  +  --libexecdir=DIR       program executables [EPREFIX/libexec]
         1229  +  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
         1230  +  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
         1231  +  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
         1232  +  --libdir=DIR           object code libraries [EPREFIX/lib]
         1233  +  --includedir=DIR       C header files [PREFIX/include]
         1234  +  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
         1235  +  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
         1236  +  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
         1237  +  --infodir=DIR          info documentation [DATAROOTDIR/info]
         1238  +  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
         1239  +  --mandir=DIR           man documentation [DATAROOTDIR/man]
         1240  +  --docdir=DIR           documentation root [DATAROOTDIR/doc/fossil]
         1241  +  --htmldir=DIR          html documentation [DOCDIR]
         1242  +  --dvidir=DIR           dvi documentation [DOCDIR]
         1243  +  --pdfdir=DIR           pdf documentation [DOCDIR]
         1244  +  --psdir=DIR            ps documentation [DOCDIR]
         1245  +_ACEOF
         1246  +
         1247  +  cat <<\_ACEOF
         1248  +
         1249  +System types:
         1250  +  --build=BUILD     configure for building on BUILD [guessed]
         1251  +  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
         1252  +_ACEOF
         1253  +fi
         1254  +
         1255  +if test -n "$ac_init_help"; then
         1256  +  case $ac_init_help in
         1257  +     short | recursive ) echo "Configuration of fossil 20110528:";;
         1258  +   esac
         1259  +  cat <<\_ACEOF
         1260  +
         1261  +Optional Features:
         1262  +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
         1263  +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
         1264  +  --enable-openssl        Include HTTPS support using for OpenSSL
         1265  +
         1266  +Optional Packages:
         1267  +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
         1268  +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
         1269  +  --with-openssl=DIR      root of the OpenSSL directory
         1270  +
         1271  +Some influential environment variables:
         1272  +  CC          C compiler command
         1273  +  CFLAGS      C compiler flags
         1274  +  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
         1275  +              nonstandard directory <lib dir>
         1276  +  LIBS        libraries to pass to the linker, e.g. -l<library>
         1277  +  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
         1278  +              you have headers in a nonstandard directory <include dir>
         1279  +  CPP         C preprocessor
         1280  +
         1281  +Use these variables to override the choices made by `configure' or to help
         1282  +it to find libraries and programs with nonstandard names/locations.
         1283  +
         1284  +Report bugs to <joerg@NetBSD.org>.
         1285  +_ACEOF
         1286  +ac_status=$?
         1287  +fi
         1288  +
         1289  +if test "$ac_init_help" = "recursive"; then
         1290  +  # If there are subdirs, report their specific --help.
         1291  +  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
         1292  +    test -d "$ac_dir" || continue
         1293  +    ac_builddir=.
         1294  +
         1295  +case "$ac_dir" in
         1296  +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
         1297  +*)
         1298  +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
         1299  +  # A ".." for each directory in $ac_dir_suffix.
         1300  +  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
         1301  +  case $ac_top_builddir_sub in
         1302  +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
         1303  +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
         1304  +  esac ;;
         1305  +esac
         1306  +ac_abs_top_builddir=$ac_pwd
         1307  +ac_abs_builddir=$ac_pwd$ac_dir_suffix
         1308  +# for backward compatibility:
         1309  +ac_top_builddir=$ac_top_build_prefix
         1310  +
         1311  +case $srcdir in
         1312  +  .)  # We are building in place.
         1313  +    ac_srcdir=.
         1314  +    ac_top_srcdir=$ac_top_builddir_sub
         1315  +    ac_abs_top_srcdir=$ac_pwd ;;
         1316  +  [\\/]* | ?:[\\/]* )  # Absolute name.
         1317  +    ac_srcdir=$srcdir$ac_dir_suffix;
         1318  +    ac_top_srcdir=$srcdir
         1319  +    ac_abs_top_srcdir=$srcdir ;;
         1320  +  *) # Relative name.
         1321  +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
         1322  +    ac_top_srcdir=$ac_top_build_prefix$srcdir
         1323  +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
         1324  +esac
         1325  +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
         1326  +
         1327  +    cd "$ac_dir" || { ac_status=$?; continue; }
         1328  +    # Check for guested configure.
         1329  +    if test -f "$ac_srcdir/configure.gnu"; then
         1330  +      echo &&
         1331  +      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
         1332  +    elif test -f "$ac_srcdir/configure"; then
         1333  +      echo &&
         1334  +      $SHELL "$ac_srcdir/configure" --help=recursive
         1335  +    else
         1336  +      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
         1337  +    fi || ac_status=$?
         1338  +    cd "$ac_pwd" || { ac_status=$?; break; }
         1339  +  done
         1340  +fi
         1341  +
         1342  +test -n "$ac_init_help" && exit $ac_status
         1343  +if $ac_init_version; then
         1344  +  cat <<\_ACEOF
         1345  +fossil configure 20110528
         1346  +generated by GNU Autoconf 2.61
         1347  +
         1348  +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
         1349  +2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
         1350  +This configure script is free software; the Free Software Foundation
         1351  +gives unlimited permission to copy, distribute and modify it.
         1352  +_ACEOF
         1353  +  exit
         1354  +fi
         1355  +cat >config.log <<_ACEOF
         1356  +This file contains any messages produced by compilers while
         1357  +running configure, to aid debugging if configure makes a mistake.
         1358  +
         1359  +It was created by fossil $as_me 20110528, which was
         1360  +generated by GNU Autoconf 2.61.  Invocation command line was
         1361  +
         1362  +  $ $0 $@
         1363  +
         1364  +_ACEOF
         1365  +exec 5>>config.log
         1366  +{
         1367  +cat <<_ASUNAME
         1368  +## --------- ##
         1369  +## Platform. ##
         1370  +## --------- ##
         1371  +
         1372  +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
         1373  +uname -m = `(uname -m) 2>/dev/null || echo unknown`
         1374  +uname -r = `(uname -r) 2>/dev/null || echo unknown`
         1375  +uname -s = `(uname -s) 2>/dev/null || echo unknown`
         1376  +uname -v = `(uname -v) 2>/dev/null || echo unknown`
         1377  +
         1378  +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
         1379  +/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
         1380  +
         1381  +/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
         1382  +/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
         1383  +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
         1384  +/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
         1385  +/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
         1386  +/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
         1387  +/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
         1388  +
         1389  +_ASUNAME
         1390  +
         1391  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         1392  +for as_dir in $PATH
         1393  +do
         1394  +  IFS=$as_save_IFS
         1395  +  test -z "$as_dir" && as_dir=.
         1396  +  echo "PATH: $as_dir"
         1397  +done
         1398  +IFS=$as_save_IFS
         1399  +
         1400  +} >&5
         1401  +
         1402  +cat >&5 <<_ACEOF
         1403  +
         1404  +
         1405  +## ----------- ##
         1406  +## Core tests. ##
         1407  +## ----------- ##
         1408  +
         1409  +_ACEOF
         1410  +
         1411  +
         1412  +# Keep a trace of the command line.
         1413  +# Strip out --no-create and --no-recursion so they do not pile up.
         1414  +# Strip out --silent because we don't want to record it for future runs.
         1415  +# Also quote any args containing shell meta-characters.
         1416  +# Make two passes to allow for proper duplicate-argument suppression.
         1417  +ac_configure_args=
         1418  +ac_configure_args0=
         1419  +ac_configure_args1=
         1420  +ac_must_keep_next=false
         1421  +for ac_pass in 1 2
         1422  +do
         1423  +  for ac_arg
         1424  +  do
         1425  +    case $ac_arg in
         1426  +    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
         1427  +    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
         1428  +    | -silent | --silent | --silen | --sile | --sil)
         1429  +      continue ;;
         1430  +    *\'*)
         1431  +      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
         1432  +    esac
         1433  +    case $ac_pass in
         1434  +    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
         1435  +    2)
         1436  +      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
         1437  +      if test $ac_must_keep_next = true; then
         1438  +	ac_must_keep_next=false # Got value, back to normal.
         1439  +      else
         1440  +	case $ac_arg in
         1441  +	  *=* | --config-cache | -C | -disable-* | --disable-* \
         1442  +	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
         1443  +	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
         1444  +	  | -with-* | --with-* | -without-* | --without-* | --x)
         1445  +	    case "$ac_configure_args0 " in
         1446  +	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
         1447  +	    esac
         1448  +	    ;;
         1449  +	  -* ) ac_must_keep_next=true ;;
         1450  +	esac
         1451  +      fi
         1452  +      ac_configure_args="$ac_configure_args '$ac_arg'"
         1453  +      ;;
         1454  +    esac
         1455  +  done
         1456  +done
         1457  +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
         1458  +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
         1459  +
         1460  +# When interrupted or exit'd, cleanup temporary files, and complete
         1461  +# config.log.  We remove comments because anyway the quotes in there
         1462  +# would cause problems or look ugly.
         1463  +# WARNING: Use '\'' to represent an apostrophe within the trap.
         1464  +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
         1465  +trap 'exit_status=$?
         1466  +  # Save into config.log some information that might help in debugging.
         1467  +  {
         1468  +    echo
         1469  +
         1470  +    cat <<\_ASBOX
         1471  +## ---------------- ##
         1472  +## Cache variables. ##
         1473  +## ---------------- ##
         1474  +_ASBOX
         1475  +    echo
         1476  +    # The following way of writing the cache mishandles newlines in values,
         1477  +(
         1478  +  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
         1479  +    eval ac_val=\$$ac_var
         1480  +    case $ac_val in #(
         1481  +    *${as_nl}*)
         1482  +      case $ac_var in #(
         1483  +      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
         1484  +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
         1485  +      esac
         1486  +      case $ac_var in #(
         1487  +      _ | IFS | as_nl) ;; #(
         1488  +      *) $as_unset $ac_var ;;
         1489  +      esac ;;
         1490  +    esac
         1491  +  done
         1492  +  (set) 2>&1 |
         1493  +    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
         1494  +    *${as_nl}ac_space=\ *)
         1495  +      sed -n \
         1496  +	"s/'\''/'\''\\\\'\'''\''/g;
         1497  +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
         1498  +      ;; #(
         1499  +    *)
         1500  +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
         1501  +      ;;
         1502  +    esac |
         1503  +    sort
         1504  +)
         1505  +    echo
         1506  +
         1507  +    cat <<\_ASBOX
         1508  +## ----------------- ##
         1509  +## Output variables. ##
         1510  +## ----------------- ##
         1511  +_ASBOX
         1512  +    echo
         1513  +    for ac_var in $ac_subst_vars
         1514  +    do
         1515  +      eval ac_val=\$$ac_var
         1516  +      case $ac_val in
         1517  +      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
         1518  +      esac
         1519  +      echo "$ac_var='\''$ac_val'\''"
         1520  +    done | sort
         1521  +    echo
         1522  +
         1523  +    if test -n "$ac_subst_files"; then
         1524  +      cat <<\_ASBOX
         1525  +## ------------------- ##
         1526  +## File substitutions. ##
         1527  +## ------------------- ##
         1528  +_ASBOX
         1529  +      echo
         1530  +      for ac_var in $ac_subst_files
         1531  +      do
         1532  +	eval ac_val=\$$ac_var
         1533  +	case $ac_val in
         1534  +	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
         1535  +	esac
         1536  +	echo "$ac_var='\''$ac_val'\''"
         1537  +      done | sort
         1538  +      echo
         1539  +    fi
         1540  +
         1541  +    if test -s confdefs.h; then
         1542  +      cat <<\_ASBOX
         1543  +## ----------- ##
         1544  +## confdefs.h. ##
         1545  +## ----------- ##
         1546  +_ASBOX
         1547  +      echo
         1548  +      cat confdefs.h
         1549  +      echo
         1550  +    fi
         1551  +    test "$ac_signal" != 0 &&
         1552  +      echo "$as_me: caught signal $ac_signal"
         1553  +    echo "$as_me: exit $exit_status"
         1554  +  } >&5
         1555  +  rm -f core *.core core.conftest.* &&
         1556  +    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
         1557  +    exit $exit_status
         1558  +' 0
         1559  +for ac_signal in 1 2 13 15; do
         1560  +  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
         1561  +done
         1562  +ac_signal=0
         1563  +
         1564  +# confdefs.h avoids OS command line length limits that DEFS can exceed.
         1565  +rm -f -r conftest* confdefs.h
         1566  +
         1567  +# Predefined preprocessor variables.
         1568  +
         1569  +cat >>confdefs.h <<_ACEOF
         1570  +#define PACKAGE_NAME "$PACKAGE_NAME"
         1571  +_ACEOF
         1572  +
         1573  +
         1574  +cat >>confdefs.h <<_ACEOF
         1575  +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
         1576  +_ACEOF
         1577  +
         1578  +
         1579  +cat >>confdefs.h <<_ACEOF
         1580  +#define PACKAGE_VERSION "$PACKAGE_VERSION"
         1581  +_ACEOF
         1582  +
         1583  +
         1584  +cat >>confdefs.h <<_ACEOF
         1585  +#define PACKAGE_STRING "$PACKAGE_STRING"
         1586  +_ACEOF
         1587  +
         1588  +
         1589  +cat >>confdefs.h <<_ACEOF
         1590  +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
         1591  +_ACEOF
         1592  +
         1593  +
         1594  +# Let the site file select an alternate cache file if it wants to.
         1595  +# Prefer explicitly selected file to automatically selected ones.
         1596  +if test -n "$CONFIG_SITE"; then
         1597  +  set x "$CONFIG_SITE"
         1598  +elif test "x$prefix" != xNONE; then
         1599  +  set x "$prefix/share/config.site" "$prefix/etc/config.site"
         1600  +else
         1601  +  set x "$ac_default_prefix/share/config.site" \
         1602  +	"$ac_default_prefix/etc/config.site"
         1603  +fi
         1604  +shift
         1605  +for ac_site_file
         1606  +do
         1607  +  if test -r "$ac_site_file"; then
         1608  +    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
         1609  +echo "$as_me: loading site script $ac_site_file" >&6;}
         1610  +    sed 's/^/| /' "$ac_site_file" >&5
         1611  +    . "$ac_site_file"
         1612  +  fi
         1613  +done
         1614  +
         1615  +if test -r "$cache_file"; then
         1616  +  # Some versions of bash will fail to source /dev/null (special
         1617  +  # files actually), so we avoid doing that.
         1618  +  if test -f "$cache_file"; then
         1619  +    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
         1620  +echo "$as_me: loading cache $cache_file" >&6;}
         1621  +    case $cache_file in
         1622  +      [\\/]* | ?:[\\/]* ) . "$cache_file";;
         1623  +      *)                      . "./$cache_file";;
         1624  +    esac
         1625  +  fi
         1626  +else
         1627  +  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
         1628  +echo "$as_me: creating cache $cache_file" >&6;}
         1629  +  >$cache_file
         1630  +fi
         1631  +
         1632  +# Check that the precious variables saved in the cache have kept the same
         1633  +# value.
         1634  +ac_cache_corrupted=false
         1635  +for ac_var in $ac_precious_vars; do
         1636  +  eval ac_old_set=\$ac_cv_env_${ac_var}_set
         1637  +  eval ac_new_set=\$ac_env_${ac_var}_set
         1638  +  eval ac_old_val=\$ac_cv_env_${ac_var}_value
         1639  +  eval ac_new_val=\$ac_env_${ac_var}_value
         1640  +  case $ac_old_set,$ac_new_set in
         1641  +    set,)
         1642  +      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
         1643  +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
         1644  +      ac_cache_corrupted=: ;;
         1645  +    ,set)
         1646  +      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
         1647  +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
         1648  +      ac_cache_corrupted=: ;;
         1649  +    ,);;
         1650  +    *)
         1651  +      if test "x$ac_old_val" != "x$ac_new_val"; then
         1652  +	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
         1653  +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
         1654  +	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
         1655  +echo "$as_me:   former value:  $ac_old_val" >&2;}
         1656  +	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
         1657  +echo "$as_me:   current value: $ac_new_val" >&2;}
         1658  +	ac_cache_corrupted=:
         1659  +      fi;;
         1660  +  esac
         1661  +  # Pass precious variables to config.status.
         1662  +  if test "$ac_new_set" = set; then
         1663  +    case $ac_new_val in
         1664  +    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
         1665  +    *) ac_arg=$ac_var=$ac_new_val ;;
         1666  +    esac
         1667  +    case " $ac_configure_args " in
         1668  +      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
         1669  +      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
         1670  +    esac
         1671  +  fi
         1672  +done
         1673  +if $ac_cache_corrupted; then
         1674  +  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
         1675  +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
         1676  +  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
         1677  +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
         1678  +   { (exit 1); exit 1; }; }
         1679  +fi
         1680  +
         1681  +
         1682  +
         1683  +
         1684  +
         1685  +
         1686  +
         1687  +
         1688  +
         1689  +
         1690  +
         1691  +
         1692  +
         1693  +
         1694  +
         1695  +
         1696  +
         1697  +
         1698  +
         1699  +
         1700  +
         1701  +
         1702  +
         1703  +
         1704  +
         1705  +ac_ext=c
         1706  +ac_cpp='$CPP $CPPFLAGS'
         1707  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         1708  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         1709  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         1710  +
         1711  +
         1712  +
         1713  +ac_aux_dir=
         1714  +for ac_dir in autoconf "$srcdir"/autoconf; do
         1715  +  if test -f "$ac_dir/install-sh"; then
         1716  +    ac_aux_dir=$ac_dir
         1717  +    ac_install_sh="$ac_aux_dir/install-sh -c"
         1718  +    break
         1719  +  elif test -f "$ac_dir/install.sh"; then
         1720  +    ac_aux_dir=$ac_dir
         1721  +    ac_install_sh="$ac_aux_dir/install.sh -c"
         1722  +    break
         1723  +  elif test -f "$ac_dir/shtool"; then
         1724  +    ac_aux_dir=$ac_dir
         1725  +    ac_install_sh="$ac_aux_dir/shtool install -c"
         1726  +    break
         1727  +  fi
         1728  +done
         1729  +if test -z "$ac_aux_dir"; then
         1730  +  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
         1731  +echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
         1732  +   { (exit 1); exit 1; }; }
         1733  +fi
         1734  +
         1735  +# These three variables are undocumented and unsupported,
         1736  +# and are intended to be withdrawn in a future Autoconf release.
         1737  +# They can cause serious problems if a builder's source tree is in a directory
         1738  +# whose full name contains unusual characters.
         1739  +ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
         1740  +ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
         1741  +ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
         1742  +
         1743  +
         1744  +
         1745  +ac_config_headers="$ac_config_headers autoconfig.h"
         1746  +
         1747  +
         1748  +# Make sure we can run config.sub.
         1749  +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
         1750  +  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
         1751  +echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
         1752  +   { (exit 1); exit 1; }; }
         1753  +
         1754  +{ echo "$as_me:$LINENO: checking build system type" >&5
         1755  +echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
         1756  +if test "${ac_cv_build+set}" = set; then
         1757  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         1758  +else
         1759  +  ac_build_alias=$build_alias
         1760  +test "x$ac_build_alias" = x &&
         1761  +  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
         1762  +test "x$ac_build_alias" = x &&
         1763  +  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
         1764  +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
         1765  +   { (exit 1); exit 1; }; }
         1766  +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
         1767  +  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
         1768  +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
         1769  +   { (exit 1); exit 1; }; }
         1770  +
         1771  +fi
         1772  +{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
         1773  +echo "${ECHO_T}$ac_cv_build" >&6; }
         1774  +case $ac_cv_build in
         1775  +*-*-*) ;;
         1776  +*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
         1777  +echo "$as_me: error: invalid value of canonical build" >&2;}
         1778  +   { (exit 1); exit 1; }; };;
         1779  +esac
         1780  +build=$ac_cv_build
         1781  +ac_save_IFS=$IFS; IFS='-'
         1782  +set x $ac_cv_build
         1783  +shift
         1784  +build_cpu=$1
         1785  +build_vendor=$2
         1786  +shift; shift
         1787  +# Remember, the first character of IFS is used to create $*,
         1788  +# except with old shells:
         1789  +build_os=$*
         1790  +IFS=$ac_save_IFS
         1791  +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
         1792  +
         1793  +
         1794  +{ echo "$as_me:$LINENO: checking host system type" >&5
         1795  +echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
         1796  +if test "${ac_cv_host+set}" = set; then
         1797  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         1798  +else
         1799  +  if test "x$host_alias" = x; then
         1800  +  ac_cv_host=$ac_cv_build
         1801  +else
         1802  +  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
         1803  +    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
         1804  +echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
         1805  +   { (exit 1); exit 1; }; }
         1806  +fi
         1807  +
         1808  +fi
         1809  +{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
         1810  +echo "${ECHO_T}$ac_cv_host" >&6; }
         1811  +case $ac_cv_host in
         1812  +*-*-*) ;;
         1813  +*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
         1814  +echo "$as_me: error: invalid value of canonical host" >&2;}
         1815  +   { (exit 1); exit 1; }; };;
         1816  +esac
         1817  +host=$ac_cv_host
         1818  +ac_save_IFS=$IFS; IFS='-'
         1819  +set x $ac_cv_host
         1820  +shift
         1821  +host_cpu=$1
         1822  +host_vendor=$2
         1823  +shift; shift
         1824  +# Remember, the first character of IFS is used to create $*,
         1825  +# except with old shells:
         1826  +host_os=$*
         1827  +IFS=$ac_save_IFS
         1828  +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
         1829  +
         1830  +
         1831  +
         1832  +# Checks for programs.
         1833  +{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
         1834  +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
         1835  +set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
         1836  +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
         1837  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         1838  +else
         1839  +  cat >conftest.make <<\_ACEOF
         1840  +SHELL = /bin/sh
         1841  +all:
         1842  +	@echo '@@@%%%=$(MAKE)=@@@%%%'
         1843  +_ACEOF
         1844  +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
         1845  +case `${MAKE-make} -f conftest.make 2>/dev/null` in
         1846  +  *@@@%%%=?*=@@@%%%*)
         1847  +    eval ac_cv_prog_make_${ac_make}_set=yes;;
         1848  +  *)
         1849  +    eval ac_cv_prog_make_${ac_make}_set=no;;
         1850  +esac
         1851  +rm -f conftest.make
         1852  +fi
         1853  +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
         1854  +  { echo "$as_me:$LINENO: result: yes" >&5
         1855  +echo "${ECHO_T}yes" >&6; }
         1856  +  SET_MAKE=
         1857  +else
         1858  +  { echo "$as_me:$LINENO: result: no" >&5
         1859  +echo "${ECHO_T}no" >&6; }
         1860  +  SET_MAKE="MAKE=${MAKE-make}"
         1861  +fi
         1862  +
         1863  +ac_ext=c
         1864  +ac_cpp='$CPP $CPPFLAGS'
         1865  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         1866  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         1867  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         1868  +if test -n "$ac_tool_prefix"; then
         1869  +  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
         1870  +set dummy ${ac_tool_prefix}gcc; ac_word=$2
         1871  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         1872  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         1873  +if test "${ac_cv_prog_CC+set}" = set; then
         1874  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         1875  +else
         1876  +  if test -n "$CC"; then
         1877  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         1878  +else
         1879  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         1880  +for as_dir in $PATH
         1881  +do
         1882  +  IFS=$as_save_IFS
         1883  +  test -z "$as_dir" && as_dir=.
         1884  +  for ac_exec_ext in '' $ac_executable_extensions; do
         1885  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         1886  +    ac_cv_prog_CC="${ac_tool_prefix}gcc"
         1887  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         1888  +    break 2
         1889  +  fi
         1890  +done
         1891  +done
         1892  +IFS=$as_save_IFS
         1893  +
         1894  +fi
         1895  +fi
         1896  +CC=$ac_cv_prog_CC
         1897  +if test -n "$CC"; then
         1898  +  { echo "$as_me:$LINENO: result: $CC" >&5
         1899  +echo "${ECHO_T}$CC" >&6; }
         1900  +else
         1901  +  { echo "$as_me:$LINENO: result: no" >&5
         1902  +echo "${ECHO_T}no" >&6; }
         1903  +fi
         1904  +
         1905  +
         1906  +fi
         1907  +if test -z "$ac_cv_prog_CC"; then
         1908  +  ac_ct_CC=$CC
         1909  +  # Extract the first word of "gcc", so it can be a program name with args.
         1910  +set dummy gcc; ac_word=$2
         1911  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         1912  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         1913  +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
         1914  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         1915  +else
         1916  +  if test -n "$ac_ct_CC"; then
         1917  +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
         1918  +else
         1919  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         1920  +for as_dir in $PATH
         1921  +do
         1922  +  IFS=$as_save_IFS
         1923  +  test -z "$as_dir" && as_dir=.
         1924  +  for ac_exec_ext in '' $ac_executable_extensions; do
         1925  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         1926  +    ac_cv_prog_ac_ct_CC="gcc"
         1927  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         1928  +    break 2
         1929  +  fi
         1930  +done
         1931  +done
         1932  +IFS=$as_save_IFS
         1933  +
         1934  +fi
         1935  +fi
         1936  +ac_ct_CC=$ac_cv_prog_ac_ct_CC
         1937  +if test -n "$ac_ct_CC"; then
         1938  +  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
         1939  +echo "${ECHO_T}$ac_ct_CC" >&6; }
         1940  +else
         1941  +  { echo "$as_me:$LINENO: result: no" >&5
         1942  +echo "${ECHO_T}no" >&6; }
         1943  +fi
         1944  +
         1945  +  if test "x$ac_ct_CC" = x; then
         1946  +    CC=""
         1947  +  else
         1948  +    case $cross_compiling:$ac_tool_warned in
         1949  +yes:)
         1950  +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
         1951  +whose name does not start with the host triplet.  If you think this
         1952  +configuration is useful to you, please write to autoconf@gnu.org." >&5
         1953  +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
         1954  +whose name does not start with the host triplet.  If you think this
         1955  +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
         1956  +ac_tool_warned=yes ;;
         1957  +esac
         1958  +    CC=$ac_ct_CC
         1959  +  fi
         1960  +else
         1961  +  CC="$ac_cv_prog_CC"
         1962  +fi
         1963  +
         1964  +if test -z "$CC"; then
         1965  +          if test -n "$ac_tool_prefix"; then
         1966  +    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
         1967  +set dummy ${ac_tool_prefix}cc; ac_word=$2
         1968  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         1969  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         1970  +if test "${ac_cv_prog_CC+set}" = set; then
         1971  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         1972  +else
         1973  +  if test -n "$CC"; then
         1974  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         1975  +else
         1976  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         1977  +for as_dir in $PATH
         1978  +do
         1979  +  IFS=$as_save_IFS
         1980  +  test -z "$as_dir" && as_dir=.
         1981  +  for ac_exec_ext in '' $ac_executable_extensions; do
         1982  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         1983  +    ac_cv_prog_CC="${ac_tool_prefix}cc"
         1984  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         1985  +    break 2
         1986  +  fi
         1987  +done
         1988  +done
         1989  +IFS=$as_save_IFS
         1990  +
         1991  +fi
         1992  +fi
         1993  +CC=$ac_cv_prog_CC
         1994  +if test -n "$CC"; then
         1995  +  { echo "$as_me:$LINENO: result: $CC" >&5
         1996  +echo "${ECHO_T}$CC" >&6; }
         1997  +else
         1998  +  { echo "$as_me:$LINENO: result: no" >&5
         1999  +echo "${ECHO_T}no" >&6; }
         2000  +fi
         2001  +
         2002  +
         2003  +  fi
         2004  +fi
         2005  +if test -z "$CC"; then
         2006  +  # Extract the first word of "cc", so it can be a program name with args.
         2007  +set dummy cc; ac_word=$2
         2008  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         2009  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         2010  +if test "${ac_cv_prog_CC+set}" = set; then
         2011  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2012  +else
         2013  +  if test -n "$CC"; then
         2014  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         2015  +else
         2016  +  ac_prog_rejected=no
         2017  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2018  +for as_dir in $PATH
         2019  +do
         2020  +  IFS=$as_save_IFS
         2021  +  test -z "$as_dir" && as_dir=.
         2022  +  for ac_exec_ext in '' $ac_executable_extensions; do
         2023  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         2024  +    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
         2025  +       ac_prog_rejected=yes
         2026  +       continue
         2027  +     fi
         2028  +    ac_cv_prog_CC="cc"
         2029  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         2030  +    break 2
         2031  +  fi
         2032  +done
         2033  +done
         2034  +IFS=$as_save_IFS
         2035  +
         2036  +if test $ac_prog_rejected = yes; then
         2037  +  # We found a bogon in the path, so make sure we never use it.
         2038  +  set dummy $ac_cv_prog_CC
         2039  +  shift
         2040  +  if test $# != 0; then
         2041  +    # We chose a different compiler from the bogus one.
         2042  +    # However, it has the same basename, so the bogon will be chosen
         2043  +    # first if we set CC to just the basename; use the full file name.
         2044  +    shift
         2045  +    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
         2046  +  fi
         2047  +fi
         2048  +fi
         2049  +fi
         2050  +CC=$ac_cv_prog_CC
         2051  +if test -n "$CC"; then
         2052  +  { echo "$as_me:$LINENO: result: $CC" >&5
         2053  +echo "${ECHO_T}$CC" >&6; }
         2054  +else
         2055  +  { echo "$as_me:$LINENO: result: no" >&5
         2056  +echo "${ECHO_T}no" >&6; }
         2057  +fi
         2058  +
         2059  +
         2060  +fi
         2061  +if test -z "$CC"; then
         2062  +  if test -n "$ac_tool_prefix"; then
         2063  +  for ac_prog in cl.exe
         2064  +  do
         2065  +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
         2066  +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
         2067  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         2068  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         2069  +if test "${ac_cv_prog_CC+set}" = set; then
         2070  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2071  +else
         2072  +  if test -n "$CC"; then
         2073  +  ac_cv_prog_CC="$CC" # Let the user override the test.
         2074  +else
         2075  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2076  +for as_dir in $PATH
         2077  +do
         2078  +  IFS=$as_save_IFS
         2079  +  test -z "$as_dir" && as_dir=.
         2080  +  for ac_exec_ext in '' $ac_executable_extensions; do
         2081  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         2082  +    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
         2083  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         2084  +    break 2
         2085  +  fi
         2086  +done
         2087  +done
         2088  +IFS=$as_save_IFS
         2089  +
         2090  +fi
         2091  +fi
         2092  +CC=$ac_cv_prog_CC
         2093  +if test -n "$CC"; then
         2094  +  { echo "$as_me:$LINENO: result: $CC" >&5
         2095  +echo "${ECHO_T}$CC" >&6; }
         2096  +else
         2097  +  { echo "$as_me:$LINENO: result: no" >&5
         2098  +echo "${ECHO_T}no" >&6; }
         2099  +fi
         2100  +
         2101  +
         2102  +    test -n "$CC" && break
         2103  +  done
         2104  +fi
         2105  +if test -z "$CC"; then
         2106  +  ac_ct_CC=$CC
         2107  +  for ac_prog in cl.exe
         2108  +do
         2109  +  # Extract the first word of "$ac_prog", so it can be a program name with args.
         2110  +set dummy $ac_prog; ac_word=$2
         2111  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         2112  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         2113  +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
         2114  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2115  +else
         2116  +  if test -n "$ac_ct_CC"; then
         2117  +  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
         2118  +else
         2119  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         2120  +for as_dir in $PATH
         2121  +do
         2122  +  IFS=$as_save_IFS
         2123  +  test -z "$as_dir" && as_dir=.
         2124  +  for ac_exec_ext in '' $ac_executable_extensions; do
         2125  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         2126  +    ac_cv_prog_ac_ct_CC="$ac_prog"
         2127  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         2128  +    break 2
         2129  +  fi
         2130  +done
         2131  +done
         2132  +IFS=$as_save_IFS
         2133  +
         2134  +fi
         2135  +fi
         2136  +ac_ct_CC=$ac_cv_prog_ac_ct_CC
         2137  +if test -n "$ac_ct_CC"; then
         2138  +  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
         2139  +echo "${ECHO_T}$ac_ct_CC" >&6; }
         2140  +else
         2141  +  { echo "$as_me:$LINENO: result: no" >&5
         2142  +echo "${ECHO_T}no" >&6; }
         2143  +fi
         2144  +
         2145  +
         2146  +  test -n "$ac_ct_CC" && break
         2147  +done
         2148  +
         2149  +  if test "x$ac_ct_CC" = x; then
         2150  +    CC=""
         2151  +  else
         2152  +    case $cross_compiling:$ac_tool_warned in
         2153  +yes:)
         2154  +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
         2155  +whose name does not start with the host triplet.  If you think this
         2156  +configuration is useful to you, please write to autoconf@gnu.org." >&5
         2157  +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
         2158  +whose name does not start with the host triplet.  If you think this
         2159  +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
         2160  +ac_tool_warned=yes ;;
         2161  +esac
         2162  +    CC=$ac_ct_CC
         2163  +  fi
         2164  +fi
         2165  +
         2166  +fi
         2167  +
         2168  +
         2169  +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
         2170  +See \`config.log' for more details." >&5
         2171  +echo "$as_me: error: no acceptable C compiler found in \$PATH
         2172  +See \`config.log' for more details." >&2;}
         2173  +   { (exit 1); exit 1; }; }
         2174  +
         2175  +# Provide some information about the compiler.
         2176  +echo "$as_me:$LINENO: checking for C compiler version" >&5
         2177  +ac_compiler=`set X $ac_compile; echo $2`
         2178  +{ (ac_try="$ac_compiler --version >&5"
         2179  +case "(($ac_try" in
         2180  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2181  +  *) ac_try_echo=$ac_try;;
         2182  +esac
         2183  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2184  +  (eval "$ac_compiler --version >&5") 2>&5
         2185  +  ac_status=$?
         2186  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2187  +  (exit $ac_status); }
         2188  +{ (ac_try="$ac_compiler -v >&5"
         2189  +case "(($ac_try" in
         2190  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2191  +  *) ac_try_echo=$ac_try;;
         2192  +esac
         2193  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2194  +  (eval "$ac_compiler -v >&5") 2>&5
         2195  +  ac_status=$?
         2196  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2197  +  (exit $ac_status); }
         2198  +{ (ac_try="$ac_compiler -V >&5"
         2199  +case "(($ac_try" in
         2200  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2201  +  *) ac_try_echo=$ac_try;;
         2202  +esac
         2203  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2204  +  (eval "$ac_compiler -V >&5") 2>&5
         2205  +  ac_status=$?
         2206  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2207  +  (exit $ac_status); }
         2208  +
         2209  +cat >conftest.$ac_ext <<_ACEOF
         2210  +/* confdefs.h.  */
         2211  +_ACEOF
         2212  +cat confdefs.h >>conftest.$ac_ext
         2213  +cat >>conftest.$ac_ext <<_ACEOF
         2214  +/* end confdefs.h.  */
         2215  +
         2216  +int
         2217  +main ()
         2218  +{
         2219  +
         2220  +  ;
         2221  +  return 0;
         2222  +}
         2223  +_ACEOF
         2224  +ac_clean_files_save=$ac_clean_files
         2225  +ac_clean_files="$ac_clean_files a.out a.exe b.out"
         2226  +# Try to create an executable without -o first, disregard a.out.
         2227  +# It will help us diagnose broken compilers, and finding out an intuition
         2228  +# of exeext.
         2229  +{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
         2230  +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
         2231  +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
         2232  +#
         2233  +# List of possible output files, starting from the most likely.
         2234  +# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
         2235  +# only as a last resort.  b.out is created by i960 compilers.
         2236  +ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
         2237  +#
         2238  +# The IRIX 6 linker writes into existing files which may not be
         2239  +# executable, retaining their permissions.  Remove them first so a
         2240  +# subsequent execution test works.
         2241  +ac_rmfiles=
         2242  +for ac_file in $ac_files
         2243  +do
         2244  +  case $ac_file in
         2245  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
         2246  +    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
         2247  +  esac
         2248  +done
         2249  +rm -f $ac_rmfiles
         2250  +
         2251  +if { (ac_try="$ac_link_default"
         2252  +case "(($ac_try" in
         2253  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2254  +  *) ac_try_echo=$ac_try;;
         2255  +esac
         2256  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2257  +  (eval "$ac_link_default") 2>&5
         2258  +  ac_status=$?
         2259  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2260  +  (exit $ac_status); }; then
         2261  +  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
         2262  +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
         2263  +# in a Makefile.  We should not override ac_cv_exeext if it was cached,
         2264  +# so that the user can short-circuit this test for compilers unknown to
         2265  +# Autoconf.
         2266  +for ac_file in $ac_files ''
         2267  +do
         2268  +  test -f "$ac_file" || continue
         2269  +  case $ac_file in
         2270  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
         2271  +	;;
         2272  +    [ab].out )
         2273  +	# We found the default executable, but exeext='' is most
         2274  +	# certainly right.
         2275  +	break;;
         2276  +    *.* )
         2277  +        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
         2278  +	then :; else
         2279  +	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
         2280  +	fi
         2281  +	# We set ac_cv_exeext here because the later test for it is not
         2282  +	# safe: cross compilers may not add the suffix if given an `-o'
         2283  +	# argument, so we may need to know it at that point already.
         2284  +	# Even if this section looks crufty: it has the advantage of
         2285  +	# actually working.
         2286  +	break;;
         2287  +    * )
         2288  +	break;;
         2289  +  esac
         2290  +done
         2291  +test "$ac_cv_exeext" = no && ac_cv_exeext=
         2292  +
         2293  +else
         2294  +  ac_file=''
         2295  +fi
         2296  +
         2297  +{ echo "$as_me:$LINENO: result: $ac_file" >&5
         2298  +echo "${ECHO_T}$ac_file" >&6; }
         2299  +if test -z "$ac_file"; then
         2300  +  echo "$as_me: failed program was:" >&5
         2301  +sed 's/^/| /' conftest.$ac_ext >&5
         2302  +
         2303  +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
         2304  +See \`config.log' for more details." >&5
         2305  +echo "$as_me: error: C compiler cannot create executables
         2306  +See \`config.log' for more details." >&2;}
         2307  +   { (exit 77); exit 77; }; }
         2308  +fi
         2309  +
         2310  +ac_exeext=$ac_cv_exeext
         2311  +
         2312  +# Check that the compiler produces executables we can run.  If not, either
         2313  +# the compiler is broken, or we cross compile.
         2314  +{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
         2315  +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
         2316  +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
         2317  +# If not cross compiling, check that we can run a simple program.
         2318  +if test "$cross_compiling" != yes; then
         2319  +  if { ac_try='./$ac_file'
         2320  +  { (case "(($ac_try" in
         2321  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2322  +  *) ac_try_echo=$ac_try;;
         2323  +esac
         2324  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2325  +  (eval "$ac_try") 2>&5
         2326  +  ac_status=$?
         2327  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2328  +  (exit $ac_status); }; }; then
         2329  +    cross_compiling=no
         2330  +  else
         2331  +    if test "$cross_compiling" = maybe; then
         2332  +	cross_compiling=yes
         2333  +    else
         2334  +	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
         2335  +If you meant to cross compile, use \`--host'.
         2336  +See \`config.log' for more details." >&5
         2337  +echo "$as_me: error: cannot run C compiled programs.
         2338  +If you meant to cross compile, use \`--host'.
         2339  +See \`config.log' for more details." >&2;}
         2340  +   { (exit 1); exit 1; }; }
         2341  +    fi
         2342  +  fi
         2343  +fi
         2344  +{ echo "$as_me:$LINENO: result: yes" >&5
         2345  +echo "${ECHO_T}yes" >&6; }
         2346  +
         2347  +rm -f a.out a.exe conftest$ac_cv_exeext b.out
         2348  +ac_clean_files=$ac_clean_files_save
         2349  +# Check that the compiler produces executables we can run.  If not, either
         2350  +# the compiler is broken, or we cross compile.
         2351  +{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
         2352  +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
         2353  +{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
         2354  +echo "${ECHO_T}$cross_compiling" >&6; }
         2355  +
         2356  +{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
         2357  +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
         2358  +if { (ac_try="$ac_link"
         2359  +case "(($ac_try" in
         2360  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2361  +  *) ac_try_echo=$ac_try;;
         2362  +esac
         2363  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2364  +  (eval "$ac_link") 2>&5
         2365  +  ac_status=$?
         2366  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2367  +  (exit $ac_status); }; then
         2368  +  # If both `conftest.exe' and `conftest' are `present' (well, observable)
         2369  +# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
         2370  +# work properly (i.e., refer to `conftest.exe'), while it won't with
         2371  +# `rm'.
         2372  +for ac_file in conftest.exe conftest conftest.*; do
         2373  +  test -f "$ac_file" || continue
         2374  +  case $ac_file in
         2375  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
         2376  +    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
         2377  +	  break;;
         2378  +    * ) break;;
         2379  +  esac
         2380  +done
         2381  +else
         2382  +  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
         2383  +See \`config.log' for more details." >&5
         2384  +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
         2385  +See \`config.log' for more details." >&2;}
         2386  +   { (exit 1); exit 1; }; }
         2387  +fi
         2388  +
         2389  +rm -f conftest$ac_cv_exeext
         2390  +{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
         2391  +echo "${ECHO_T}$ac_cv_exeext" >&6; }
         2392  +
         2393  +rm -f conftest.$ac_ext
         2394  +EXEEXT=$ac_cv_exeext
         2395  +ac_exeext=$EXEEXT
         2396  +{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
         2397  +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
         2398  +if test "${ac_cv_objext+set}" = set; then
         2399  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2400  +else
         2401  +  cat >conftest.$ac_ext <<_ACEOF
         2402  +/* confdefs.h.  */
         2403  +_ACEOF
         2404  +cat confdefs.h >>conftest.$ac_ext
         2405  +cat >>conftest.$ac_ext <<_ACEOF
         2406  +/* end confdefs.h.  */
         2407  +
         2408  +int
         2409  +main ()
         2410  +{
         2411  +
         2412  +  ;
         2413  +  return 0;
         2414  +}
         2415  +_ACEOF
         2416  +rm -f conftest.o conftest.obj
         2417  +if { (ac_try="$ac_compile"
         2418  +case "(($ac_try" in
         2419  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2420  +  *) ac_try_echo=$ac_try;;
         2421  +esac
         2422  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2423  +  (eval "$ac_compile") 2>&5
         2424  +  ac_status=$?
         2425  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2426  +  (exit $ac_status); }; then
         2427  +  for ac_file in conftest.o conftest.obj conftest.*; do
         2428  +  test -f "$ac_file" || continue;
         2429  +  case $ac_file in
         2430  +    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
         2431  +    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
         2432  +       break;;
         2433  +  esac
         2434  +done
         2435  +else
         2436  +  echo "$as_me: failed program was:" >&5
         2437  +sed 's/^/| /' conftest.$ac_ext >&5
         2438  +
         2439  +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
         2440  +See \`config.log' for more details." >&5
         2441  +echo "$as_me: error: cannot compute suffix of object files: cannot compile
         2442  +See \`config.log' for more details." >&2;}
         2443  +   { (exit 1); exit 1; }; }
         2444  +fi
         2445  +
         2446  +rm -f conftest.$ac_cv_objext conftest.$ac_ext
         2447  +fi
         2448  +{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
         2449  +echo "${ECHO_T}$ac_cv_objext" >&6; }
         2450  +OBJEXT=$ac_cv_objext
         2451  +ac_objext=$OBJEXT
         2452  +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
         2453  +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
         2454  +if test "${ac_cv_c_compiler_gnu+set}" = set; then
         2455  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2456  +else
         2457  +  cat >conftest.$ac_ext <<_ACEOF
         2458  +/* confdefs.h.  */
         2459  +_ACEOF
         2460  +cat confdefs.h >>conftest.$ac_ext
         2461  +cat >>conftest.$ac_ext <<_ACEOF
         2462  +/* end confdefs.h.  */
         2463  +
         2464  +int
         2465  +main ()
         2466  +{
         2467  +#ifndef __GNUC__
         2468  +       choke me
         2469  +#endif
         2470  +
         2471  +  ;
         2472  +  return 0;
         2473  +}
         2474  +_ACEOF
         2475  +rm -f conftest.$ac_objext
         2476  +if { (ac_try="$ac_compile"
         2477  +case "(($ac_try" in
         2478  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2479  +  *) ac_try_echo=$ac_try;;
         2480  +esac
         2481  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2482  +  (eval "$ac_compile") 2>conftest.er1
         2483  +  ac_status=$?
         2484  +  grep -v '^ *+' conftest.er1 >conftest.err
         2485  +  rm -f conftest.er1
         2486  +  cat conftest.err >&5
         2487  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2488  +  (exit $ac_status); } && {
         2489  +	 test -z "$ac_c_werror_flag" ||
         2490  +	 test ! -s conftest.err
         2491  +       } && test -s conftest.$ac_objext; then
         2492  +  ac_compiler_gnu=yes
         2493  +else
         2494  +  echo "$as_me: failed program was:" >&5
         2495  +sed 's/^/| /' conftest.$ac_ext >&5
         2496  +
         2497  +	ac_compiler_gnu=no
         2498  +fi
         2499  +
         2500  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         2501  +ac_cv_c_compiler_gnu=$ac_compiler_gnu
         2502  +
         2503  +fi
         2504  +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
         2505  +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
         2506  +GCC=`test $ac_compiler_gnu = yes && echo yes`
         2507  +ac_test_CFLAGS=${CFLAGS+set}
         2508  +ac_save_CFLAGS=$CFLAGS
         2509  +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
         2510  +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
         2511  +if test "${ac_cv_prog_cc_g+set}" = set; then
         2512  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2513  +else
         2514  +  ac_save_c_werror_flag=$ac_c_werror_flag
         2515  +   ac_c_werror_flag=yes
         2516  +   ac_cv_prog_cc_g=no
         2517  +   CFLAGS="-g"
         2518  +   cat >conftest.$ac_ext <<_ACEOF
         2519  +/* confdefs.h.  */
         2520  +_ACEOF
         2521  +cat confdefs.h >>conftest.$ac_ext
         2522  +cat >>conftest.$ac_ext <<_ACEOF
         2523  +/* end confdefs.h.  */
         2524  +
         2525  +int
         2526  +main ()
         2527  +{
         2528  +
         2529  +  ;
         2530  +  return 0;
         2531  +}
         2532  +_ACEOF
         2533  +rm -f conftest.$ac_objext
         2534  +if { (ac_try="$ac_compile"
         2535  +case "(($ac_try" in
         2536  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2537  +  *) ac_try_echo=$ac_try;;
         2538  +esac
         2539  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2540  +  (eval "$ac_compile") 2>conftest.er1
         2541  +  ac_status=$?
         2542  +  grep -v '^ *+' conftest.er1 >conftest.err
         2543  +  rm -f conftest.er1
         2544  +  cat conftest.err >&5
         2545  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2546  +  (exit $ac_status); } && {
         2547  +	 test -z "$ac_c_werror_flag" ||
         2548  +	 test ! -s conftest.err
         2549  +       } && test -s conftest.$ac_objext; then
         2550  +  ac_cv_prog_cc_g=yes
         2551  +else
         2552  +  echo "$as_me: failed program was:" >&5
         2553  +sed 's/^/| /' conftest.$ac_ext >&5
         2554  +
         2555  +	CFLAGS=""
         2556  +      cat >conftest.$ac_ext <<_ACEOF
         2557  +/* confdefs.h.  */
         2558  +_ACEOF
         2559  +cat confdefs.h >>conftest.$ac_ext
         2560  +cat >>conftest.$ac_ext <<_ACEOF
         2561  +/* end confdefs.h.  */
         2562  +
         2563  +int
         2564  +main ()
         2565  +{
         2566  +
         2567  +  ;
         2568  +  return 0;
         2569  +}
         2570  +_ACEOF
         2571  +rm -f conftest.$ac_objext
         2572  +if { (ac_try="$ac_compile"
         2573  +case "(($ac_try" in
         2574  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2575  +  *) ac_try_echo=$ac_try;;
         2576  +esac
         2577  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2578  +  (eval "$ac_compile") 2>conftest.er1
         2579  +  ac_status=$?
         2580  +  grep -v '^ *+' conftest.er1 >conftest.err
         2581  +  rm -f conftest.er1
         2582  +  cat conftest.err >&5
         2583  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2584  +  (exit $ac_status); } && {
         2585  +	 test -z "$ac_c_werror_flag" ||
         2586  +	 test ! -s conftest.err
         2587  +       } && test -s conftest.$ac_objext; then
         2588  +  :
         2589  +else
         2590  +  echo "$as_me: failed program was:" >&5
         2591  +sed 's/^/| /' conftest.$ac_ext >&5
         2592  +
         2593  +	ac_c_werror_flag=$ac_save_c_werror_flag
         2594  +	 CFLAGS="-g"
         2595  +	 cat >conftest.$ac_ext <<_ACEOF
         2596  +/* confdefs.h.  */
         2597  +_ACEOF
         2598  +cat confdefs.h >>conftest.$ac_ext
         2599  +cat >>conftest.$ac_ext <<_ACEOF
         2600  +/* end confdefs.h.  */
         2601  +
         2602  +int
         2603  +main ()
         2604  +{
         2605  +
         2606  +  ;
         2607  +  return 0;
         2608  +}
         2609  +_ACEOF
         2610  +rm -f conftest.$ac_objext
         2611  +if { (ac_try="$ac_compile"
         2612  +case "(($ac_try" in
         2613  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2614  +  *) ac_try_echo=$ac_try;;
         2615  +esac
         2616  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2617  +  (eval "$ac_compile") 2>conftest.er1
         2618  +  ac_status=$?
         2619  +  grep -v '^ *+' conftest.er1 >conftest.err
         2620  +  rm -f conftest.er1
         2621  +  cat conftest.err >&5
         2622  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2623  +  (exit $ac_status); } && {
         2624  +	 test -z "$ac_c_werror_flag" ||
         2625  +	 test ! -s conftest.err
         2626  +       } && test -s conftest.$ac_objext; then
         2627  +  ac_cv_prog_cc_g=yes
         2628  +else
         2629  +  echo "$as_me: failed program was:" >&5
         2630  +sed 's/^/| /' conftest.$ac_ext >&5
         2631  +
         2632  +
         2633  +fi
         2634  +
         2635  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         2636  +fi
         2637  +
         2638  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         2639  +fi
         2640  +
         2641  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         2642  +   ac_c_werror_flag=$ac_save_c_werror_flag
         2643  +fi
         2644  +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
         2645  +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
         2646  +if test "$ac_test_CFLAGS" = set; then
         2647  +  CFLAGS=$ac_save_CFLAGS
         2648  +elif test $ac_cv_prog_cc_g = yes; then
         2649  +  if test "$GCC" = yes; then
         2650  +    CFLAGS="-g -O2"
         2651  +  else
         2652  +    CFLAGS="-g"
         2653  +  fi
         2654  +else
         2655  +  if test "$GCC" = yes; then
         2656  +    CFLAGS="-O2"
         2657  +  else
         2658  +    CFLAGS=
         2659  +  fi
         2660  +fi
         2661  +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
         2662  +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
         2663  +if test "${ac_cv_prog_cc_c89+set}" = set; then
         2664  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2665  +else
         2666  +  ac_cv_prog_cc_c89=no
         2667  +ac_save_CC=$CC
         2668  +cat >conftest.$ac_ext <<_ACEOF
         2669  +/* confdefs.h.  */
         2670  +_ACEOF
         2671  +cat confdefs.h >>conftest.$ac_ext
         2672  +cat >>conftest.$ac_ext <<_ACEOF
         2673  +/* end confdefs.h.  */
         2674  +#include <stdarg.h>
         2675  +#include <stdio.h>
         2676  +#include <sys/types.h>
         2677  +#include <sys/stat.h>
         2678  +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
         2679  +struct buf { int x; };
         2680  +FILE * (*rcsopen) (struct buf *, struct stat *, int);
         2681  +static char *e (p, i)
         2682  +     char **p;
         2683  +     int i;
         2684  +{
         2685  +  return p[i];
         2686  +}
         2687  +static char *f (char * (*g) (char **, int), char **p, ...)
         2688  +{
         2689  +  char *s;
         2690  +  va_list v;
         2691  +  va_start (v,p);
         2692  +  s = g (p, va_arg (v,int));
         2693  +  va_end (v);
         2694  +  return s;
         2695  +}
         2696  +
         2697  +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
         2698  +   function prototypes and stuff, but not '\xHH' hex character constants.
         2699  +   These don't provoke an error unfortunately, instead are silently treated
         2700  +   as 'x'.  The following induces an error, until -std is added to get
         2701  +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
         2702  +   array size at least.  It's necessary to write '\x00'==0 to get something
         2703  +   that's true only with -std.  */
         2704  +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
         2705  +
         2706  +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
         2707  +   inside strings and character constants.  */
         2708  +#define FOO(x) 'x'
         2709  +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
         2710  +
         2711  +int test (int i, double x);
         2712  +struct s1 {int (*f) (int a);};
         2713  +struct s2 {int (*f) (double a);};
         2714  +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
         2715  +int argc;
         2716  +char **argv;
         2717  +int
         2718  +main ()
         2719  +{
         2720  +return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
         2721  +  ;
         2722  +  return 0;
         2723  +}
         2724  +_ACEOF
         2725  +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
         2726  +	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
         2727  +do
         2728  +  CC="$ac_save_CC $ac_arg"
         2729  +  rm -f conftest.$ac_objext
         2730  +if { (ac_try="$ac_compile"
         2731  +case "(($ac_try" in
         2732  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2733  +  *) ac_try_echo=$ac_try;;
         2734  +esac
         2735  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2736  +  (eval "$ac_compile") 2>conftest.er1
         2737  +  ac_status=$?
         2738  +  grep -v '^ *+' conftest.er1 >conftest.err
         2739  +  rm -f conftest.er1
         2740  +  cat conftest.err >&5
         2741  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2742  +  (exit $ac_status); } && {
         2743  +	 test -z "$ac_c_werror_flag" ||
         2744  +	 test ! -s conftest.err
         2745  +       } && test -s conftest.$ac_objext; then
         2746  +  ac_cv_prog_cc_c89=$ac_arg
         2747  +else
         2748  +  echo "$as_me: failed program was:" >&5
         2749  +sed 's/^/| /' conftest.$ac_ext >&5
         2750  +
         2751  +
         2752  +fi
         2753  +
         2754  +rm -f core conftest.err conftest.$ac_objext
         2755  +  test "x$ac_cv_prog_cc_c89" != "xno" && break
         2756  +done
         2757  +rm -f conftest.$ac_ext
         2758  +CC=$ac_save_CC
         2759  +
         2760  +fi
         2761  +# AC_CACHE_VAL
         2762  +case "x$ac_cv_prog_cc_c89" in
         2763  +  x)
         2764  +    { echo "$as_me:$LINENO: result: none needed" >&5
         2765  +echo "${ECHO_T}none needed" >&6; } ;;
         2766  +  xno)
         2767  +    { echo "$as_me:$LINENO: result: unsupported" >&5
         2768  +echo "${ECHO_T}unsupported" >&6; } ;;
         2769  +  *)
         2770  +    CC="$CC $ac_cv_prog_cc_c89"
         2771  +    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
         2772  +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
         2773  +esac
         2774  +
         2775  +
         2776  +ac_ext=c
         2777  +ac_cpp='$CPP $CPPFLAGS'
         2778  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         2779  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         2780  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         2781  +
         2782  +
         2783  +case $host_os in
         2784  +dragonfly|freebsd|netbsd|openbsd)
         2785  +cat >>confdefs.h <<\_ACEOF
         2786  +#define USE_PREAD 1
         2787  +_ACEOF
         2788  +
         2789  +esac
         2790  +
         2791  +
         2792  +{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
         2793  +echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
         2794  +if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
         2795  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2796  +else
         2797  +  ac_check_lib_save_LIBS=$LIBS
         2798  +LIBS="-lz  $LIBS"
         2799  +cat >conftest.$ac_ext <<_ACEOF
         2800  +/* confdefs.h.  */
         2801  +_ACEOF
         2802  +cat confdefs.h >>conftest.$ac_ext
         2803  +cat >>conftest.$ac_ext <<_ACEOF
         2804  +/* end confdefs.h.  */
         2805  +
         2806  +/* Override any GCC internal prototype to avoid an error.
         2807  +   Use char because int might match the return type of a GCC
         2808  +   builtin and then its argument prototype would still apply.  */
         2809  +#ifdef __cplusplus
         2810  +extern "C"
         2811  +#endif
         2812  +char inflateEnd ();
         2813  +int
         2814  +main ()
         2815  +{
         2816  +return inflateEnd ();
         2817  +  ;
         2818  +  return 0;
         2819  +}
         2820  +_ACEOF
         2821  +rm -f conftest.$ac_objext conftest$ac_exeext
         2822  +if { (ac_try="$ac_link"
         2823  +case "(($ac_try" in
         2824  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2825  +  *) ac_try_echo=$ac_try;;
         2826  +esac
         2827  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2828  +  (eval "$ac_link") 2>conftest.er1
         2829  +  ac_status=$?
         2830  +  grep -v '^ *+' conftest.er1 >conftest.err
         2831  +  rm -f conftest.er1
         2832  +  cat conftest.err >&5
         2833  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2834  +  (exit $ac_status); } && {
         2835  +	 test -z "$ac_c_werror_flag" ||
         2836  +	 test ! -s conftest.err
         2837  +       } && test -s conftest$ac_exeext &&
         2838  +       $as_test_x conftest$ac_exeext; then
         2839  +  ac_cv_lib_z_inflateEnd=yes
         2840  +else
         2841  +  echo "$as_me: failed program was:" >&5
         2842  +sed 's/^/| /' conftest.$ac_ext >&5
         2843  +
         2844  +	ac_cv_lib_z_inflateEnd=no
         2845  +fi
         2846  +
         2847  +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
         2848  +      conftest$ac_exeext conftest.$ac_ext
         2849  +LIBS=$ac_check_lib_save_LIBS
         2850  +fi
         2851  +{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
         2852  +echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
         2853  +if test $ac_cv_lib_z_inflateEnd = yes; then
         2854  +  zlib_cv_libz=yes
         2855  +else
         2856  +  zlib_cv_libz=no
         2857  +fi
         2858  +
         2859  +ac_ext=c
         2860  +ac_cpp='$CPP $CPPFLAGS'
         2861  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         2862  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         2863  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         2864  +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
         2865  +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
         2866  +# On Suns, sometimes $CPP names a directory.
         2867  +if test -n "$CPP" && test -d "$CPP"; then
         2868  +  CPP=
         2869  +fi
         2870  +if test -z "$CPP"; then
         2871  +  if test "${ac_cv_prog_CPP+set}" = set; then
         2872  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         2873  +else
         2874  +      # Double quotes because CPP needs to be expanded
         2875  +    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
         2876  +    do
         2877  +      ac_preproc_ok=false
         2878  +for ac_c_preproc_warn_flag in '' yes
         2879  +do
         2880  +  # Use a header file that comes with gcc, so configuring glibc
         2881  +  # with a fresh cross-compiler works.
         2882  +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         2883  +  # <limits.h> exists even on freestanding compilers.
         2884  +  # On the NeXT, cc -E runs the code through the compiler's parser,
         2885  +  # not just through cpp. "Syntax error" is here to catch this case.
         2886  +  cat >conftest.$ac_ext <<_ACEOF
         2887  +/* confdefs.h.  */
         2888  +_ACEOF
         2889  +cat confdefs.h >>conftest.$ac_ext
         2890  +cat >>conftest.$ac_ext <<_ACEOF
         2891  +/* end confdefs.h.  */
         2892  +#ifdef __STDC__
         2893  +# include <limits.h>
         2894  +#else
         2895  +# include <assert.h>
         2896  +#endif
         2897  +		     Syntax error
         2898  +_ACEOF
         2899  +if { (ac_try="$ac_cpp conftest.$ac_ext"
         2900  +case "(($ac_try" in
         2901  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2902  +  *) ac_try_echo=$ac_try;;
         2903  +esac
         2904  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2905  +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
         2906  +  ac_status=$?
         2907  +  grep -v '^ *+' conftest.er1 >conftest.err
         2908  +  rm -f conftest.er1
         2909  +  cat conftest.err >&5
         2910  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2911  +  (exit $ac_status); } >/dev/null && {
         2912  +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         2913  +	 test ! -s conftest.err
         2914  +       }; then
         2915  +  :
         2916  +else
         2917  +  echo "$as_me: failed program was:" >&5
         2918  +sed 's/^/| /' conftest.$ac_ext >&5
         2919  +
         2920  +  # Broken: fails on valid input.
         2921  +continue
         2922  +fi
         2923  +
         2924  +rm -f conftest.err conftest.$ac_ext
         2925  +
         2926  +  # OK, works on sane cases.  Now check whether nonexistent headers
         2927  +  # can be detected and how.
         2928  +  cat >conftest.$ac_ext <<_ACEOF
         2929  +/* confdefs.h.  */
         2930  +_ACEOF
         2931  +cat confdefs.h >>conftest.$ac_ext
         2932  +cat >>conftest.$ac_ext <<_ACEOF
         2933  +/* end confdefs.h.  */
         2934  +#include <ac_nonexistent.h>
         2935  +_ACEOF
         2936  +if { (ac_try="$ac_cpp conftest.$ac_ext"
         2937  +case "(($ac_try" in
         2938  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         2939  +  *) ac_try_echo=$ac_try;;
         2940  +esac
         2941  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         2942  +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
         2943  +  ac_status=$?
         2944  +  grep -v '^ *+' conftest.er1 >conftest.err
         2945  +  rm -f conftest.er1
         2946  +  cat conftest.err >&5
         2947  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         2948  +  (exit $ac_status); } >/dev/null && {
         2949  +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         2950  +	 test ! -s conftest.err
         2951  +       }; then
         2952  +  # Broken: success on invalid input.
         2953  +continue
         2954  +else
         2955  +  echo "$as_me: failed program was:" >&5
         2956  +sed 's/^/| /' conftest.$ac_ext >&5
         2957  +
         2958  +  # Passes both tests.
         2959  +ac_preproc_ok=:
         2960  +break
         2961  +fi
         2962  +
         2963  +rm -f conftest.err conftest.$ac_ext
         2964  +
         2965  +done
         2966  +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
         2967  +rm -f conftest.err conftest.$ac_ext
         2968  +if $ac_preproc_ok; then
         2969  +  break
         2970  +fi
         2971  +
         2972  +    done
         2973  +    ac_cv_prog_CPP=$CPP
         2974  +
         2975  +fi
         2976  +  CPP=$ac_cv_prog_CPP
         2977  +else
         2978  +  ac_cv_prog_CPP=$CPP
         2979  +fi
         2980  +{ echo "$as_me:$LINENO: result: $CPP" >&5
         2981  +echo "${ECHO_T}$CPP" >&6; }
         2982  +ac_preproc_ok=false
         2983  +for ac_c_preproc_warn_flag in '' yes
         2984  +do
         2985  +  # Use a header file that comes with gcc, so configuring glibc
         2986  +  # with a fresh cross-compiler works.
         2987  +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         2988  +  # <limits.h> exists even on freestanding compilers.
         2989  +  # On the NeXT, cc -E runs the code through the compiler's parser,
         2990  +  # not just through cpp. "Syntax error" is here to catch this case.
         2991  +  cat >conftest.$ac_ext <<_ACEOF
         2992  +/* confdefs.h.  */
         2993  +_ACEOF
         2994  +cat confdefs.h >>conftest.$ac_ext
         2995  +cat >>conftest.$ac_ext <<_ACEOF
         2996  +/* end confdefs.h.  */
         2997  +#ifdef __STDC__
         2998  +# include <limits.h>
         2999  +#else
         3000  +# include <assert.h>
         3001  +#endif
         3002  +		     Syntax error
         3003  +_ACEOF
         3004  +if { (ac_try="$ac_cpp conftest.$ac_ext"
         3005  +case "(($ac_try" in
         3006  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3007  +  *) ac_try_echo=$ac_try;;
         3008  +esac
         3009  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3010  +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
         3011  +  ac_status=$?
         3012  +  grep -v '^ *+' conftest.er1 >conftest.err
         3013  +  rm -f conftest.er1
         3014  +  cat conftest.err >&5
         3015  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3016  +  (exit $ac_status); } >/dev/null && {
         3017  +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         3018  +	 test ! -s conftest.err
         3019  +       }; then
         3020  +  :
         3021  +else
         3022  +  echo "$as_me: failed program was:" >&5
         3023  +sed 's/^/| /' conftest.$ac_ext >&5
         3024  +
         3025  +  # Broken: fails on valid input.
         3026  +continue
         3027  +fi
         3028  +
         3029  +rm -f conftest.err conftest.$ac_ext
         3030  +
         3031  +  # OK, works on sane cases.  Now check whether nonexistent headers
         3032  +  # can be detected and how.
         3033  +  cat >conftest.$ac_ext <<_ACEOF
         3034  +/* confdefs.h.  */
         3035  +_ACEOF
         3036  +cat confdefs.h >>conftest.$ac_ext
         3037  +cat >>conftest.$ac_ext <<_ACEOF
         3038  +/* end confdefs.h.  */
         3039  +#include <ac_nonexistent.h>
         3040  +_ACEOF
         3041  +if { (ac_try="$ac_cpp conftest.$ac_ext"
         3042  +case "(($ac_try" in
         3043  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3044  +  *) ac_try_echo=$ac_try;;
         3045  +esac
         3046  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3047  +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
         3048  +  ac_status=$?
         3049  +  grep -v '^ *+' conftest.er1 >conftest.err
         3050  +  rm -f conftest.er1
         3051  +  cat conftest.err >&5
         3052  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3053  +  (exit $ac_status); } >/dev/null && {
         3054  +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         3055  +	 test ! -s conftest.err
         3056  +       }; then
         3057  +  # Broken: success on invalid input.
         3058  +continue
         3059  +else
         3060  +  echo "$as_me: failed program was:" >&5
         3061  +sed 's/^/| /' conftest.$ac_ext >&5
         3062  +
         3063  +  # Passes both tests.
         3064  +ac_preproc_ok=:
         3065  +break
         3066  +fi
         3067  +
         3068  +rm -f conftest.err conftest.$ac_ext
         3069  +
         3070  +done
         3071  +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
         3072  +rm -f conftest.err conftest.$ac_ext
         3073  +if $ac_preproc_ok; then
         3074  +  :
         3075  +else
         3076  +  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
         3077  +See \`config.log' for more details." >&5
         3078  +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
         3079  +See \`config.log' for more details." >&2;}
         3080  +   { (exit 1); exit 1; }; }
         3081  +fi
         3082  +
         3083  +ac_ext=c
         3084  +ac_cpp='$CPP $CPPFLAGS'
         3085  +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
         3086  +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
         3087  +ac_compiler_gnu=$ac_cv_c_compiler_gnu
         3088  +
         3089  +
         3090  +{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
         3091  +echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
         3092  +if test "${ac_cv_path_GREP+set}" = set; then
         3093  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3094  +else
         3095  +  # Extract the first word of "grep ggrep" to use in msg output
         3096  +if test -z "$GREP"; then
         3097  +set dummy grep ggrep; ac_prog_name=$2
         3098  +if test "${ac_cv_path_GREP+set}" = set; then
         3099  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3100  +else
         3101  +  ac_path_GREP_found=false
         3102  +# Loop through the user's path and test for each of PROGNAME-LIST
         3103  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3104  +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
         3105  +do
         3106  +  IFS=$as_save_IFS
         3107  +  test -z "$as_dir" && as_dir=.
         3108  +  for ac_prog in grep ggrep; do
         3109  +  for ac_exec_ext in '' $ac_executable_extensions; do
         3110  +    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
         3111  +    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
         3112  +    # Check for GNU ac_path_GREP and select it if it is found.
         3113  +  # Check for GNU $ac_path_GREP
         3114  +case `"$ac_path_GREP" --version 2>&1` in
         3115  +*GNU*)
         3116  +  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
         3117  +*)
         3118  +  ac_count=0
         3119  +  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
         3120  +  while :
         3121  +  do
         3122  +    cat "conftest.in" "conftest.in" >"conftest.tmp"
         3123  +    mv "conftest.tmp" "conftest.in"
         3124  +    cp "conftest.in" "conftest.nl"
         3125  +    echo 'GREP' >> "conftest.nl"
         3126  +    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
         3127  +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
         3128  +    ac_count=`expr $ac_count + 1`
         3129  +    if test $ac_count -gt ${ac_path_GREP_max-0}; then
         3130  +      # Best one so far, save it but keep looking for a better one
         3131  +      ac_cv_path_GREP="$ac_path_GREP"
         3132  +      ac_path_GREP_max=$ac_count
         3133  +    fi
         3134  +    # 10*(2^10) chars as input seems more than enough
         3135  +    test $ac_count -gt 10 && break
         3136  +  done
         3137  +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
         3138  +esac
         3139  +
         3140  +
         3141  +    $ac_path_GREP_found && break 3
         3142  +  done
         3143  +done
         3144  +
         3145  +done
         3146  +IFS=$as_save_IFS
         3147  +
         3148  +
         3149  +fi
         3150  +
         3151  +GREP="$ac_cv_path_GREP"
         3152  +if test -z "$GREP"; then
         3153  +  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
         3154  +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
         3155  +   { (exit 1); exit 1; }; }
         3156  +fi
         3157  +
         3158  +else
         3159  +  ac_cv_path_GREP=$GREP
         3160  +fi
         3161  +
         3162  +
         3163  +fi
         3164  +{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
         3165  +echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
         3166  + GREP="$ac_cv_path_GREP"
         3167  +
         3168  +
         3169  +{ echo "$as_me:$LINENO: checking for egrep" >&5
         3170  +echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
         3171  +if test "${ac_cv_path_EGREP+set}" = set; then
         3172  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3173  +else
         3174  +  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
         3175  +   then ac_cv_path_EGREP="$GREP -E"
         3176  +   else
         3177  +     # Extract the first word of "egrep" to use in msg output
         3178  +if test -z "$EGREP"; then
         3179  +set dummy egrep; ac_prog_name=$2
         3180  +if test "${ac_cv_path_EGREP+set}" = set; then
         3181  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3182  +else
         3183  +  ac_path_EGREP_found=false
         3184  +# Loop through the user's path and test for each of PROGNAME-LIST
         3185  +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3186  +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
         3187  +do
         3188  +  IFS=$as_save_IFS
         3189  +  test -z "$as_dir" && as_dir=.
         3190  +  for ac_prog in egrep; do
         3191  +  for ac_exec_ext in '' $ac_executable_extensions; do
         3192  +    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
         3193  +    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
         3194  +    # Check for GNU ac_path_EGREP and select it if it is found.
         3195  +  # Check for GNU $ac_path_EGREP
         3196  +case `"$ac_path_EGREP" --version 2>&1` in
         3197  +*GNU*)
         3198  +  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
         3199  +*)
         3200  +  ac_count=0
         3201  +  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
         3202  +  while :
         3203  +  do
         3204  +    cat "conftest.in" "conftest.in" >"conftest.tmp"
         3205  +    mv "conftest.tmp" "conftest.in"
         3206  +    cp "conftest.in" "conftest.nl"
         3207  +    echo 'EGREP' >> "conftest.nl"
         3208  +    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
         3209  +    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
         3210  +    ac_count=`expr $ac_count + 1`
         3211  +    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
         3212  +      # Best one so far, save it but keep looking for a better one
         3213  +      ac_cv_path_EGREP="$ac_path_EGREP"
         3214  +      ac_path_EGREP_max=$ac_count
         3215  +    fi
         3216  +    # 10*(2^10) chars as input seems more than enough
         3217  +    test $ac_count -gt 10 && break
         3218  +  done
         3219  +  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
         3220  +esac
         3221  +
         3222  +
         3223  +    $ac_path_EGREP_found && break 3
         3224  +  done
         3225  +done
         3226  +
         3227  +done
         3228  +IFS=$as_save_IFS
         3229  +
         3230  +
         3231  +fi
         3232  +
         3233  +EGREP="$ac_cv_path_EGREP"
         3234  +if test -z "$EGREP"; then
         3235  +  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
         3236  +echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
         3237  +   { (exit 1); exit 1; }; }
         3238  +fi
         3239  +
         3240  +else
         3241  +  ac_cv_path_EGREP=$EGREP
         3242  +fi
         3243  +
         3244  +
         3245  +   fi
         3246  +fi
         3247  +{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
         3248  +echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
         3249  + EGREP="$ac_cv_path_EGREP"
         3250  +
         3251  +
         3252  +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
         3253  +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
         3254  +if test "${ac_cv_header_stdc+set}" = set; then
         3255  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3256  +else
         3257  +  cat >conftest.$ac_ext <<_ACEOF
         3258  +/* confdefs.h.  */
         3259  +_ACEOF
         3260  +cat confdefs.h >>conftest.$ac_ext
         3261  +cat >>conftest.$ac_ext <<_ACEOF
         3262  +/* end confdefs.h.  */
         3263  +#include <stdlib.h>
         3264  +#include <stdarg.h>
         3265  +#include <string.h>
         3266  +#include <float.h>
         3267  +
         3268  +int
         3269  +main ()
         3270  +{
         3271  +
         3272  +  ;
         3273  +  return 0;
         3274  +}
         3275  +_ACEOF
         3276  +rm -f conftest.$ac_objext
         3277  +if { (ac_try="$ac_compile"
         3278  +case "(($ac_try" in
         3279  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3280  +  *) ac_try_echo=$ac_try;;
         3281  +esac
         3282  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3283  +  (eval "$ac_compile") 2>conftest.er1
         3284  +  ac_status=$?
         3285  +  grep -v '^ *+' conftest.er1 >conftest.err
         3286  +  rm -f conftest.er1
         3287  +  cat conftest.err >&5
         3288  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3289  +  (exit $ac_status); } && {
         3290  +	 test -z "$ac_c_werror_flag" ||
         3291  +	 test ! -s conftest.err
         3292  +       } && test -s conftest.$ac_objext; then
         3293  +  ac_cv_header_stdc=yes
         3294  +else
         3295  +  echo "$as_me: failed program was:" >&5
         3296  +sed 's/^/| /' conftest.$ac_ext >&5
         3297  +
         3298  +	ac_cv_header_stdc=no
         3299  +fi
         3300  +
         3301  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3302  +
         3303  +if test $ac_cv_header_stdc = yes; then
         3304  +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
         3305  +  cat >conftest.$ac_ext <<_ACEOF
         3306  +/* confdefs.h.  */
         3307  +_ACEOF
         3308  +cat confdefs.h >>conftest.$ac_ext
         3309  +cat >>conftest.$ac_ext <<_ACEOF
         3310  +/* end confdefs.h.  */
         3311  +#include <string.h>
         3312  +
         3313  +_ACEOF
         3314  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         3315  +  $EGREP "memchr" >/dev/null 2>&1; then
         3316  +  :
         3317  +else
         3318  +  ac_cv_header_stdc=no
         3319  +fi
         3320  +rm -f -r conftest*
         3321  +
         3322  +fi
         3323  +
         3324  +if test $ac_cv_header_stdc = yes; then
         3325  +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
         3326  +  cat >conftest.$ac_ext <<_ACEOF
         3327  +/* confdefs.h.  */
         3328  +_ACEOF
         3329  +cat confdefs.h >>conftest.$ac_ext
         3330  +cat >>conftest.$ac_ext <<_ACEOF
         3331  +/* end confdefs.h.  */
         3332  +#include <stdlib.h>
         3333  +
         3334  +_ACEOF
         3335  +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
         3336  +  $EGREP "free" >/dev/null 2>&1; then
         3337  +  :
         3338  +else
         3339  +  ac_cv_header_stdc=no
         3340  +fi
         3341  +rm -f -r conftest*
         3342  +
         3343  +fi
         3344  +
         3345  +if test $ac_cv_header_stdc = yes; then
         3346  +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
         3347  +  if test "$cross_compiling" = yes; then
         3348  +  :
         3349  +else
         3350  +  cat >conftest.$ac_ext <<_ACEOF
         3351  +/* confdefs.h.  */
         3352  +_ACEOF
         3353  +cat confdefs.h >>conftest.$ac_ext
         3354  +cat >>conftest.$ac_ext <<_ACEOF
         3355  +/* end confdefs.h.  */
         3356  +#include <ctype.h>
         3357  +#include <stdlib.h>
         3358  +#if ((' ' & 0x0FF) == 0x020)
         3359  +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
         3360  +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
         3361  +#else
         3362  +# define ISLOWER(c) \
         3363  +		   (('a' <= (c) && (c) <= 'i') \
         3364  +		     || ('j' <= (c) && (c) <= 'r') \
         3365  +		     || ('s' <= (c) && (c) <= 'z'))
         3366  +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
         3367  +#endif
         3368  +
         3369  +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
         3370  +int
         3371  +main ()
         3372  +{
         3373  +  int i;
         3374  +  for (i = 0; i < 256; i++)
         3375  +    if (XOR (islower (i), ISLOWER (i))
         3376  +	|| toupper (i) != TOUPPER (i))
         3377  +      return 2;
         3378  +  return 0;
         3379  +}
         3380  +_ACEOF
         3381  +rm -f conftest$ac_exeext
         3382  +if { (ac_try="$ac_link"
         3383  +case "(($ac_try" in
         3384  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3385  +  *) ac_try_echo=$ac_try;;
         3386  +esac
         3387  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3388  +  (eval "$ac_link") 2>&5
         3389  +  ac_status=$?
         3390  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3391  +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
         3392  +  { (case "(($ac_try" in
         3393  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3394  +  *) ac_try_echo=$ac_try;;
         3395  +esac
         3396  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3397  +  (eval "$ac_try") 2>&5
         3398  +  ac_status=$?
         3399  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3400  +  (exit $ac_status); }; }; then
         3401  +  :
         3402  +else
         3403  +  echo "$as_me: program exited with status $ac_status" >&5
         3404  +echo "$as_me: failed program was:" >&5
         3405  +sed 's/^/| /' conftest.$ac_ext >&5
         3406  +
         3407  +( exit $ac_status )
         3408  +ac_cv_header_stdc=no
         3409  +fi
         3410  +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
         3411  +fi
         3412  +
         3413  +
         3414  +fi
         3415  +fi
         3416  +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
         3417  +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
         3418  +if test $ac_cv_header_stdc = yes; then
         3419  +
         3420  +cat >>confdefs.h <<\_ACEOF
         3421  +#define STDC_HEADERS 1
         3422  +_ACEOF
         3423  +
         3424  +fi
         3425  +
         3426  +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
         3427  +
         3428  +
         3429  +
         3430  +
         3431  +
         3432  +
         3433  +
         3434  +
         3435  +
         3436  +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
         3437  +		  inttypes.h stdint.h unistd.h
         3438  +do
         3439  +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
         3440  +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
         3441  +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
         3442  +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
         3443  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3444  +else
         3445  +  cat >conftest.$ac_ext <<_ACEOF
         3446  +/* confdefs.h.  */
         3447  +_ACEOF
         3448  +cat confdefs.h >>conftest.$ac_ext
         3449  +cat >>conftest.$ac_ext <<_ACEOF
         3450  +/* end confdefs.h.  */
         3451  +$ac_includes_default
         3452  +
         3453  +#include <$ac_header>
         3454  +_ACEOF
         3455  +rm -f conftest.$ac_objext
         3456  +if { (ac_try="$ac_compile"
         3457  +case "(($ac_try" in
         3458  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3459  +  *) ac_try_echo=$ac_try;;
         3460  +esac
         3461  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3462  +  (eval "$ac_compile") 2>conftest.er1
         3463  +  ac_status=$?
         3464  +  grep -v '^ *+' conftest.er1 >conftest.err
         3465  +  rm -f conftest.er1
         3466  +  cat conftest.err >&5
         3467  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3468  +  (exit $ac_status); } && {
         3469  +	 test -z "$ac_c_werror_flag" ||
         3470  +	 test ! -s conftest.err
         3471  +       } && test -s conftest.$ac_objext; then
         3472  +  eval "$as_ac_Header=yes"
         3473  +else
         3474  +  echo "$as_me: failed program was:" >&5
         3475  +sed 's/^/| /' conftest.$ac_ext >&5
         3476  +
         3477  +	eval "$as_ac_Header=no"
         3478  +fi
         3479  +
         3480  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3481  +fi
         3482  +ac_res=`eval echo '${'$as_ac_Header'}'`
         3483  +	       { echo "$as_me:$LINENO: result: $ac_res" >&5
         3484  +echo "${ECHO_T}$ac_res" >&6; }
         3485  +if test `eval echo '${'$as_ac_Header'}'` = yes; then
         3486  +  cat >>confdefs.h <<_ACEOF
         3487  +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
         3488  +_ACEOF
         3489  +
         3490  +fi
         3491  +
         3492  +done
         3493  +
         3494  +
         3495  +if test "${ac_cv_header_zlib_h+set}" = set; then
         3496  +  { echo "$as_me:$LINENO: checking for zlib.h" >&5
         3497  +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
         3498  +if test "${ac_cv_header_zlib_h+set}" = set; then
         3499  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3500  +fi
         3501  +{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
         3502  +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
         3503  +else
         3504  +  # Is the header compilable?
         3505  +{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
         3506  +echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
         3507  +cat >conftest.$ac_ext <<_ACEOF
         3508  +/* confdefs.h.  */
         3509  +_ACEOF
         3510  +cat confdefs.h >>conftest.$ac_ext
         3511  +cat >>conftest.$ac_ext <<_ACEOF
         3512  +/* end confdefs.h.  */
         3513  +$ac_includes_default
         3514  +#include <zlib.h>
         3515  +_ACEOF
         3516  +rm -f conftest.$ac_objext
         3517  +if { (ac_try="$ac_compile"
         3518  +case "(($ac_try" in
         3519  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3520  +  *) ac_try_echo=$ac_try;;
         3521  +esac
         3522  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3523  +  (eval "$ac_compile") 2>conftest.er1
         3524  +  ac_status=$?
         3525  +  grep -v '^ *+' conftest.er1 >conftest.err
         3526  +  rm -f conftest.er1
         3527  +  cat conftest.err >&5
         3528  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3529  +  (exit $ac_status); } && {
         3530  +	 test -z "$ac_c_werror_flag" ||
         3531  +	 test ! -s conftest.err
         3532  +       } && test -s conftest.$ac_objext; then
         3533  +  ac_header_compiler=yes
         3534  +else
         3535  +  echo "$as_me: failed program was:" >&5
         3536  +sed 's/^/| /' conftest.$ac_ext >&5
         3537  +
         3538  +	ac_header_compiler=no
         3539  +fi
         3540  +
         3541  +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
         3542  +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
         3543  +echo "${ECHO_T}$ac_header_compiler" >&6; }
         3544  +
         3545  +# Is the header present?
         3546  +{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
         3547  +echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
         3548  +cat >conftest.$ac_ext <<_ACEOF
         3549  +/* confdefs.h.  */
         3550  +_ACEOF
         3551  +cat confdefs.h >>conftest.$ac_ext
         3552  +cat >>conftest.$ac_ext <<_ACEOF
         3553  +/* end confdefs.h.  */
         3554  +#include <zlib.h>
         3555  +_ACEOF
         3556  +if { (ac_try="$ac_cpp conftest.$ac_ext"
         3557  +case "(($ac_try" in
         3558  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3559  +  *) ac_try_echo=$ac_try;;
         3560  +esac
         3561  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3562  +  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
         3563  +  ac_status=$?
         3564  +  grep -v '^ *+' conftest.er1 >conftest.err
         3565  +  rm -f conftest.er1
         3566  +  cat conftest.err >&5
         3567  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3568  +  (exit $ac_status); } >/dev/null && {
         3569  +	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
         3570  +	 test ! -s conftest.err
         3571  +       }; then
         3572  +  ac_header_preproc=yes
         3573  +else
         3574  +  echo "$as_me: failed program was:" >&5
         3575  +sed 's/^/| /' conftest.$ac_ext >&5
         3576  +
         3577  +  ac_header_preproc=no
         3578  +fi
         3579  +
         3580  +rm -f conftest.err conftest.$ac_ext
         3581  +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
         3582  +echo "${ECHO_T}$ac_header_preproc" >&6; }
         3583  +
         3584  +# So?  What about this header?
         3585  +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
         3586  +  yes:no: )
         3587  +    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
         3588  +echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
         3589  +    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
         3590  +echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
         3591  +    ac_header_preproc=yes
         3592  +    ;;
         3593  +  no:yes:* )
         3594  +    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
         3595  +echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
         3596  +    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
         3597  +echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
         3598  +    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
         3599  +echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
         3600  +    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
         3601  +echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
         3602  +    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
         3603  +echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
         3604  +    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
         3605  +echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
         3606  +    ( cat <<\_ASBOX
         3607  +## ------------------------------- ##
         3608  +## Report this to joerg@NetBSD.org ##
         3609  +## ------------------------------- ##
         3610  +_ASBOX
         3611  +     ) | sed "s/^/$as_me: WARNING:     /" >&2
         3612  +    ;;
         3613  +esac
         3614  +{ echo "$as_me:$LINENO: checking for zlib.h" >&5
         3615  +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
         3616  +if test "${ac_cv_header_zlib_h+set}" = set; then
         3617  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3618  +else
         3619  +  ac_cv_header_zlib_h=$ac_header_preproc
         3620  +fi
         3621  +{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
         3622  +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
         3623  +
         3624  +fi
         3625  +if test $ac_cv_header_zlib_h = yes; then
         3626  +  zlib_cv_zlib_h=yes
         3627  +else
         3628  +  zlib_cv_zlib_h=no
         3629  +fi
         3630  +
         3631  +
         3632  +
         3633  +if test "$zlib_cv_libz" != yes || test "$zlib_cv_zlib_h" != yes; then
         3634  +        { { echo "$as_me:$LINENO: error: zlib not found" >&5
         3635  +echo "$as_me: error: zlib not found" >&2;}
         3636  +   { (exit please install it or add the necessary flags to CPPFLAGS / LDFLAGS); exit please install it or add the necessary flags to CPPFLAGS / LDFLAGS; }; }
         3637  +fi
         3638  +LIBS="$LIBS -lz"
         3639  +
         3640  +enable_openssl=check
         3641  +# Check whether --enable-openssl was given.
         3642  +if test "${enable_openssl+set}" = set; then
         3643  +  enableval=$enable_openssl; enable_openssl=yes
         3644  +else
         3645  +  enable_openssl=no
         3646  +fi
         3647  +
         3648  +if test "$enable_openssl" != no; then
         3649  +
         3650  +    found=false
         3651  +
         3652  +# Check whether --with-openssl was given.
         3653  +if test "${with_openssl+set}" = set; then
         3654  +  withval=$with_openssl;
         3655  +            case "$withval" in
         3656  +            "" | y | ye | yes | n | no)
         3657  +            { { echo "$as_me:$LINENO: error: Invalid --with-openssl value" >&5
         3658  +echo "$as_me: error: Invalid --with-openssl value" >&2;}
         3659  +   { (exit 1); exit 1; }; }
         3660  +              ;;
         3661  +            *) ssldirs="$withval"
         3662  +              ;;
         3663  +            esac
         3664  +
         3665  +else
         3666  +
         3667  +            # if pkg-config is installed and openssl has installed a .pc file,
         3668  +            # then use that information and don't search ssldirs
         3669  +            # Extract the first word of "pkg-config", so it can be a program name with args.
         3670  +set dummy pkg-config; ac_word=$2
         3671  +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
         3672  +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
         3673  +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
         3674  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3675  +else
         3676  +  case $PKG_CONFIG in
         3677  +  [\\/]* | ?:[\\/]*)
         3678  +  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
         3679  +  ;;
         3680  +  *)
         3681  +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         3682  +for as_dir in $PATH
         3683  +do
         3684  +  IFS=$as_save_IFS
         3685  +  test -z "$as_dir" && as_dir=.
         3686  +  for ac_exec_ext in '' $ac_executable_extensions; do
         3687  +  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
         3688  +    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
         3689  +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
         3690  +    break 2
         3691  +  fi
         3692  +done
         3693  +done
         3694  +IFS=$as_save_IFS
         3695  +
         3696  +  ;;
         3697  +esac
         3698  +fi
         3699  +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
         3700  +if test -n "$PKG_CONFIG"; then
         3701  +  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
         3702  +echo "${ECHO_T}$PKG_CONFIG" >&6; }
         3703  +else
         3704  +  { echo "$as_me:$LINENO: result: no" >&5
         3705  +echo "${ECHO_T}no" >&6; }
         3706  +fi
         3707  +
         3708  +
         3709  +            if test x"$PKG_CONFIG" != x""; then
         3710  +                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
         3711  +                if test $? = 0; then
         3712  +                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
         3713  +                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
         3714  +                    found=true
         3715  +                fi
         3716  +            fi
         3717  +
         3718  +            # no such luck; use some default ssldirs
         3719  +            # -- check /usr/sfw first to get the right OpenSSL on Solaris 10
         3720  +            if ! $found; then
         3721  +                ssldirs="/usr/sfw /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
         3722  +            fi
         3723  +
         3724  +
         3725  +fi
         3726  +
         3727  +
         3728  +
         3729  +    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
         3730  +    # an 'openssl' subdirectory
         3731  +
         3732  +    if ! $found; then
         3733  +        OPENSSL_INCLUDES=
         3734  +        for ssldir in $ssldirs; do
         3735  +            { echo "$as_me:$LINENO: checking for openssl/ssl.h in $ssldir" >&5
         3736  +echo $ECHO_N "checking for openssl/ssl.h in $ssldir... $ECHO_C" >&6; }
         3737  +            if test -f "$ssldir/include/openssl/ssl.h"; then
         3738  +                OPENSSL_INCLUDES="-I$ssldir/include"
         3739  +                OPENSSL_LDFLAGS="-L$ssldir/lib"
         3740  +                OPENSSL_LIBS="-lssl -lcrypto"
         3741  +                found=true
         3742  +                { echo "$as_me:$LINENO: result: yes" >&5
         3743  +echo "${ECHO_T}yes" >&6; }
         3744  +                break
         3745  +            else
         3746  +                { echo "$as_me:$LINENO: result: no" >&5
         3747  +echo "${ECHO_T}no" >&6; }
         3748  +            fi
         3749  +        done
         3750  +
         3751  +        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
         3752  +        # it will just work!
         3753  +    fi
         3754  +
         3755  +    # try the preprocessor and linker with our new flags,
         3756  +    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
         3757  +
         3758  +    { echo "$as_me:$LINENO: checking whether compiling and linking against OpenSSL works" >&5
         3759  +echo $ECHO_N "checking whether compiling and linking against OpenSSL works... $ECHO_C" >&6; }
         3760  +    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
         3761  +        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
         3762  +
         3763  +    save_LIBS="$LIBS"
         3764  +    save_LDFLAGS="$LDFLAGS"
         3765  +    save_CPPFLAGS="$CPPFLAGS"
         3766  +    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
         3767  +    LIBS="$OPENSSL_LIBS $LIBS"
         3768  +    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
         3769  +    cat >conftest.$ac_ext <<_ACEOF
         3770  +/* confdefs.h.  */
         3771  +_ACEOF
         3772  +cat confdefs.h >>conftest.$ac_ext
         3773  +cat >>conftest.$ac_ext <<_ACEOF
         3774  +/* end confdefs.h.  */
         3775  +#include <openssl/ssl.h>
         3776  +int
         3777  +main ()
         3778  +{
         3779  +SSL_new(NULL)
         3780  +  ;
         3781  +  return 0;
         3782  +}
         3783  +_ACEOF
         3784  +rm -f conftest.$ac_objext conftest$ac_exeext
         3785  +if { (ac_try="$ac_link"
         3786  +case "(($ac_try" in
         3787  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3788  +  *) ac_try_echo=$ac_try;;
         3789  +esac
         3790  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3791  +  (eval "$ac_link") 2>conftest.er1
         3792  +  ac_status=$?
         3793  +  grep -v '^ *+' conftest.er1 >conftest.err
         3794  +  rm -f conftest.er1
         3795  +  cat conftest.err >&5
         3796  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3797  +  (exit $ac_status); } && {
         3798  +	 test -z "$ac_c_werror_flag" ||
         3799  +	 test ! -s conftest.err
         3800  +       } && test -s conftest$ac_exeext &&
         3801  +       $as_test_x conftest$ac_exeext; then
         3802  +
         3803  +            { echo "$as_me:$LINENO: result: yes" >&5
         3804  +echo "${ECHO_T}yes" >&6; }
         3805  +
         3806  +cat >>confdefs.h <<\_ACEOF
         3807  +#define FOSSIL_ENABLE_SSL 1
         3808  +_ACEOF
         3809  +
         3810  +
         3811  +else
         3812  +  echo "$as_me: failed program was:" >&5
         3813  +sed 's/^/| /' conftest.$ac_ext >&5
         3814  +
         3815  +
         3816  +            { echo "$as_me:$LINENO: result: no" >&5
         3817  +echo "${ECHO_T}no" >&6; }
         3818  +             if test "$enable_openssl" = yes; then
         3819  +	        { echo "$as_me:$LINENO: result: failed" >&5
         3820  +echo "${ECHO_T}failed" >&6; }
         3821  +                { { echo "$as_me:$LINENO: error: HTTPS support requested" >&5
         3822  +echo "$as_me: error: HTTPS support requested" >&2;}
         3823  +   { (exit but OpenSSL not found); exit but OpenSSL not found; }; }
         3824  +              fi
         3825  +
         3826  +
         3827  +
         3828  +fi
         3829  +
         3830  +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
         3831  +      conftest$ac_exeext conftest.$ac_ext
         3832  +    CPPFLAGS="$save_CPPFLAGS"
         3833  +    LDFLAGS="$save_LDFLAGS"
         3834  +    LIBS="$save_LIBS"
         3835  +
         3836  +
         3837  +
         3838  +
         3839  +
         3840  +fi
         3841  +
         3842  +# Network functions on Solaris
         3843  +{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
         3844  +echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
         3845  +if test "${ac_cv_search_gethostbyname+set}" = set; then
         3846  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3847  +else
         3848  +  ac_func_search_save_LIBS=$LIBS
         3849  +cat >conftest.$ac_ext <<_ACEOF
         3850  +/* confdefs.h.  */
         3851  +_ACEOF
         3852  +cat confdefs.h >>conftest.$ac_ext
         3853  +cat >>conftest.$ac_ext <<_ACEOF
         3854  +/* end confdefs.h.  */
         3855  +
         3856  +/* Override any GCC internal prototype to avoid an error.
         3857  +   Use char because int might match the return type of a GCC
         3858  +   builtin and then its argument prototype would still apply.  */
         3859  +#ifdef __cplusplus
         3860  +extern "C"
         3861  +#endif
         3862  +char gethostbyname ();
         3863  +int
         3864  +main ()
         3865  +{
         3866  +return gethostbyname ();
         3867  +  ;
         3868  +  return 0;
         3869  +}
         3870  +_ACEOF
         3871  +for ac_lib in '' nsl network; do
         3872  +  if test -z "$ac_lib"; then
         3873  +    ac_res="none required"
         3874  +  else
         3875  +    ac_res=-l$ac_lib
         3876  +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
         3877  +  fi
         3878  +  rm -f conftest.$ac_objext conftest$ac_exeext
         3879  +if { (ac_try="$ac_link"
         3880  +case "(($ac_try" in
         3881  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3882  +  *) ac_try_echo=$ac_try;;
         3883  +esac
         3884  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3885  +  (eval "$ac_link") 2>conftest.er1
         3886  +  ac_status=$?
         3887  +  grep -v '^ *+' conftest.er1 >conftest.err
         3888  +  rm -f conftest.er1
         3889  +  cat conftest.err >&5
         3890  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3891  +  (exit $ac_status); } && {
         3892  +	 test -z "$ac_c_werror_flag" ||
         3893  +	 test ! -s conftest.err
         3894  +       } && test -s conftest$ac_exeext &&
         3895  +       $as_test_x conftest$ac_exeext; then
         3896  +  ac_cv_search_gethostbyname=$ac_res
         3897  +else
         3898  +  echo "$as_me: failed program was:" >&5
         3899  +sed 's/^/| /' conftest.$ac_ext >&5
         3900  +
         3901  +
         3902  +fi
         3903  +
         3904  +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
         3905  +      conftest$ac_exeext
         3906  +  if test "${ac_cv_search_gethostbyname+set}" = set; then
         3907  +  break
         3908  +fi
         3909  +done
         3910  +if test "${ac_cv_search_gethostbyname+set}" = set; then
         3911  +  :
         3912  +else
         3913  +  ac_cv_search_gethostbyname=no
         3914  +fi
         3915  +rm conftest.$ac_ext
         3916  +LIBS=$ac_func_search_save_LIBS
         3917  +fi
         3918  +{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
         3919  +echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
         3920  +ac_res=$ac_cv_search_gethostbyname
         3921  +if test "$ac_res" != no; then
         3922  +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
         3923  +
         3924  +fi
         3925  +
         3926  +{ echo "$as_me:$LINENO: checking for library containing socket" >&5
         3927  +echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
         3928  +if test "${ac_cv_search_socket+set}" = set; then
         3929  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         3930  +else
         3931  +  ac_func_search_save_LIBS=$LIBS
         3932  +cat >conftest.$ac_ext <<_ACEOF
         3933  +/* confdefs.h.  */
         3934  +_ACEOF
         3935  +cat confdefs.h >>conftest.$ac_ext
         3936  +cat >>conftest.$ac_ext <<_ACEOF
         3937  +/* end confdefs.h.  */
         3938  +
         3939  +/* Override any GCC internal prototype to avoid an error.
         3940  +   Use char because int might match the return type of a GCC
         3941  +   builtin and then its argument prototype would still apply.  */
         3942  +#ifdef __cplusplus
         3943  +extern "C"
         3944  +#endif
         3945  +char socket ();
         3946  +int
         3947  +main ()
         3948  +{
         3949  +return socket ();
         3950  +  ;
         3951  +  return 0;
         3952  +}
         3953  +_ACEOF
         3954  +for ac_lib in '' socket; do
         3955  +  if test -z "$ac_lib"; then
         3956  +    ac_res="none required"
         3957  +  else
         3958  +    ac_res=-l$ac_lib
         3959  +    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
         3960  +  fi
         3961  +  rm -f conftest.$ac_objext conftest$ac_exeext
         3962  +if { (ac_try="$ac_link"
         3963  +case "(($ac_try" in
         3964  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         3965  +  *) ac_try_echo=$ac_try;;
         3966  +esac
         3967  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         3968  +  (eval "$ac_link") 2>conftest.er1
         3969  +  ac_status=$?
         3970  +  grep -v '^ *+' conftest.er1 >conftest.err
         3971  +  rm -f conftest.er1
         3972  +  cat conftest.err >&5
         3973  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         3974  +  (exit $ac_status); } && {
         3975  +	 test -z "$ac_c_werror_flag" ||
         3976  +	 test ! -s conftest.err
         3977  +       } && test -s conftest$ac_exeext &&
         3978  +       $as_test_x conftest$ac_exeext; then
         3979  +  ac_cv_search_socket=$ac_res
         3980  +else
         3981  +  echo "$as_me: failed program was:" >&5
         3982  +sed 's/^/| /' conftest.$ac_ext >&5
         3983  +
         3984  +
         3985  +fi
         3986  +
         3987  +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
         3988  +      conftest$ac_exeext
         3989  +  if test "${ac_cv_search_socket+set}" = set; then
         3990  +  break
         3991  +fi
         3992  +done
         3993  +if test "${ac_cv_search_socket+set}" = set; then
         3994  +  :
         3995  +else
         3996  +  ac_cv_search_socket=no
         3997  +fi
         3998  +rm conftest.$ac_ext
         3999  +LIBS=$ac_func_search_save_LIBS
         4000  +fi
         4001  +{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
         4002  +echo "${ECHO_T}$ac_cv_search_socket" >&6; }
         4003  +ac_res=$ac_cv_search_socket
         4004  +if test "$ac_res" != no; then
         4005  +  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
         4006  +
         4007  +else
         4008  +  { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
         4009  +echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
         4010  +if test "${ac_cv_lib_socket_socket+set}" = set; then
         4011  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         4012  +else
         4013  +  ac_check_lib_save_LIBS=$LIBS
         4014  +LIBS="-lsocket -lnsl $LIBS"
         4015  +cat >conftest.$ac_ext <<_ACEOF
         4016  +/* confdefs.h.  */
         4017  +_ACEOF
         4018  +cat confdefs.h >>conftest.$ac_ext
         4019  +cat >>conftest.$ac_ext <<_ACEOF
         4020  +/* end confdefs.h.  */
         4021  +
         4022  +/* Override any GCC internal prototype to avoid an error.
         4023  +   Use char because int might match the return type of a GCC
         4024  +   builtin and then its argument prototype would still apply.  */
         4025  +#ifdef __cplusplus
         4026  +extern "C"
         4027  +#endif
         4028  +char socket ();
         4029  +int
         4030  +main ()
         4031  +{
         4032  +return socket ();
         4033  +  ;
         4034  +  return 0;
         4035  +}
         4036  +_ACEOF
         4037  +rm -f conftest.$ac_objext conftest$ac_exeext
         4038  +if { (ac_try="$ac_link"
         4039  +case "(($ac_try" in
         4040  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         4041  +  *) ac_try_echo=$ac_try;;
         4042  +esac
         4043  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         4044  +  (eval "$ac_link") 2>conftest.er1
         4045  +  ac_status=$?
         4046  +  grep -v '^ *+' conftest.er1 >conftest.err
         4047  +  rm -f conftest.er1
         4048  +  cat conftest.err >&5
         4049  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         4050  +  (exit $ac_status); } && {
         4051  +	 test -z "$ac_c_werror_flag" ||
         4052  +	 test ! -s conftest.err
         4053  +       } && test -s conftest$ac_exeext &&
         4054  +       $as_test_x conftest$ac_exeext; then
         4055  +  ac_cv_lib_socket_socket=yes
         4056  +else
         4057  +  echo "$as_me: failed program was:" >&5
         4058  +sed 's/^/| /' conftest.$ac_ext >&5
         4059  +
         4060  +	ac_cv_lib_socket_socket=no
         4061  +fi
         4062  +
         4063  +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
         4064  +      conftest$ac_exeext conftest.$ac_ext
         4065  +LIBS=$ac_check_lib_save_LIBS
         4066  +fi
         4067  +{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
         4068  +echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
         4069  +if test $ac_cv_lib_socket_socket = yes; then
         4070  +  LIBS="-lsocket -lnsl $LIBS"
         4071  +fi
         4072  +
         4073  +fi
         4074  +
         4075  +
         4076  +
         4077  +# Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
         4078  +
         4079  +for ac_func in getpassphrase
         4080  +do
         4081  +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
         4082  +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
         4083  +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
         4084  +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
         4085  +  echo $ECHO_N "(cached) $ECHO_C" >&6
         4086  +else
         4087  +  cat >conftest.$ac_ext <<_ACEOF
         4088  +/* confdefs.h.  */
         4089  +_ACEOF
         4090  +cat confdefs.h >>conftest.$ac_ext
         4091  +cat >>conftest.$ac_ext <<_ACEOF
         4092  +/* end confdefs.h.  */
         4093  +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
         4094  +   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
         4095  +#define $ac_func innocuous_$ac_func
         4096  +
         4097  +/* System header to define __stub macros and hopefully few prototypes,
         4098  +    which can conflict with char $ac_func (); below.
         4099  +    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
         4100  +    <limits.h> exists even on freestanding compilers.  */
         4101  +
         4102  +#ifdef __STDC__
         4103  +# include <limits.h>
         4104  +#else
         4105  +# include <assert.h>
         4106  +#endif
         4107  +
         4108  +#undef $ac_func
         4109  +
         4110  +/* Override any GCC internal prototype to avoid an error.
         4111  +   Use char because int might match the return type of a GCC
         4112  +   builtin and then its argument prototype would still apply.  */
         4113  +#ifdef __cplusplus
         4114  +extern "C"
         4115  +#endif
         4116  +char $ac_func ();
         4117  +/* The GNU C library defines this for functions which it implements
         4118  +    to always fail with ENOSYS.  Some functions are actually named
         4119  +    something starting with __ and the normal name is an alias.  */
         4120  +#if defined __stub_$ac_func || defined __stub___$ac_func
         4121  +choke me
         4122  +#endif
         4123  +
         4124  +int
         4125  +main ()
         4126  +{
         4127  +return $ac_func ();
         4128  +  ;
         4129  +  return 0;
         4130  +}
         4131  +_ACEOF
         4132  +rm -f conftest.$ac_objext conftest$ac_exeext
         4133  +if { (ac_try="$ac_link"
         4134  +case "(($ac_try" in
         4135  +  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
         4136  +  *) ac_try_echo=$ac_try;;
         4137  +esac
         4138  +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
         4139  +  (eval "$ac_link") 2>conftest.er1
         4140  +  ac_status=$?
         4141  +  grep -v '^ *+' conftest.er1 >conftest.err
         4142  +  rm -f conftest.er1
         4143  +  cat conftest.err >&5
         4144  +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
         4145  +  (exit $ac_status); } && {
         4146  +	 test -z "$ac_c_werror_flag" ||
         4147  +	 test ! -s conftest.err
         4148  +       } && test -s conftest$ac_exeext &&
         4149  +       $as_test_x conftest$ac_exeext; then
         4150  +  eval "$as_ac_var=yes"
         4151  +else
         4152  +  echo "$as_me: failed program was:" >&5
         4153  +sed 's/^/| /' conftest.$ac_ext >&5
         4154  +
         4155  +	eval "$as_ac_var=no"
         4156  +fi
         4157  +
         4158  +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
         4159  +      conftest$ac_exeext conftest.$ac_ext
         4160  +fi
         4161  +ac_res=`eval echo '${'$as_ac_var'}'`
         4162  +	       { echo "$as_me:$LINENO: result: $ac_res" >&5
         4163  +echo "${ECHO_T}$ac_res" >&6; }
         4164  +if test `eval echo '${'$as_ac_var'}'` = yes; then
         4165  +  cat >>confdefs.h <<_ACEOF
         4166  +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
         4167  +_ACEOF
         4168  +
         4169  +fi
         4170  +done
         4171  +
         4172  +
         4173  +ac_config_files="$ac_config_files Makefile"
         4174  +
         4175  +cat >confcache <<\_ACEOF
         4176  +# This file is a shell script that caches the results of configure
         4177  +# tests run on this system so they can be shared between configure
         4178  +# scripts and configure runs, see configure's option --config-cache.
         4179  +# It is not useful on other systems.  If it contains results you don't
         4180  +# want to keep, you may remove or edit it.
         4181  +#
         4182  +# config.status only pays attention to the cache file if you give it
         4183  +# the --recheck option to rerun configure.
         4184  +#
         4185  +# `ac_cv_env_foo' variables (set or unset) will be overridden when
         4186  +# loading this file, other *unset* `ac_cv_foo' will be assigned the
         4187  +# following values.
         4188  +
         4189  +_ACEOF
         4190  +
         4191  +# The following way of writing the cache mishandles newlines in values,
         4192  +# but we know of no workaround that is simple, portable, and efficient.
         4193  +# So, we kill variables containing newlines.
         4194  +# Ultrix sh set writes to stderr and can't be redirected directly,
         4195  +# and sets the high bit in the cache file unless we assign to the vars.
         4196  +(
         4197  +  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
         4198  +    eval ac_val=\$$ac_var
         4199  +    case $ac_val in #(
         4200  +    *${as_nl}*)
         4201  +      case $ac_var in #(
         4202  +      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
         4203  +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
         4204  +      esac
         4205  +      case $ac_var in #(
         4206  +      _ | IFS | as_nl) ;; #(
         4207  +      *) $as_unset $ac_var ;;
         4208  +      esac ;;
         4209  +    esac
         4210  +  done
         4211  +
         4212  +  (set) 2>&1 |
         4213  +    case $as_nl`(ac_space=' '; set) 2>&1` in #(
         4214  +    *${as_nl}ac_space=\ *)
         4215  +      # `set' does not quote correctly, so add quotes (double-quote
         4216  +      # substitution turns \\\\ into \\, and sed turns \\ into \).
         4217  +      sed -n \
         4218  +	"s/'/'\\\\''/g;
         4219  +	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
         4220  +      ;; #(
         4221  +    *)
         4222  +      # `set' quotes correctly as required by POSIX, so do not add quotes.
         4223  +      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
         4224  +      ;;
         4225  +    esac |
         4226  +    sort
         4227  +) |
         4228  +  sed '
         4229  +     /^ac_cv_env_/b end
         4230  +     t clear
         4231  +     :clear
         4232  +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
         4233  +     t end
         4234  +     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
         4235  +     :end' >>confcache
         4236  +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
         4237  +  if test -w "$cache_file"; then
         4238  +    test "x$cache_file" != "x/dev/null" &&
         4239  +      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
         4240  +echo "$as_me: updating cache $cache_file" >&6;}
         4241  +    cat confcache >$cache_file
         4242  +  else
         4243  +    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
         4244  +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
         4245  +  fi
         4246  +fi
         4247  +rm -f confcache
         4248  +
         4249  +test "x$prefix" = xNONE && prefix=$ac_default_prefix
         4250  +# Let make expand exec_prefix.
         4251  +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
         4252  +
         4253  +DEFS=-DHAVE_CONFIG_H
         4254  +
         4255  +ac_libobjs=
         4256  +ac_ltlibobjs=
         4257  +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
         4258  +  # 1. Remove the extension, and $U if already installed.
         4259  +  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
         4260  +  ac_i=`echo "$ac_i" | sed "$ac_script"`
         4261  +  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
         4262  +  #    will be set to the directory where LIBOBJS objects are built.
         4263  +  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
         4264  +  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
         4265  +done
         4266  +LIBOBJS=$ac_libobjs
         4267  +
         4268  +LTLIBOBJS=$ac_ltlibobjs
         4269  +
         4270  +
         4271  +
         4272  +: ${CONFIG_STATUS=./config.status}
         4273  +ac_clean_files_save=$ac_clean_files
         4274  +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
         4275  +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
         4276  +echo "$as_me: creating $CONFIG_STATUS" >&6;}
         4277  +cat >$CONFIG_STATUS <<_ACEOF
         4278  +#! $SHELL
         4279  +# Generated by $as_me.
         4280  +# Run this file to recreate the current configuration.
         4281  +# Compiler output produced by configure, useful for debugging
         4282  +# configure, is in config.log if it exists.
         4283  +
         4284  +debug=false
         4285  +ac_cs_recheck=false
         4286  +ac_cs_silent=false
         4287  +SHELL=\${CONFIG_SHELL-$SHELL}
         4288  +_ACEOF
         4289  +
         4290  +cat >>$CONFIG_STATUS <<\_ACEOF
         4291  +## --------------------- ##
         4292  +## M4sh Initialization.  ##
         4293  +## --------------------- ##
         4294  +
         4295  +# Be more Bourne compatible
         4296  +DUALCASE=1; export DUALCASE # for MKS sh
         4297  +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
         4298  +  emulate sh
         4299  +  NULLCMD=:
         4300  +  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
         4301  +  # is contrary to our usage.  Disable this feature.
         4302  +  alias -g '${1+"$@"}'='"$@"'
         4303  +  setopt NO_GLOB_SUBST
         4304  +else
         4305  +  case `(set -o) 2>/dev/null` in
         4306  +  *posix*) set -o posix ;;
         4307  +esac
         4308  +
         4309  +fi
         4310  +
         4311  +
         4312  +
         4313  +
         4314  +# PATH needs CR
         4315  +# Avoid depending upon Character Ranges.
         4316  +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
         4317  +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
         4318  +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
         4319  +as_cr_digits='0123456789'
         4320  +as_cr_alnum=$as_cr_Letters$as_cr_digits
         4321  +
         4322  +# The user is always right.
         4323  +if test "${PATH_SEPARATOR+set}" != set; then
         4324  +  echo "#! /bin/sh" >conf$$.sh
         4325  +  echo  "exit 0"   >>conf$$.sh
         4326  +  chmod +x conf$$.sh
         4327  +  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
         4328  +    PATH_SEPARATOR=';'
         4329  +  else
         4330  +    PATH_SEPARATOR=:
         4331  +  fi
         4332  +  rm -f conf$$.sh
         4333  +fi
         4334  +
         4335  +# Support unset when possible.
         4336  +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
         4337  +  as_unset=unset
         4338  +else
         4339  +  as_unset=false
         4340  +fi
         4341  +
         4342  +
         4343  +# IFS
         4344  +# We need space, tab and new line, in precisely that order.  Quoting is
         4345  +# there to prevent editors from complaining about space-tab.
         4346  +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
         4347  +# splitting by setting IFS to empty value.)
         4348  +as_nl='
         4349  +'
         4350  +IFS=" ""	$as_nl"
         4351  +
         4352  +# Find who we are.  Look in the path if we contain no directory separator.
         4353  +case $0 in
         4354  +  *[\\/]* ) as_myself=$0 ;;
         4355  +  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
         4356  +for as_dir in $PATH
         4357  +do
         4358  +  IFS=$as_save_IFS
         4359  +  test -z "$as_dir" && as_dir=.
         4360  +  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
         4361  +done
         4362  +IFS=$as_save_IFS
         4363  +
         4364  +     ;;
         4365  +esac
         4366  +# We did not find ourselves, most probably we were run as `sh COMMAND'
         4367  +# in which case we are not to be found in the path.
         4368  +if test "x$as_myself" = x; then
         4369  +  as_myself=$0
         4370  +fi
         4371  +if test ! -f "$as_myself"; then
         4372  +  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
         4373  +  { (exit 1); exit 1; }
         4374  +fi
         4375  +
         4376  +# Work around bugs in pre-3.0 UWIN ksh.
         4377  +for as_var in ENV MAIL MAILPATH
         4378  +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
         4379  +done
         4380  +PS1='$ '
         4381  +PS2='> '
         4382  +PS4='+ '
         4383  +
         4384  +# NLS nuisances.
         4385  +for as_var in \
         4386  +  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
         4387  +  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
         4388  +  LC_TELEPHONE LC_TIME
         4389  +do
         4390  +  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
         4391  +    eval $as_var=C; export $as_var
         4392  +  else
         4393  +    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
         4394  +  fi
         4395  +done
         4396  +
         4397  +# Required to use basename.
         4398  +if expr a : '\(a\)' >/dev/null 2>&1 &&
         4399  +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
         4400  +  as_expr=expr
         4401  +else
         4402  +  as_expr=false
         4403  +fi
         4404  +
         4405  +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
         4406  +  as_basename=basename
         4407  +else
         4408  +  as_basename=false
         4409  +fi
         4410  +
         4411  +
         4412  +# Name of the executable.
         4413  +as_me=`$as_basename -- "$0" ||
         4414  +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
         4415  +	 X"$0" : 'X\(//\)$' \| \
         4416  +	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
         4417  +echo X/"$0" |
         4418  +    sed '/^.*\/\([^/][^/]*\)\/*$/{
         4419  +	    s//\1/
         4420  +	    q
         4421  +	  }
         4422  +	  /^X\/\(\/\/\)$/{
         4423  +	    s//\1/
         4424  +	    q
         4425  +	  }
         4426  +	  /^X\/\(\/\).*/{
         4427  +	    s//\1/
         4428  +	    q
         4429  +	  }
         4430  +	  s/.*/./; q'`
         4431  +
         4432  +# CDPATH.
         4433  +$as_unset CDPATH
         4434  +
         4435  +
         4436  +
         4437  +  as_lineno_1=$LINENO
         4438  +  as_lineno_2=$LINENO
         4439  +  test "x$as_lineno_1" != "x$as_lineno_2" &&
         4440  +  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
         4441  +
         4442  +  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
         4443  +  # uniformly replaced by the line number.  The first 'sed' inserts a
         4444  +  # line-number line after each line using $LINENO; the second 'sed'
         4445  +  # does the real work.  The second script uses 'N' to pair each
         4446  +  # line-number line with the line containing $LINENO, and appends
         4447  +  # trailing '-' during substitution so that $LINENO is not a special
         4448  +  # case at line end.
         4449  +  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
         4450  +  # scripts with optimization help from Paolo Bonzini.  Blame Lee
         4451  +  # E. McMahon (1931-1989) for sed's syntax.  :-)
         4452  +  sed -n '
         4453  +    p
         4454  +    /[$]LINENO/=
         4455  +  ' <$as_myself |
         4456  +    sed '
         4457  +      s/[$]LINENO.*/&-/
         4458  +      t lineno
         4459  +      b
         4460  +      :lineno
         4461  +      N
         4462  +      :loop
         4463  +      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
         4464  +      t loop
         4465  +      s/-\n.*//
         4466  +    ' >$as_me.lineno &&
         4467  +  chmod +x "$as_me.lineno" ||
         4468  +    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
         4469  +   { (exit 1); exit 1; }; }
         4470  +
         4471  +  # Don't try to exec as it changes $[0], causing all sort of problems
         4472  +  # (the dirname of $[0] is not the place where we might find the
         4473  +  # original and so on.  Autoconf is especially sensitive to this).
         4474  +  . "./$as_me.lineno"
         4475  +  # Exit status is that of the last command.
         4476  +  exit
         4477  +}
         4478  +
         4479  +
         4480  +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
         4481  +  as_dirname=dirname
         4482  +else
         4483  +  as_dirname=false
         4484  +fi
         4485  +
         4486  +ECHO_C= ECHO_N= ECHO_T=
         4487  +case `echo -n x` in
         4488  +-n*)
         4489  +  case `echo 'x\c'` in
         4490  +  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
         4491  +  *)   ECHO_C='\c';;
         4492  +  esac;;
         4493  +*)
         4494  +  ECHO_N='-n';;
         4495  +esac
         4496  +
         4497  +if expr a : '\(a\)' >/dev/null 2>&1 &&
         4498  +   test "X`expr 00001 : '.*\(...\)'`" = X001; then
         4499  +  as_expr=expr
         4500  +else
         4501  +  as_expr=false
         4502  +fi
         4503  +
         4504  +rm -f conf$$ conf$$.exe conf$$.file
         4505  +if test -d conf$$.dir; then
         4506  +  rm -f conf$$.dir/conf$$.file
         4507  +else
         4508  +  rm -f conf$$.dir
         4509  +  mkdir conf$$.dir
         4510  +fi
         4511  +echo >conf$$.file
         4512  +if ln -s conf$$.file conf$$ 2>/dev/null; then
         4513  +  as_ln_s='ln -s'
         4514  +  # ... but there are two gotchas:
         4515  +  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
         4516  +  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
         4517  +  # In both cases, we have to default to `cp -p'.
         4518  +  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
         4519  +    as_ln_s='cp -p'
         4520  +elif ln conf$$.file conf$$ 2>/dev/null; then
         4521  +  as_ln_s=ln
         4522  +else
         4523  +  as_ln_s='cp -p'
         4524  +fi
         4525  +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
         4526  +rmdir conf$$.dir 2>/dev/null
         4527  +
         4528  +if mkdir -p . 2>/dev/null; then
         4529  +  as_mkdir_p=:
         4530  +else
         4531  +  test -d ./-p && rmdir ./-p
         4532  +  as_mkdir_p=false
         4533  +fi
         4534  +
         4535  +if test -x / >/dev/null 2>&1; then
         4536  +  as_test_x='test -x'
         4537  +else
         4538  +  if ls -dL / >/dev/null 2>&1; then
         4539  +    as_ls_L_option=L
         4540  +  else
         4541  +    as_ls_L_option=
         4542  +  fi
         4543  +  as_test_x='
         4544  +    eval sh -c '\''
         4545  +      if test -d "$1"; then
         4546  +        test -d "$1/.";
         4547  +      else
         4548  +	case $1 in
         4549  +        -*)set "./$1";;
         4550  +	esac;
         4551  +	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
         4552  +	???[sx]*):;;*)false;;esac;fi
         4553  +    '\'' sh
         4554  +  '
         4555  +fi
         4556  +as_executable_p=$as_test_x
         4557  +
         4558  +# Sed expression to map a string onto a valid CPP name.
         4559  +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
         4560  +
         4561  +# Sed expression to map a string onto a valid variable name.
         4562  +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
         4563  +
         4564  +
         4565  +exec 6>&1
         4566  +
         4567  +# Save the log message, to keep $[0] and so on meaningful, and to
         4568  +# report actual input values of CONFIG_FILES etc. instead of their
         4569  +# values after options handling.
         4570  +ac_log="
         4571  +This file was extended by fossil $as_me 20110528, which was
         4572  +generated by GNU Autoconf 2.61.  Invocation command line was
         4573  +
         4574  +  CONFIG_FILES    = $CONFIG_FILES
         4575  +  CONFIG_HEADERS  = $CONFIG_HEADERS
         4576  +  CONFIG_LINKS    = $CONFIG_LINKS
         4577  +  CONFIG_COMMANDS = $CONFIG_COMMANDS
         4578  +  $ $0 $@
         4579  +
         4580  +on `(hostname || uname -n) 2>/dev/null | sed 1q`
         4581  +"
         4582  +
         4583  +_ACEOF
         4584  +
         4585  +cat >>$CONFIG_STATUS <<_ACEOF
         4586  +# Files that config.status was made for.
         4587  +config_files="$ac_config_files"
         4588  +config_headers="$ac_config_headers"
         4589  +
         4590  +_ACEOF
         4591  +
         4592  +cat >>$CONFIG_STATUS <<\_ACEOF
         4593  +ac_cs_usage="\
         4594  +\`$as_me' instantiates files from templates according to the
         4595  +current configuration.
         4596  +
         4597  +Usage: $0 [OPTIONS] [FILE]...
         4598  +
         4599  +  -h, --help       print this help, then exit
         4600  +  -V, --version    print version number and configuration settings, then exit
         4601  +  -q, --quiet      do not print progress messages
         4602  +  -d, --debug      don't remove temporary files
         4603  +      --recheck    update $as_me by reconfiguring in the same conditions
         4604  +  --file=FILE[:TEMPLATE]
         4605  +		   instantiate the configuration file FILE
         4606  +  --header=FILE[:TEMPLATE]
         4607  +		   instantiate the configuration header FILE
         4608  +
         4609  +Configuration files:
         4610  +$config_files
         4611  +
         4612  +Configuration headers:
         4613  +$config_headers
         4614  +
         4615  +Report bugs to <bug-autoconf@gnu.org>."
         4616  +
         4617  +_ACEOF
         4618  +cat >>$CONFIG_STATUS <<_ACEOF
         4619  +ac_cs_version="\\
         4620  +fossil config.status 20110528
         4621  +configured by $0, generated by GNU Autoconf 2.61,
         4622  +  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
         4623  +
         4624  +Copyright (C) 2006 Free Software Foundation, Inc.
         4625  +This config.status script is free software; the Free Software Foundation
         4626  +gives unlimited permission to copy, distribute and modify it."
         4627  +
         4628  +ac_pwd='$ac_pwd'
         4629  +srcdir='$srcdir'
         4630  +_ACEOF
         4631  +
         4632  +cat >>$CONFIG_STATUS <<\_ACEOF
         4633  +# If no file are specified by the user, then we need to provide default
         4634  +# value.  By we need to know if files were specified by the user.
         4635  +ac_need_defaults=:
         4636  +while test $# != 0
         4637  +do
         4638  +  case $1 in
         4639  +  --*=*)
         4640  +    ac_option=`expr "X$1" : 'X\([^=]*\)='`
         4641  +    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
         4642  +    ac_shift=:
         4643  +    ;;
         4644  +  *)
         4645  +    ac_option=$1
         4646  +    ac_optarg=$2
         4647  +    ac_shift=shift
         4648  +    ;;
         4649  +  esac
         4650  +
         4651  +  case $ac_option in
         4652  +  # Handling of the options.
         4653  +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
         4654  +    ac_cs_recheck=: ;;
         4655  +  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
         4656  +    echo "$ac_cs_version"; exit ;;
         4657  +  --debug | --debu | --deb | --de | --d | -d )
         4658  +    debug=: ;;
         4659  +  --file | --fil | --fi | --f )
         4660  +    $ac_shift
         4661  +    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
         4662  +    ac_need_defaults=false;;
         4663  +  --header | --heade | --head | --hea )
         4664  +    $ac_shift
         4665  +    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
         4666  +    ac_need_defaults=false;;
         4667  +  --he | --h)
         4668  +    # Conflict between --help and --header
         4669  +    { echo "$as_me: error: ambiguous option: $1
         4670  +Try \`$0 --help' for more information." >&2
         4671  +   { (exit 1); exit 1; }; };;
         4672  +  --help | --hel | -h )
         4673  +    echo "$ac_cs_usage"; exit ;;
         4674  +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
         4675  +  | -silent | --silent | --silen | --sile | --sil | --si | --s)
         4676  +    ac_cs_silent=: ;;
         4677  +
         4678  +  # This is an error.
         4679  +  -*) { echo "$as_me: error: unrecognized option: $1
         4680  +Try \`$0 --help' for more information." >&2
         4681  +   { (exit 1); exit 1; }; } ;;
         4682  +
         4683  +  *) ac_config_targets="$ac_config_targets $1"
         4684  +     ac_need_defaults=false ;;
         4685  +
         4686  +  esac
         4687  +  shift
         4688  +done
         4689  +
         4690  +ac_configure_extra_args=
         4691  +
         4692  +if $ac_cs_silent; then
         4693  +  exec 6>/dev/null
         4694  +  ac_configure_extra_args="$ac_configure_extra_args --silent"
         4695  +fi
         4696  +
         4697  +_ACEOF
         4698  +cat >>$CONFIG_STATUS <<_ACEOF
         4699  +if \$ac_cs_recheck; then
         4700  +  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
         4701  +  CONFIG_SHELL=$SHELL
         4702  +  export CONFIG_SHELL
         4703  +  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
         4704  +fi
         4705  +
         4706  +_ACEOF
         4707  +cat >>$CONFIG_STATUS <<\_ACEOF
         4708  +exec 5>>config.log
         4709  +{
         4710  +  echo
         4711  +  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
         4712  +## Running $as_me. ##
         4713  +_ASBOX
         4714  +  echo "$ac_log"
         4715  +} >&5
         4716  +
         4717  +_ACEOF
         4718  +cat >>$CONFIG_STATUS <<_ACEOF
         4719  +_ACEOF
         4720  +
         4721  +cat >>$CONFIG_STATUS <<\_ACEOF
         4722  +
         4723  +# Handling of arguments.
         4724  +for ac_config_target in $ac_config_targets
         4725  +do
         4726  +  case $ac_config_target in
         4727  +    "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;;
         4728  +    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
         4729  +
         4730  +  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
         4731  +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
         4732  +   { (exit 1); exit 1; }; };;
         4733  +  esac
         4734  +done
         4735  +
         4736  +
         4737  +# If the user did not use the arguments to specify the items to instantiate,
         4738  +# then the envvar interface is used.  Set only those that are not.
         4739  +# We use the long form for the default assignment because of an extremely
         4740  +# bizarre bug on SunOS 4.1.3.
         4741  +if $ac_need_defaults; then
         4742  +  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
         4743  +  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
         4744  +fi
         4745  +
         4746  +# Have a temporary directory for convenience.  Make it in the build tree
         4747  +# simply because there is no reason against having it here, and in addition,
         4748  +# creating and moving files from /tmp can sometimes cause problems.
         4749  +# Hook for its removal unless debugging.
         4750  +# Note that there is a small window in which the directory will not be cleaned:
         4751  +# after its creation but before its name has been assigned to `$tmp'.
         4752  +$debug ||
         4753  +{
         4754  +  tmp=
         4755  +  trap 'exit_status=$?
         4756  +  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
         4757  +' 0
         4758  +  trap '{ (exit 1); exit 1; }' 1 2 13 15
         4759  +}
         4760  +# Create a (secure) tmp directory for tmp files.
         4761  +
         4762  +{
         4763  +  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
         4764  +  test -n "$tmp" && test -d "$tmp"
         4765  +}  ||
         4766  +{
         4767  +  tmp=./conf$$-$RANDOM
         4768  +  (umask 077 && mkdir "$tmp")
         4769  +} ||
         4770  +{
         4771  +   echo "$me: cannot create a temporary directory in ." >&2
         4772  +   { (exit 1); exit 1; }
         4773  +}
         4774  +
         4775  +#
         4776  +# Set up the sed scripts for CONFIG_FILES section.
         4777  +#
         4778  +
         4779  +# No need to generate the scripts if there are no CONFIG_FILES.
         4780  +# This happens for instance when ./config.status config.h
         4781  +if test -n "$CONFIG_FILES"; then
         4782  +
         4783  +_ACEOF
         4784  +
         4785  +
         4786  +
         4787  +ac_delim='%!_!# '
         4788  +for ac_last_try in false false false false false :; do
         4789  +  cat >conf$$subs.sed <<_ACEOF
         4790  +SHELL!$SHELL$ac_delim
         4791  +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
         4792  +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
         4793  +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
         4794  +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
         4795  +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
         4796  +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
         4797  +exec_prefix!$exec_prefix$ac_delim
         4798  +prefix!$prefix$ac_delim
         4799  +program_transform_name!$program_transform_name$ac_delim
         4800  +bindir!$bindir$ac_delim
         4801  +sbindir!$sbindir$ac_delim
         4802  +libexecdir!$libexecdir$ac_delim
         4803  +datarootdir!$datarootdir$ac_delim
         4804  +datadir!$datadir$ac_delim
         4805  +sysconfdir!$sysconfdir$ac_delim
         4806  +sharedstatedir!$sharedstatedir$ac_delim
         4807  +localstatedir!$localstatedir$ac_delim
         4808  +includedir!$includedir$ac_delim
         4809  +oldincludedir!$oldincludedir$ac_delim
         4810  +docdir!$docdir$ac_delim
         4811  +infodir!$infodir$ac_delim
         4812  +htmldir!$htmldir$ac_delim
         4813  +dvidir!$dvidir$ac_delim
         4814  +pdfdir!$pdfdir$ac_delim
         4815  +psdir!$psdir$ac_delim
         4816  +libdir!$libdir$ac_delim
         4817  +localedir!$localedir$ac_delim
         4818  +mandir!$mandir$ac_delim
         4819  +DEFS!$DEFS$ac_delim
         4820  +ECHO_C!$ECHO_C$ac_delim
         4821  +ECHO_N!$ECHO_N$ac_delim
         4822  +ECHO_T!$ECHO_T$ac_delim
         4823  +LIBS!$LIBS$ac_delim
         4824  +build_alias!$build_alias$ac_delim
         4825  +host_alias!$host_alias$ac_delim
         4826  +target_alias!$target_alias$ac_delim
         4827  +build!$build$ac_delim
         4828  +build_cpu!$build_cpu$ac_delim
         4829  +build_vendor!$build_vendor$ac_delim
         4830  +build_os!$build_os$ac_delim
         4831  +host!$host$ac_delim
         4832  +host_cpu!$host_cpu$ac_delim
         4833  +host_vendor!$host_vendor$ac_delim
         4834  +host_os!$host_os$ac_delim
         4835  +SET_MAKE!$SET_MAKE$ac_delim
         4836  +CC!$CC$ac_delim
         4837  +CFLAGS!$CFLAGS$ac_delim
         4838  +LDFLAGS!$LDFLAGS$ac_delim
         4839  +CPPFLAGS!$CPPFLAGS$ac_delim
         4840  +ac_ct_CC!$ac_ct_CC$ac_delim
         4841  +EXEEXT!$EXEEXT$ac_delim
         4842  +OBJEXT!$OBJEXT$ac_delim
         4843  +CPP!$CPP$ac_delim
         4844  +GREP!$GREP$ac_delim
         4845  +EGREP!$EGREP$ac_delim
         4846  +PKG_CONFIG!$PKG_CONFIG$ac_delim
         4847  +OPENSSL_INCLUDES!$OPENSSL_INCLUDES$ac_delim
         4848  +OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
         4849  +OPENSSL_LDFLAGS!$OPENSSL_LDFLAGS$ac_delim
         4850  +LIBOBJS!$LIBOBJS$ac_delim
         4851  +LTLIBOBJS!$LTLIBOBJS$ac_delim
         4852  +_ACEOF
         4853  +
         4854  +  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
         4855  +    break
         4856  +  elif $ac_last_try; then
         4857  +    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
         4858  +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
         4859  +   { (exit 1); exit 1; }; }
         4860  +  else
         4861  +    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
         4862  +  fi
         4863  +done
         4864  +
         4865  +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
         4866  +if test -n "$ac_eof"; then
         4867  +  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
         4868  +  ac_eof=`expr $ac_eof + 1`
         4869  +fi
         4870  +
         4871  +cat >>$CONFIG_STATUS <<_ACEOF
         4872  +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
         4873  +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
         4874  +_ACEOF
         4875  +sed '
         4876  +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
         4877  +s/^/s,@/; s/!/@,|#_!!_#|/
         4878  +:n
         4879  +t n
         4880  +s/'"$ac_delim"'$/,g/; t
         4881  +s/$/\\/; p
         4882  +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
         4883  +' >>$CONFIG_STATUS <conf$$subs.sed
         4884  +rm -f conf$$subs.sed
         4885  +cat >>$CONFIG_STATUS <<_ACEOF
         4886  +:end
         4887  +s/|#_!!_#|//g
         4888  +CEOF$ac_eof
         4889  +_ACEOF
         4890  +
         4891  +
         4892  +# VPATH may cause trouble with some makes, so we remove $(srcdir),
         4893  +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
         4894  +# trailing colons and then remove the whole line if VPATH becomes empty
         4895  +# (actually we leave an empty line to preserve line numbers).
         4896  +if test "x$srcdir" = x.; then
         4897  +  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
         4898  +s/:*\$(srcdir):*/:/
         4899  +s/:*\${srcdir}:*/:/
         4900  +s/:*@srcdir@:*/:/
         4901  +s/^\([^=]*=[	 ]*\):*/\1/
         4902  +s/:*$//
         4903  +s/^[^=]*=[	 ]*$//
         4904  +}'
         4905  +fi
         4906  +
         4907  +cat >>$CONFIG_STATUS <<\_ACEOF
         4908  +fi # test -n "$CONFIG_FILES"
         4909  +
         4910  +
         4911  +for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
         4912  +do
         4913  +  case $ac_tag in
         4914  +  :[FHLC]) ac_mode=$ac_tag; continue;;
         4915  +  esac
         4916  +  case $ac_mode$ac_tag in
         4917  +  :[FHL]*:*);;
         4918  +  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
         4919  +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
         4920  +   { (exit 1); exit 1; }; };;
         4921  +  :[FH]-) ac_tag=-:-;;
         4922  +  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
         4923  +  esac
         4924  +  ac_save_IFS=$IFS
         4925  +  IFS=:
         4926  +  set x $ac_tag
         4927  +  IFS=$ac_save_IFS
         4928  +  shift
         4929  +  ac_file=$1
         4930  +  shift
         4931  +
         4932  +  case $ac_mode in
         4933  +  :L) ac_source=$1;;
         4934  +  :[FH])
         4935  +    ac_file_inputs=
         4936  +    for ac_f
         4937  +    do
         4938  +      case $ac_f in
         4939  +      -) ac_f="$tmp/stdin";;
         4940  +      *) # Look for the file first in the build tree, then in the source tree
         4941  +	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
         4942  +	 # because $ac_f cannot contain `:'.
         4943  +	 test -f "$ac_f" ||
         4944  +	   case $ac_f in
         4945  +	   [\\/$]*) false;;
         4946  +	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
         4947  +	   esac ||
         4948  +	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
         4949  +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
         4950  +   { (exit 1); exit 1; }; };;
         4951  +      esac
         4952  +      ac_file_inputs="$ac_file_inputs $ac_f"
         4953  +    done
         4954  +
         4955  +    # Let's still pretend it is `configure' which instantiates (i.e., don't
         4956  +    # use $as_me), people would be surprised to read:
         4957  +    #    /* config.h.  Generated by config.status.  */
         4958  +    configure_input="Generated from "`IFS=:
         4959  +	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
         4960  +    if test x"$ac_file" != x-; then
         4961  +      configure_input="$ac_file.  $configure_input"
         4962  +      { echo "$as_me:$LINENO: creating $ac_file" >&5
         4963  +echo "$as_me: creating $ac_file" >&6;}
         4964  +    fi
         4965  +
         4966  +    case $ac_tag in
         4967  +    *:-:* | *:-) cat >"$tmp/stdin";;
         4968  +    esac
         4969  +    ;;
         4970  +  esac
         4971  +
         4972  +  ac_dir=`$as_dirname -- "$ac_file" ||
         4973  +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         4974  +	 X"$ac_file" : 'X\(//\)[^/]' \| \
         4975  +	 X"$ac_file" : 'X\(//\)$' \| \
         4976  +	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
         4977  +echo X"$ac_file" |
         4978  +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
         4979  +	    s//\1/
         4980  +	    q
         4981  +	  }
         4982  +	  /^X\(\/\/\)[^/].*/{
         4983  +	    s//\1/
         4984  +	    q
         4985  +	  }
         4986  +	  /^X\(\/\/\)$/{
         4987  +	    s//\1/
         4988  +	    q
         4989  +	  }
         4990  +	  /^X\(\/\).*/{
         4991  +	    s//\1/
         4992  +	    q
         4993  +	  }
         4994  +	  s/.*/./; q'`
         4995  +  { as_dir="$ac_dir"
         4996  +  case $as_dir in #(
         4997  +  -*) as_dir=./$as_dir;;
         4998  +  esac
         4999  +  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
         5000  +    as_dirs=
         5001  +    while :; do
         5002  +      case $as_dir in #(
         5003  +      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
         5004  +      *) as_qdir=$as_dir;;
         5005  +      esac
         5006  +      as_dirs="'$as_qdir' $as_dirs"
         5007  +      as_dir=`$as_dirname -- "$as_dir" ||
         5008  +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
         5009  +	 X"$as_dir" : 'X\(//\)[^/]' \| \
         5010  +	 X"$as_dir" : 'X\(//\)$' \| \
         5011  +	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
         5012  +echo X"$as_dir" |
         5013  +    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
         5014  +	    s//\1/
         5015  +	    q
         5016  +	  }
         5017  +	  /^X\(\/\/\)[^/].*/{
         5018  +	    s//\1/
         5019  +	    q
         5020  +	  }
         5021  +	  /^X\(\/\/\)$/{
         5022  +	    s//\1/
         5023  +	    q
         5024  +	  }
         5025  +	  /^X\(\/\).*/{
         5026  +	    s//\1/
         5027  +	    q
         5028  +	  }
         5029  +	  s/.*/./; q'`
         5030  +      test -d "$as_dir" && break
         5031  +    done
         5032  +    test -z "$as_dirs" || eval "mkdir $as_dirs"
         5033  +  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
         5034  +echo "$as_me: error: cannot create directory $as_dir" >&2;}
         5035  +   { (exit 1); exit 1; }; }; }
         5036  +  ac_builddir=.
         5037  +
         5038  +case "$ac_dir" in
         5039  +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
         5040  +*)
         5041  +  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
         5042  +  # A ".." for each directory in $ac_dir_suffix.
         5043  +  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
         5044  +  case $ac_top_builddir_sub in
         5045  +  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
         5046  +  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
         5047  +  esac ;;
         5048  +esac
         5049  +ac_abs_top_builddir=$ac_pwd
         5050  +ac_abs_builddir=$ac_pwd$ac_dir_suffix
         5051  +# for backward compatibility:
         5052  +ac_top_builddir=$ac_top_build_prefix
         5053  +
         5054  +case $srcdir in
         5055  +  .)  # We are building in place.
         5056  +    ac_srcdir=.
         5057  +    ac_top_srcdir=$ac_top_builddir_sub
         5058  +    ac_abs_top_srcdir=$ac_pwd ;;
         5059  +  [\\/]* | ?:[\\/]* )  # Absolute name.
         5060  +    ac_srcdir=$srcdir$ac_dir_suffix;
         5061  +    ac_top_srcdir=$srcdir
         5062  +    ac_abs_top_srcdir=$srcdir ;;
         5063  +  *) # Relative name.
         5064  +    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
         5065  +    ac_top_srcdir=$ac_top_build_prefix$srcdir
         5066  +    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
         5067  +esac
         5068  +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
         5069  +
         5070  +
         5071  +  case $ac_mode in
         5072  +  :F)
         5073  +  #
         5074  +  # CONFIG_FILE
         5075  +  #
         5076  +
         5077  +_ACEOF
         5078  +
         5079  +cat >>$CONFIG_STATUS <<\_ACEOF
         5080  +# If the template does not know about datarootdir, expand it.
         5081  +# FIXME: This hack should be removed a few years after 2.60.
         5082  +ac_datarootdir_hack=; ac_datarootdir_seen=
         5083  +
         5084  +case `sed -n '/datarootdir/ {
         5085  +  p
         5086  +  q
         5087  +}
         5088  +/@datadir@/p
         5089  +/@docdir@/p
         5090  +/@infodir@/p
         5091  +/@localedir@/p
         5092  +/@mandir@/p
         5093  +' $ac_file_inputs` in
         5094  +*datarootdir*) ac_datarootdir_seen=yes;;
         5095  +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
         5096  +  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
         5097  +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
         5098  +_ACEOF
         5099  +cat >>$CONFIG_STATUS <<_ACEOF
         5100  +  ac_datarootdir_hack='
         5101  +  s&@datadir@&$datadir&g
         5102  +  s&@docdir@&$docdir&g
         5103  +  s&@infodir@&$infodir&g
         5104  +  s&@localedir@&$localedir&g
         5105  +  s&@mandir@&$mandir&g
         5106  +    s&\\\${datarootdir}&$datarootdir&g' ;;
         5107  +esac
         5108  +_ACEOF
         5109  +
         5110  +# Neutralize VPATH when `$srcdir' = `.'.
         5111  +# Shell code in configure.ac might set extrasub.
         5112  +# FIXME: do we really want to maintain this feature?
         5113  +cat >>$CONFIG_STATUS <<_ACEOF
         5114  +  sed "$ac_vpsub
         5115  +$extrasub
         5116  +_ACEOF
         5117  +cat >>$CONFIG_STATUS <<\_ACEOF
         5118  +:t
         5119  +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
         5120  +s&@configure_input@&$configure_input&;t t
         5121  +s&@top_builddir@&$ac_top_builddir_sub&;t t
         5122  +s&@srcdir@&$ac_srcdir&;t t
         5123  +s&@abs_srcdir@&$ac_abs_srcdir&;t t
         5124  +s&@top_srcdir@&$ac_top_srcdir&;t t
         5125  +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
         5126  +s&@builddir@&$ac_builddir&;t t
         5127  +s&@abs_builddir@&$ac_abs_builddir&;t t
         5128  +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
         5129  +$ac_datarootdir_hack
         5130  +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
         5131  +
         5132  +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
         5133  +  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
         5134  +  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
         5135  +  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
         5136  +which seems to be undefined.  Please make sure it is defined." >&5
         5137  +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
         5138  +which seems to be undefined.  Please make sure it is defined." >&2;}
         5139  +
         5140  +  rm -f "$tmp/stdin"
         5141  +  case $ac_file in
         5142  +  -) cat "$tmp/out"; rm -f "$tmp/out";;
         5143  +  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
         5144  +  esac
         5145  + ;;
         5146  +  :H)
         5147  +  #
         5148  +  # CONFIG_HEADER
         5149  +  #
         5150  +_ACEOF
         5151  +
         5152  +# Transform confdefs.h into a sed script `conftest.defines', that
         5153  +# substitutes the proper values into config.h.in to produce config.h.
         5154  +rm -f conftest.defines conftest.tail
         5155  +# First, append a space to every undef/define line, to ease matching.
         5156  +echo 's/$/ /' >conftest.defines
         5157  +# Then, protect against being on the right side of a sed subst, or in
         5158  +# an unquoted here document, in config.status.  If some macros were
         5159  +# called several times there might be several #defines for the same
         5160  +# symbol, which is useless.  But do not sort them, since the last
         5161  +# AC_DEFINE must be honored.
         5162  +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
         5163  +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
         5164  +# NAME is the cpp macro being defined, VALUE is the value it is being given.
         5165  +# PARAMS is the parameter list in the macro definition--in most cases, it's
         5166  +# just an empty string.
         5167  +ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
         5168  +ac_dB='\\)[	 (].*,\\1define\\2'
         5169  +ac_dC=' '
         5170  +ac_dD=' ,'
         5171  +
         5172  +uniq confdefs.h |
         5173  +  sed -n '
         5174  +	t rset
         5175  +	:rset
         5176  +	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
         5177  +	t ok
         5178  +	d
         5179  +	:ok
         5180  +	s/[\\&,]/\\&/g
         5181  +	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
         5182  +	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
         5183  +  ' >>conftest.defines
         5184  +
         5185  +# Remove the space that was appended to ease matching.
         5186  +# Then replace #undef with comments.  This is necessary, for
         5187  +# example, in the case of _POSIX_SOURCE, which is predefined and required
         5188  +# on some systems where configure will not decide to define it.
         5189  +# (The regexp can be short, since the line contains either #define or #undef.)
         5190  +echo 's/ $//
         5191  +s,^[	 #]*u.*,/* & */,' >>conftest.defines
         5192  +
         5193  +# Break up conftest.defines:
         5194  +ac_max_sed_lines=50
         5195  +
         5196  +# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
         5197  +# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
         5198  +# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
         5199  +# et cetera.
         5200  +ac_in='$ac_file_inputs'
         5201  +ac_out='"$tmp/out1"'
         5202  +ac_nxt='"$tmp/out2"'
         5203  +
         5204  +while :
         5205  +do
         5206  +  # Write a here document:
         5207  +    cat >>$CONFIG_STATUS <<_ACEOF
         5208  +    # First, check the format of the line:
         5209  +    cat >"\$tmp/defines.sed" <<\\CEOF
         5210  +/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
         5211  +/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
         5212  +b
         5213  +:def
         5214  +_ACEOF
         5215  +  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
         5216  +  echo 'CEOF
         5217  +    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
         5218  +  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
         5219  +  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
         5220  +  grep . conftest.tail >/dev/null || break
         5221  +  rm -f conftest.defines
         5222  +  mv conftest.tail conftest.defines
         5223  +done
         5224  +rm -f conftest.defines conftest.tail
         5225  +
         5226  +echo "ac_result=$ac_in" >>$CONFIG_STATUS
         5227  +cat >>$CONFIG_STATUS <<\_ACEOF
         5228  +  if test x"$ac_file" != x-; then
         5229  +    echo "/* $configure_input  */" >"$tmp/config.h"
         5230  +    cat "$ac_result" >>"$tmp/config.h"
         5231  +    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
         5232  +      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
         5233  +echo "$as_me: $ac_file is unchanged" >&6;}
         5234  +    else
         5235  +      rm -f $ac_file
         5236  +      mv "$tmp/config.h" $ac_file
         5237  +    fi
         5238  +  else
         5239  +    echo "/* $configure_input  */"
         5240  +    cat "$ac_result"
         5241  +  fi
         5242  +  rm -f "$tmp/out12"
         5243  + ;;
         5244  +
         5245  +
         5246  +  esac
         5247  +
         5248  +done # for ac_tag
         5249  +
         5250  +
         5251  +{ (exit 0); exit 0; }
         5252  +_ACEOF
         5253  +chmod +x $CONFIG_STATUS
         5254  +ac_clean_files=$ac_clean_files_save
         5255  +
         5256  +
         5257  +# configure is writing to config.log, and then calls config.status.
         5258  +# config.status does its own redirection, appending to config.log.
         5259  +# Unfortunately, on DOS this fails, as config.log is still kept open
         5260  +# by configure, so config.status won't be able to write to it; its
         5261  +# output is simply discarded.  So we exec the FD to /dev/null,
         5262  +# effectively closing config.log, so it can be properly (re)opened and
         5263  +# appended to by config.status.  When coming back to configure, we
         5264  +# need to make the FD available again.
         5265  +if test "$no_create" != yes; then
         5266  +  ac_cs_success=:
         5267  +  ac_config_status_args=
         5268  +  test "$silent" = yes &&
         5269  +    ac_config_status_args="$ac_config_status_args --quiet"
         5270  +  exec 5>/dev/null
         5271  +  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
         5272  +  exec 5>>config.log
         5273  +  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
         5274  +  # would make configure fail if this is the last instruction.
         5275  +  $ac_cs_success || { (exit 1); exit 1; }
         5276  +fi
         5277  +

Added configure.ac.

            1  +dnl Process this file with autoconf to produce a configure script.
            2  +AC_PREREQ(2.61)
            3  +AC_INIT([fossil], [20110528], [joerg@NetBSD.org])
            4  +AC_CONFIG_SRCDIR([src/schema.c])
            5  +AC_CONFIG_AUX_DIR([autoconf])
            6  +AC_CONFIG_MACRO_DIR([autoconf])
            7  +AC_CONFIG_HEADER(autoconfig.h)
            8  +
            9  +AC_CANONICAL_HOST
           10  +
           11  +# Checks for programs.
           12  +AC_PROG_MAKE_SET
           13  +AC_PROG_CC
           14  +
           15  +case $host_os in
           16  +dragonfly|freebsd|netbsd|openbsd)	AC_DEFINE([USE_PREAD], [1], [Use pread/pwrite system calls in place of seek + read/write])
           17  +esac
           18  +
           19  +AC_CHECK_LIB(z, inflateEnd, [zlib_cv_libz=yes], [zlib_cv_libz=no])
           20  +AC_CHECK_HEADER(zlib.h, [zlib_cv_zlib_h=yes], [zlib_cv_zlib_h=no])
           21  +
           22  +if test "$zlib_cv_libz" != yes || test "$zlib_cv_zlib_h" != yes; then
           23  +        AC_MSG_ERROR(zlib not found, please install it or add the necessary flags to CPPFLAGS / LDFLAGS)
           24  +fi
           25  +LIBS="$LIBS -lz"
           26  +
           27  +enable_openssl=check
           28  +AC_ARG_ENABLE([openssl], [AS_HELP_STRING([--enable-openssl], [Include HTTPS support using for OpenSSL])], [enable_openssl=yes], [enable_openssl=no])
           29  +if test "$enable_openssl" != no; then
           30  +	AX_CHECK_OPENSSL([AC_DEFINE([FOSSIL_ENABLE_SSL], [1], [Support HTTPS])],
           31  +	    [ if test "$enable_openssl" = yes; then
           32  +	        AC_MSG_RESULT(failed)
           33  +                AC_MSG_ERROR(HTTPS support requested, but OpenSSL not found)
           34  +              fi
           35  +	    ]
           36  +	)
           37  +fi
           38  +
           39  +# Network functions on Solaris
           40  +AC_SEARCH_LIBS([gethostbyname], [nsl network])
           41  +AC_SEARCH_LIBS([socket],
           42  +               [socket],
           43  +               [],
           44  +               [AC_CHECK_LIB([socket],
           45  +                             [socket],
           46  +                             [LIBS="-lsocket -lnsl $LIBS"],
           47  +                             [],
           48  +                             [-lnsl])])
           49  +
           50  +
           51  +# Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
           52  +AC_CHECK_FUNCS(getpassphrase)
           53  +
           54  +AC_CONFIG_FILES([Makefile])
           55  +AC_OUTPUT

Changes to src/config.h.

    22     22   ** some linux distributions, and possibly other unixes as well.
    23     23   */
    24     24   #define _LARGE_FILE       1
    25     25   #ifndef _FILE_OFFSET_BITS
    26     26   #  define _FILE_OFFSET_BITS 64
    27     27   #endif
    28     28   #define _LARGEFILE_SOURCE 1
           29  +
           30  +#ifdef HAVE_AUTOCONFIG_H
           31  +#include "autoconfig.h"
           32  +#endif
    29     33   
    30     34   #ifndef _RC_COMPILE_
    31     35   
    32     36   /*
    33     37   ** System header files used by all modules
    34     38   */
    35     39   #include <unistd.h>
................................................................................
    83     87   #ifndef _RC_COMPILE_
    84     88   
    85     89   #include "sqlite3.h"
    86     90   
    87     91   /*
    88     92   ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257.
    89     93   */
    90         -#if defined(__sun__) || defined(sun)
           94  +#if HAVE_GETPASSPHRASE
    91     95     #define getpass getpassphrase
    92     96   #endif
    93     97   
    94     98   /*
    95     99   ** Typedef for a 64-bit integer
    96    100   */
    97    101   typedef sqlite3_int64 i64;