Changes in / [2b1118c:619c6bf] in mod_gnutls


Ignore:
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r2b1118c r619c6bf  
    244244localedir = @localedir@
    245245localstatedir = @localstatedir@
     246lt_ECHO = @lt_ECHO@
    246247mandir = @mandir@
    247248mkdir_p = @mkdir_p@
  • NEWS

    r2b1118c r619c6bf  
    1 ** Version 0.6.0
    2 - GnuTLSCache none is now an allowed option.
    3 
    41** Version 0.5.9 (2010-09-24)
    52- Corrected behavior in Keep-Alive connections (do not
  • aclocal.m4

    r2b1118c r619c6bf  
    1414m4_ifndef([AC_AUTOCONF_VERSION],
    1515  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
    16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
    17 [m4_warning([this file was generated for autoconf 2.66.
     16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
     17[m4_warning([this file was generated for autoconf 2.65.
    1818You have another version of autoconf.  It may work, but is not guaranteed to.
    1919If you have problems, you may need to regenerate the build system entirely.
  • config/config.guess

    r2b1118c r619c6bf  
    55#   Free Software Foundation, Inc.
    66
    7 timestamp='2009-11-20'
     7timestamp='2009-06-10'
    88
    99# This file is free software; you can redistribute it and/or modify it
     
    2828
    2929
    30 # Originally written by Per Bothner.  Please send patches (context
    31 # diff format) to <config-patches@gnu.org> and include a ChangeLog
    32 # entry.
     30# Originally written by Per Bothner <per@bothner.com>.
     31# Please send patches to <config-patches@gnu.org>.  Submit a context
     32# diff and a properly formatted ChangeLog entry.
    3333#
    3434# This script attempts to guess a canonical system name similar to
     
    3636# exits with 0.  Otherwise, it exits with 1.
    3737#
    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
     38# The plan is that this can be called by configure scripts if you
     39# don't specify an explicit build system type.
    4040
    4141me=`echo "$0" | sed -e 's,.*/,,'`
     
    334334        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    335335        exit ;;
    336     i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
    337         echo i386-pc-auroraux${UNAME_RELEASE}
    338         exit ;;
    339336    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    340337        eval $set_cc_for_build
     
    811808        echo ${UNAME_MACHINE}-pc-pw32
    812809        exit ;;
    813     *:Interix*:*)
     810    *:Interix*:[3456]*)
    814811        case ${UNAME_MACHINE} in
    815812            x86)
    816813                echo i586-pc-interix${UNAME_RELEASE}
    817814                exit ;;
    818             authenticamd | genuineintel | EM64T)
     815            EM64T | authenticamd | genuineintel)
    819816                echo x86_64-unknown-interix${UNAME_RELEASE}
    820817                exit ;;
     
    858855        echo ${UNAME_MACHINE}-pc-minix
    859856        exit ;;
    860     alpha:Linux:*:*)
    861         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
    862           EV5)   UNAME_MACHINE=alphaev5 ;;
    863           EV56)  UNAME_MACHINE=alphaev56 ;;
    864           PCA56) UNAME_MACHINE=alphapca56 ;;
    865           PCA57) UNAME_MACHINE=alphapca56 ;;
    866           EV6)   UNAME_MACHINE=alphaev6 ;;
    867           EV67)  UNAME_MACHINE=alphaev67 ;;
    868           EV68*) UNAME_MACHINE=alphaev68 ;;
    869         esac
    870         objdump --private-headers /bin/sh | grep -q ld.so.1
    871         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    872         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    873         exit ;;
    874857    arm*:Linux:*:*)
    875858        eval $set_cc_for_build
     
    893876    frv:Linux:*:*)
    894877        echo frv-unknown-linux-gnu
    895         exit ;;
    896     i*86:Linux:*:*)
    897         LIBC=gnu
    898         eval $set_cc_for_build
    899         sed 's/^        //' << EOF >$dummy.c
    900         #ifdef __dietlibc__
    901         LIBC=dietlibc
    902         #endif
    903 EOF
    904         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
    905         echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
    906878        exit ;;
    907879    ia64:Linux:*:*)
     
    930902        #endif
    931903EOF
    932         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
     904        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     905            /^CPU/{
     906                s: ::g
     907                p
     908            }'`"
    933909        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    934910        ;;
     
    936912        echo or32-unknown-linux-gnu
    937913        exit ;;
     914    ppc:Linux:*:*)
     915        echo powerpc-unknown-linux-gnu
     916        exit ;;
     917    ppc64:Linux:*:*)
     918        echo powerpc64-unknown-linux-gnu
     919        exit ;;
     920    alpha:Linux:*:*)
     921        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     922          EV5)   UNAME_MACHINE=alphaev5 ;;
     923          EV56)  UNAME_MACHINE=alphaev56 ;;
     924          PCA56) UNAME_MACHINE=alphapca56 ;;
     925          PCA57) UNAME_MACHINE=alphapca56 ;;
     926          EV6)   UNAME_MACHINE=alphaev6 ;;
     927          EV67)  UNAME_MACHINE=alphaev67 ;;
     928          EV68*) UNAME_MACHINE=alphaev68 ;;
     929        esac
     930        objdump --private-headers /bin/sh | grep -q ld.so.1
     931        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     932        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     933        exit ;;
    938934    padre:Linux:*:*)
    939935        echo sparc-unknown-linux-gnu
    940         exit ;;
    941     parisc64:Linux:*:* | hppa64:Linux:*:*)
    942         echo hppa64-unknown-linux-gnu
    943936        exit ;;
    944937    parisc:Linux:*:* | hppa:Linux:*:*)
     
    950943        esac
    951944        exit ;;
    952     ppc64:Linux:*:*)
    953         echo powerpc64-unknown-linux-gnu
    954         exit ;;
    955     ppc:Linux:*:*)
    956         echo powerpc-unknown-linux-gnu
     945    parisc64:Linux:*:* | hppa64:Linux:*:*)
     946        echo hppa64-unknown-linux-gnu
    957947        exit ;;
    958948    s390:Linux:*:* | s390x:Linux:*:*)
     
    977967        echo ${UNAME_MACHINE}-unknown-linux-gnu
    978968        exit ;;
     969    i*86:Linux:*:*)
     970        # The BFD linker knows what the default object file format is, so
     971        # first see if it will tell us. cd to the root directory to prevent
     972        # problems with other programs or directories called `ld' in the path.
     973        # Set LC_ALL=C to ensure ld outputs messages in English.
     974        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
     975                         | sed -ne '/supported targets:/!d
     976                                    s/[         ][      ]*/ /g
     977                                    s/.*supported targets: *//
     978                                    s/ .*//
     979                                    p'`
     980        case "$ld_supported_targets" in
     981          elf32-i386)
     982                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
     983                ;;
     984        esac
     985        # Determine whether the default compiler is a.out or elf
     986        eval $set_cc_for_build
     987        sed 's/^        //' << EOF >$dummy.c
     988        #include <features.h>
     989        #ifdef __ELF__
     990        # ifdef __GLIBC__
     991        #  if __GLIBC__ >= 2
     992        LIBC=gnu
     993        #  else
     994        LIBC=gnulibc1
     995        #  endif
     996        # else
     997        LIBC=gnulibc1
     998        # endif
     999        #else
     1000        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
     1001        LIBC=gnu
     1002        #else
     1003        LIBC=gnuaout
     1004        #endif
     1005        #endif
     1006        #ifdef __dietlibc__
     1007        LIBC=dietlibc
     1008        #endif
     1009EOF
     1010        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     1011            /^LIBC/{
     1012                s: ::g
     1013                p
     1014            }'`"
     1015        test x"${LIBC}" != x && {
     1016                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     1017                exit
     1018        }
     1019        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
     1020        ;;
    9791021    i*86:DYNIX/ptx:4*:*)
    9801022        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
     
    12061248        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    12071249        case $UNAME_PROCESSOR in
    1208             i386)
    1209                 eval $set_cc_for_build
    1210                 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
    1211                   if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
    1212                       (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
    1213                       grep IS_64BIT_ARCH >/dev/null
    1214                   then
    1215                       UNAME_PROCESSOR="x86_64"
    1216                   fi
    1217                 fi ;;
    12181250            unknown) UNAME_PROCESSOR=powerpc ;;
    12191251        esac
  • config/config.sub

    r2b1118c r619c6bf  
    55#   Free Software Foundation, Inc.
    66
    7 timestamp='2009-11-20'
     7timestamp='2009-06-11'
    88
    99# This file is (in principle) common to ALL GNU software.
     
    3333
    3434# Please send patches to <config-patches@gnu.org>.  Submit a context
    35 # diff and a properly formatted GNU ChangeLog entry.
     35# diff and a properly formatted ChangeLog entry.
    3636#
    3737# Configuration subroutine to validate and canonicalize a configuration type.
     
    3939# If it is invalid, we print an error message on stderr and exit with code 1.
    4040# 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
    4441
    4542# This file is supposed to be the same for all GNU packages
     
    153150        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    154151        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    155         -apple | -axis | -knuth | -cray | -microblaze)
     152        -apple | -axis | -knuth | -cray)
    156153                os=
    157154                basic_machine=$1
     
    288285        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    289286        | pyramid \
    290         | rx \
    291287        | score \
    292288        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
     
    296292        | spu | strongarm \
    297293        | tahoe | thumb | tic4x | tic80 | tron \
    298         | ubicom32 \
    299294        | v850 | v850e \
    300295        | we32k \
     
    303298                basic_machine=$basic_machine-unknown
    304299                ;;
    305         m6811 | m68hc11 | m6812 | m68hc12 | picochip)
     300        m6811 | m68hc11 | m6812 | m68hc12)
    306301                # Motorola 68HC11/12.
    307302                basic_machine=$basic_machine-unknown
     
    346341        | m32c-* | m32r-* | m32rle-* \
    347342        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    348         | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
     343        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
    349344        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    350345        | mips16-* \
     
    374369        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    375370        | pyramid-* \
    376         | romp-* | rs6000-* | rx-* \
     371        | romp-* | rs6000-* \
    377372        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
    378373        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
     
    383378        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
    384379        | tron-* \
    385         | ubicom32-* \
    386380        | v850-* | v850e-* | vax-* \
    387381        | we32k-* \
     
    732726                basic_machine=ns32k-utek
    733727                os=-sysv
    734                 ;;
    735         microblaze)
    736                 basic_machine=microblaze-xilinx
    737728                ;;
    738729        mingw32)
     
    12571248        # that might get confused with valid system types.
    12581249        # -solaris* is a basic system type, with this one exception.
    1259         -auroraux)
    1260                 os=-auroraux
    1261                 ;;
    12621250        -solaris1 | -solaris1.*)
    12631251                os=`echo $os | sed -e 's|solaris1|sunos4|'`
     
    12811269        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
    12821270              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
    1283               | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
    1284               | -sym* | -kopensolaris* \
     1271              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
     1272              | -kopensolaris* \
    12851273              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
    12861274              | -aos* | -aros* \
     
    13031291              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    13041292              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
    1305               | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
     1293              | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
    13061294        # Remember, each alternative MUST END IN *, to match a version number.
    13071295                ;;
  • config/ltmain.sh

    r2b1118c r619c6bf  
    11# Generated from ltmain.m4sh.
    22
    3 # libtool (GNU libtool) 2.2.10
     3# ltmain.sh (GNU libtool) 2.2.6b
    44# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    55
    6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
    7 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
     6# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
    87# This is free software; see the source for copying conditions.  There is NO
    98# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
     
    3433# Provide generalized library-building support services.
    3534#
    36 #       --config             show all configuration variables
    37 #       --debug              enable verbose shell tracing
    38 #   -n, --dry-run            display commands without modifying any files
    39 #       --features           display basic configuration information and exit
    40 #       --mode=MODE          use operation mode MODE
    41 #       --preserve-dup-deps  don't remove duplicate dependency libraries
    42 #       --quiet, --silent    don't print informational messages
    43 #       --no-quiet, --no-silent
    44 #                            print informational messages (default)
    45 #       --tag=TAG            use configuration variables from tag TAG
    46 #   -v, --verbose            print more informational messages than default
    47 #       --no-verbose         don't print the extra informational messages
    48 #       --version            print version information
    49 #   -h, --help, --help-all   print short, long, or detailed help message
     35#     --config             show all configuration variables
     36#     --debug              enable verbose shell tracing
     37# -n, --dry-run            display commands without modifying any files
     38#     --features           display basic configuration information and exit
     39#     --mode=MODE          use operation mode MODE
     40#     --preserve-dup-deps  don't remove duplicate dependency libraries
     41#     --quiet, --silent    don't print informational messages
     42#     --tag=TAG            use configuration variables from tag TAG
     43# -v, --verbose            print informational messages (default)
     44#     --version            print version information
     45# -h, --help               print short or long help message
    5046#
    5147# MODE must be one of the following:
    5248#
    53 #         clean              remove files from the build directory
    54 #         compile            compile a source file into a libtool object
    55 #         execute            automatically set library path, then run a program
    56 #         finish             complete the installation of libtool libraries
    57 #         install            install libraries or executables
    58 #         link               create a library or an executable
    59 #         uninstall          remove libraries from an installed directory
     49#       clean              remove files from the build directory
     50#       compile            compile a source file into a libtool object
     51#       execute            automatically set library path, then run a program
     52#       finish             complete the installation of libtool libraries
     53#       install            install libraries or executables
     54#       link               create a library or an executable
     55#       uninstall          remove libraries from an installed directory
    6056#
    61 # MODE-ARGS vary depending on the MODE.  When passed as first option,
    62 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
     57# MODE-ARGS vary depending on the MODE.
    6358# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
    6459#
     
    6661# include the following information:
    6762#
    68 #         host-triplet: $host
    69 #         shell:                $SHELL
    70 #         compiler:             $LTCC
    71 #         compiler flags:               $LTCFLAGS
    72 #         linker:               $LD (gnu? $with_gnu_ld)
    73 #         $progname:    (GNU libtool) 2.2.10
    74 #         automake:     $automake_version
    75 #         autoconf:     $autoconf_version
     63#       host-triplet:   $host
     64#       shell:          $SHELL
     65#       compiler:               $LTCC
     66#       compiler flags:         $LTCFLAGS
     67#       linker:         $LD (gnu? $with_gnu_ld)
     68#       $progname:              (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
     69#       automake:               $automake_version
     70#       autoconf:               $autoconf_version
    7671#
    7772# Report bugs to <bug-libtool@gnu.org>.
    7873
    79 PROGRAM=libtool
     74PROGRAM=ltmain.sh
    8075PACKAGE=libtool
    81 VERSION=2.2.10
     76VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
    8277TIMESTAMP=""
    83 package_revision=1.3175
     78package_revision=1.3017
    8479
    8580# Be Bourne compatible
     
    9792DUALCASE=1; export DUALCASE # for MKS sh
    9893
    99 # A function that is used when there is no print builtin or printf.
    100 func_fallback_echo ()
    101 {
    102   eval 'cat <<_LTECHO_EOF
    103 $1
    104 _LTECHO_EOF'
    105 }
    106 
    10794# NLS nuisances: We save the old values to restore during execute mode.
     95# Only set LANG and LC_ALL to C if already set.
     96# These must not be set unconditionally because not all systems understand
     97# e.g. LANG=C (notably SCO).
    10898lt_user_locale=
    10999lt_safe_locale=
     
    118108        fi"
    119109done
    120 LC_ALL=C
    121 LANGUAGE=C
    122 export LANGUAGE LC_ALL
    123110
    124111$lt_unset CDPATH
    125112
    126113
    127 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
    128 # is ksh but when the shell is invoked as "sh" and the current value of
    129 # the _XPG environment variable is not equal to 1 (one), the special
    130 # positional parameter $0, within a function call, is the name of the
    131 # function.
    132 progpath="$0"
    133114
    134115
    135116
    136117: ${CP="cp -f"}
    137 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
     118: ${ECHO="echo"}
    138119: ${EGREP="/bin/grep -E"}
    139120: ${FGREP="/bin/grep -F"}
     
    179160{
    180161  # Extract subdirectory from the argument.
    181   func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
     162  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
    182163  if test "X$func_dirname_result" = "X${1}"; then
    183164    func_dirname_result="${3}"
     
    185166    func_dirname_result="$func_dirname_result${2}"
    186167  fi
    187   func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
     168  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
    188169}
    189170
    190171# Generated shell functions inserted here.
    191172
    192 # These SED scripts presuppose an absolute path with a trailing slash.
    193 pathcar='s,^/\([^/]*\).*$,\1,'
    194 pathcdr='s,^/[^/]*,,'
    195 removedotparts=':dotsl
    196                 s@/\./@/@g
    197                 t dotsl
    198                 s,/\.$,/,'
    199 collapseslashes='s@/\{1,\}@/@g'
    200 finalslash='s,/*$,/,'
    201 
    202 # func_normal_abspath PATH
    203 # Remove doubled-up and trailing slashes, "." path components,
    204 # and cancel out any ".." path components in PATH after making
    205 # it an absolute path.
    206 #             value returned in "$func_normal_abspath_result"
    207 func_normal_abspath ()
    208 {
    209   # Start from root dir and reassemble the path.
    210   func_normal_abspath_result=
    211   func_normal_abspath_tpath=$1
    212   func_normal_abspath_altnamespace=
    213   case $func_normal_abspath_tpath in
    214     "")
    215       # Empty path, that just means $cwd.
    216       func_stripname '' '/' "`pwd`"
    217       func_normal_abspath_result=$func_stripname_result
    218       return
    219     ;;
    220     # The next three entries are used to spot a run of precisely
    221     # two leading slashes without using negated character classes;
    222     # we take advantage of case's first-match behaviour.
    223     ///*)
    224       # Unusual form of absolute path, do nothing.
    225     ;;
    226     //*)
    227       # Not necessarily an ordinary path; POSIX reserves leading '//'
    228       # and for example Cygwin uses it to access remote file shares
    229       # over CIFS/SMB, so we conserve a leading double slash if found.
    230       func_normal_abspath_altnamespace=/
    231     ;;
    232     /*)
    233       # Absolute path, do nothing.
    234     ;;
    235     *)
    236       # Relative path, prepend $cwd.
    237       func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
    238     ;;
    239   esac
    240   # Cancel out all the simple stuff to save iterations.  We also want
    241   # the path to end with a slash for ease of parsing, so make sure
    242   # there is one (and only one) here.
    243   func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
    244         -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
    245   while :; do
    246     # Processed it all yet?
    247     if test "$func_normal_abspath_tpath" = / ; then
    248       # If we ascended to the root using ".." the result may be empty now.
    249       if test -z "$func_normal_abspath_result" ; then
    250         func_normal_abspath_result=/
    251       fi
    252       break
    253     fi
    254     func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
    255         -e "$pathcar"`
    256     func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
    257         -e "$pathcdr"`
    258     # Figure out what to do with it
    259     case $func_normal_abspath_tcomponent in
    260       "")
    261         # Trailing empty path component, ignore it.
    262       ;;
    263       ..)
    264         # Parent dir; strip last assembled component from result.
    265         func_dirname "$func_normal_abspath_result"
    266         func_normal_abspath_result=$func_dirname_result
    267       ;;
    268       *)
    269         # Actual path component, append it.
    270         func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
    271       ;;
    272     esac
    273   done
    274   # Restore leading double-slash if one was found on entry.
    275   func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
    276 }
    277 
    278 # func_relative_path SRCDIR DSTDIR
    279 # generates a relative path from SRCDIR to DSTDIR, with a trailing
    280 # slash if non-empty, suitable for immediately appending a filename
    281 # without needing to append a separator.
    282 #             value returned in "$func_relative_path_result"
    283 func_relative_path ()
    284 {
    285   func_relative_path_result=
    286   func_normal_abspath "$1"
    287   func_relative_path_tlibdir=$func_normal_abspath_result
    288   func_normal_abspath "$2"
    289   func_relative_path_tbindir=$func_normal_abspath_result
    290 
    291   # Ascend the tree starting from libdir
    292   while :; do
    293     # check if we have found a prefix of bindir
    294     case $func_relative_path_tbindir in
    295       $func_relative_path_tlibdir)
    296         # found an exact match
    297         func_relative_path_tcancelled=
    298         break
    299         ;;
    300       $func_relative_path_tlibdir*)
    301         # found a matching prefix
    302         func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
    303         func_relative_path_tcancelled=$func_stripname_result
    304         if test -z "$func_relative_path_result"; then
    305           func_relative_path_result=.
    306         fi
    307         break
    308         ;;
    309       *)
    310         func_dirname $func_relative_path_tlibdir
    311         func_relative_path_tlibdir=${func_dirname_result}
    312         if test "x$func_relative_path_tlibdir" = x ; then
    313           # Have to descend all the way to the root!
    314           func_relative_path_result=../$func_relative_path_result
    315           func_relative_path_tcancelled=$func_relative_path_tbindir
    316           break
    317         fi
    318         func_relative_path_result=../$func_relative_path_result
    319         ;;
    320     esac
    321   done
    322 
    323   # Now calculate path; take care to avoid doubling-up slashes.
    324   func_stripname '' '/' "$func_relative_path_result"
    325   func_relative_path_result=$func_stripname_result
    326   func_stripname '/' '/' "$func_relative_path_tcancelled"
    327   if test "x$func_stripname_result" != x ; then
    328     func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
    329   fi
    330 
    331   # Normalisation. If bindir is libdir, return empty string,
    332   # else relative path ending with a slash; either way, target
    333   # file name can be directly appended.
    334   if test ! -z "$func_relative_path_result"; then
    335     func_stripname './' '' "$func_relative_path_result/"
    336     func_relative_path_result=$func_stripname_result
    337   fi
    338 }
     173# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
     174# is ksh but when the shell is invoked as "sh" and the current value of
     175# the _XPG environment variable is not equal to 1 (one), the special
     176# positional parameter $0, within a function call, is the name of the
     177# function.
     178progpath="$0"
    339179
    340180# The name of this program:
     181# In the unlikely event $progname began with a '-', it would play havoc with
     182# func_echo (imagine progname=-n), so we prepend ./ in that case:
    341183func_dirname_and_basename "$progpath"
    342184progname=$func_basename_result
     185case $progname in
     186  -*) progname=./$progname ;;
     187esac
    343188
    344189# Make sure we have an absolute path for reexecution:
     
    414259}
    415260
    416 # func_echo_all arg...
    417 # Invoke $ECHO with all args, space-separated.
    418 func_echo_all ()
    419 {
    420     $ECHO "$*"
    421 }
    422 
    423261# func_error arg...
    424262# Echo program name prefixed message to standard error.
     
    489327
    490328        # ...otherwise throw away the child directory and loop
    491         my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
     329        my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
    492330      done
    493       my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
     331      my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
    494332
    495333      save_mkdir_p_IFS="$IFS"; IFS=':'
     
    541379    fi
    542380
    543     $ECHO "$my_tmpdir"
     381    $ECHO "X$my_tmpdir" | $Xsed
    544382}
    545383
     
    555393    case $1 in
    556394      *[\\\`\"\$]*)
    557         func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
     395        func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
    558396      *)
    559397        func_quote_for_eval_unquoted_result="$1" ;;
     
    582420    case $1 in
    583421      *[\\\`\"]*)
    584         my_arg=`$ECHO "$1" | $SED \
     422        my_arg=`$ECHO "X$1" | $Xsed \
    585423            -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
    586424      *)
     
    652490
    653491
     492
     493
     494
    654495# func_version
    655496# Echo version message to standard output and exit.
    656497func_version ()
    657498{
    658     $SED -n '/(C)/!b go
    659         :more
    660         /\./!{
    661           N
    662           s/\n# / /
    663           b more
    664         }
    665         :go
    666         /^# '$PROGRAM' (GNU /,/# warranty; / {
     499    $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
    667500        s/^# //
    668501        s/^# *$//
     
    677510func_usage ()
    678511{
    679     $SED -n '/^# Usage:/,/^#  *.*--help/ {
     512    $SED -n '/^# Usage:/,/# -h/ {
    680513        s/^# //
    681514        s/^# *$//
     
    683516        p
    684517    }' < "$progpath"
    685     echo
     518    $ECHO
    686519    $ECHO "run \`$progname --help | more' for full usage"
    687520    exit $?
    688521}
    689522
    690 # func_help [NOEXIT]
    691 # Echo long help message to standard output and exit,
    692 # unless 'noexit' is passed as argument.
     523# func_help
     524# Echo long help message to standard output and exit.
    693525func_help ()
    694526{
     
    707539        p
    708540     }' < "$progpath"
    709     ret=$?
    710     if test -z "$1"; then
    711       exit $ret
    712     fi
     541    exit $?
    713542}
    714543
     
    718547func_missing_arg ()
    719548{
    720     func_error "missing argument for $1."
     549    func_error "missing argument for $1"
    721550    exit_cmd=exit
    722551}
     
    728557
    729558
     559# Check that we have a working $ECHO.
     560if test "X$1" = X--no-reexec; then
     561  # Discard the --no-reexec flag, and continue.
     562  shift
     563elif test "X$1" = X--fallback-echo; then
     564  # Avoid inline document here, it may be left over
     565  :
     566elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
     567  # Yippee, $ECHO works!
     568  :
     569else
     570  # Restart under the correct shell, and then maybe $ECHO will work.
     571  exec $SHELL "$progpath" --no-reexec ${1+"$@"}
     572fi
     573
     574if test "X$1" = X--fallback-echo; then
     575  # used as fallback echo
     576  shift
     577  cat <<EOF
     578$*
     579EOF
     580  exit $EXIT_SUCCESS
     581fi
    730582
    731583magic="%%%MAGIC variable%%%"
     
    785637func_features ()
    786638{
    787     echo "host: $host"
     639    $ECHO "host: $host"
    788640    if test "$build_libtool_libs" = yes; then
    789       echo "enable shared libraries"
     641      $ECHO "enable shared libraries"
    790642    else
    791       echo "disable shared libraries"
     643      $ECHO "disable shared libraries"
    792644    fi
    793645    if test "$build_old_libs" = yes; then
    794       echo "enable static libraries"
     646      $ECHO "enable static libraries"
    795647    else
    796       echo "disable static libraries"
     648      $ECHO "disable static libraries"
    797649    fi
    798650
     
    921773      --quiet|--silent) preserve_args="$preserve_args $opt"
    922774                        opt_silent=:
    923                         opt_verbose=false
    924                         ;;
    925 
    926       --no-quiet|--no-silent)
    927                         preserve_args="$preserve_args $opt"
    928                         opt_silent=false
    929775                        ;;
    930776
    931777      --verbose| -v)    preserve_args="$preserve_args $opt"
    932778                        opt_silent=false
    933                         opt_verbose=:
    934                         ;;
    935 
    936       --no-verbose)     preserve_args="$preserve_args $opt"
    937                         opt_verbose=false
    938779                        ;;
    939780
     
    953794      -\?|-h)           func_usage                                      ;;
    954795      --help)           opt_help=:                                      ;;
    955       --help-all)       opt_help=': help-all'                           ;;
    956796      --version)        func_version                                    ;;
    957797
     
    11771017        CC_quoted="$CC_quoted $func_quote_for_eval_result"
    11781018      done
    1179       CC_expanded=`func_echo_all $CC`
    1180       CC_quoted_expanded=`func_echo_all $CC_quoted`
    11811019      case $@ in
    11821020      # Blanks in the command may have been stripped by the calling shell,
    11831021      # but not from the CC environment variable when configure was run.
    1184       " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
    1185       " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
     1022      " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
    11861023      # Blanks at the start of $base_compile will cause this to fail
    11871024      # if we don't check for them as well.
     
    11971034              CC_quoted="$CC_quoted $func_quote_for_eval_result"
    11981035            done
    1199             CC_expanded=`func_echo_all $CC`
    1200             CC_quoted_expanded=`func_echo_all $CC_quoted`
    12011036            case "$@ " in
    1202             " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
    1203             " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
     1037              " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
    12041038              # The compiler in the base compile command matches
    12051039              # the one in the tagged configuration.
     
    13801214    *.ada | *.adb | *.ads | *.asm | \
    13811215    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
    1382     *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
     1216    *.[fF][09]? | *.for | *.java | *.obj | *.sx)
    13831217      func_xform "$libobj"
    13841218      libobj=$func_xform_result
     
    14551289    # not support -o with -c
    14561290    if test "$compiler_c_o" = no; then
    1457       output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
     1291      output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
    14581292      lockfile="$output_obj.lock"
    14591293    else
     
    16121446
    16131447$opt_help || {
    1614   test "$mode" = compile && func_mode_compile ${1+"$@"}
     1448test "$mode" = compile && func_mode_compile ${1+"$@"}
    16151449}
    16161450
     
    16491483  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
    16501484  -no-suppress      do not suppress compiler output for multiple passes
    1651   -prefer-pic       try to build PIC objects only
    1652   -prefer-non-pic   try to build non-PIC objects only
     1485  -prefer-pic       try to building PIC objects only
     1486  -prefer-non-pic   try to building non-PIC objects only
    16531487  -shared           do not build a \`.o' file suitable for static linking
    16541488  -static           only build a \`.o' file suitable for static linking
    1655   -Wc,FLAG          pass FLAG directly to the compiler
    16561489
    16571490COMPILE-COMMAND is a command to be used in creating a \`standard' object file
     
    17061539The following components of INSTALL-COMMAND are treated specially:
    17071540
    1708   -inst-prefix-dir PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
     1541  -inst-prefix PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
    17091542
    17101543The rest of the components are interpreted as arguments to that command (only
     
    17261559  -all-static       do not do any dynamic linking at all
    17271560  -avoid-version    do not add a version suffix if possible
    1728   -bindir BINDIR    specify path to binaries directory (for systems where
    1729                     libraries must be found in the PATH setting at runtime)
    17301561  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
    17311562  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
     
    17561587                    specify library version info [each variable defaults to 0]
    17571588  -weak LIBNAME     declare that the target provides the LIBNAME interface
    1758   -Wc,FLAG
    1759   -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
    1760   -Wl,FLAG
    1761   -Xlinker FLAG     pass linker-specific FLAG directly to the linker
    1762   -XCClinker FLAG   pass link-specific FLAG to the compiler driver (CC)
    17631589
    17641590All other options (arguments beginning with \`-') are ignored.
     
    17981624    esac
    17991625
    1800     echo
     1626    $ECHO
    18011627    $ECHO "Try \`$progname --help' for more information about other modes."
     1628
     1629    exit $?
    18021630}
    18031631
    1804 # Now that we've collected a possible --mode arg, show help if necessary
    1805 if $opt_help; then
    1806   if test "$opt_help" = :; then
    1807     func_mode_help
    1808   else
    1809     {
    1810       func_help noexit
    1811       for mode in compile link execute install finish uninstall clean; do
    1812         func_mode_help
    1813       done
    1814     } | sed -n '1p; 2,$s/^Usage:/  or: /p'
    1815     {
    1816       func_help noexit
    1817       for mode in compile link execute install finish uninstall clean; do
    1818         echo
    1819         func_mode_help
    1820       done
    1821     } |
    1822     sed '1d
    1823       /^When reporting/,/^Report/{
    1824         H
    1825         d
    1826       }
    1827       $x
    1828       /information about other modes/d
    1829       /more detailed .*MODE/d
    1830       s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
    1831   fi
    1832   exit $?
    1833 fi
     1632  # Now that we've collected a possible --mode arg, show help if necessary
     1633  $opt_help && func_mode_help
    18341634
    18351635
     
    19131713    do
    19141714      case $file in
    1915       -* | *.la | *.lo ) ;;
     1715      -*) ;;
    19161716      *)
    19171717        # Do a test to see if this is really a libtool program.
     
    19551755      if test -n "$shlibpath_var"; then
    19561756        eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
    1957         echo "export $shlibpath_var"
     1757        $ECHO "export $shlibpath_var"
    19581758      fi
    19591759      $ECHO "$cmd$args"
     
    19961796    $opt_silent && exit $EXIT_SUCCESS
    19971797
    1998     echo "----------------------------------------------------------------------"
    1999     echo "Libraries have been installed in:"
     1798    $ECHO "X----------------------------------------------------------------------" | $Xsed
     1799    $ECHO "Libraries have been installed in:"
    20001800    for libdir in $libdirs; do
    20011801      $ECHO "   $libdir"
    20021802    done
    2003     echo
    2004     echo "If you ever happen to want to link against installed libraries"
    2005     echo "in a given directory, LIBDIR, you must either use libtool, and"
    2006     echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
    2007     echo "flag during linking and do at least one of the following:"
     1803    $ECHO
     1804    $ECHO "If you ever happen to want to link against installed libraries"
     1805    $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
     1806    $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
     1807    $ECHO "flag during linking and do at least one of the following:"
    20081808    if test -n "$shlibpath_var"; then
    2009       echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
    2010       echo "     during execution"
     1809      $ECHO "   - add LIBDIR to the \`$shlibpath_var' environment variable"
     1810      $ECHO "     during execution"
    20111811    fi
    20121812    if test -n "$runpath_var"; then
    2013       echo "   - add LIBDIR to the \`$runpath_var' environment variable"
    2014       echo "     during linking"
     1813      $ECHO "   - add LIBDIR to the \`$runpath_var' environment variable"
     1814      $ECHO "     during linking"
    20151815    fi
    20161816    if test -n "$hardcode_libdir_flag_spec"; then
     
    20241824    fi
    20251825    if test -f /etc/ld.so.conf; then
    2026       echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
     1826      $ECHO "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
    20271827    fi
    2028     echo
    2029 
    2030     echo "See any operating system documentation about shared libraries for"
     1828    $ECHO
     1829
     1830    $ECHO "See any operating system documentation about shared libraries for"
    20311831    case $host in
    20321832      solaris2.[6789]|solaris2.1[0-9])
    2033         echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
    2034         echo "pages."
     1833        $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
     1834        $ECHO "pages."
    20351835        ;;
    20361836      *)
    2037         echo "more information, such as the ld(1) and ld.so(8) manual pages."
     1837        $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
    20381838        ;;
    20391839    esac
    2040     echo "----------------------------------------------------------------------"
     1840    $ECHO "X----------------------------------------------------------------------" | $Xsed
    20411841    exit $EXIT_SUCCESS
    20421842}
     
    20531853    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
    20541854       # Allow the use of GNU shtool's install command.
    2055        case $nonopt in *shtool*) :;; *) false;; esac; then
     1855       $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
    20561856      # Aesthetically quote it.
    20571857      func_quote_for_eval "$nonopt"
     
    20681868    func_quote_for_eval "$arg"
    20691869    install_prog="$install_prog$func_quote_for_eval_result"
    2070     install_shared_prog=$install_prog
    2071     case " $install_prog " in
    2072       *[\\\ /]cp\ *) install_cp=: ;;
    2073       *) install_cp=false ;;
    2074     esac
    20751870
    20761871    # We need to accept at least all the BSD install flags.
     
    20821877    isdir=no
    20831878    stripme=
    2084     no_mode=:
    20851879    for arg
    20861880    do
    2087       arg2=
    20881881      if test -n "$dest"; then
    20891882        files="$files $dest"
     
    20951888      -d) isdir=yes ;;
    20961889      -f)
    2097         if $install_cp; then :; else
    2098           prev=$arg
    2099         fi
     1890        case " $install_prog " in
     1891        *[\\\ /]cp\ *) ;;
     1892        *) prev=$arg ;;
     1893        esac
    21001894        ;;
    21011895      -g | -m | -o)
     
    21111905        # If the previous option needed an argument, then skip it.
    21121906        if test -n "$prev"; then
    2113           if test "x$prev" = x-m && test -n "$install_override_mode"; then
    2114             arg2=$install_override_mode
    2115             no_mode=false
    2116           fi
    21171907          prev=
    21181908        else
     
    21261916      func_quote_for_eval "$arg"
    21271917      install_prog="$install_prog $func_quote_for_eval_result"
    2128       if test -n "$arg2"; then
    2129         func_quote_for_eval "$arg2"
    2130       fi
    2131       install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
    21321918    done
    21331919
     
    21371923    test -n "$prev" && \
    21381924      func_fatal_help "the \`$prev' option requires an argument"
    2139 
    2140     if test -n "$install_override_mode" && $no_mode; then
    2141       if $install_cp; then :; else
    2142         func_quote_for_eval "$install_override_mode"
    2143         install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
    2144       fi
    2145     fi
    21461925
    21471926    if test -z "$files"; then
     
    22322011        if test -n "$relink_command"; then
    22332012          # Determine the prefix the user has applied to our future dir.
    2234           inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
     2013          inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
    22352014
    22362015          # Don't allow the user to place us outside of our expected
     
    22452024          if test -n "$inst_prefix_dir"; then
    22462025            # Stick the inst_prefix_dir data into the link command.
    2247             relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
     2026            relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
    22482027          else
    2249             relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
     2028            relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
    22502029          fi
    22512030
     
    22652044
    22662045          # Install the shared library and build the symlinks.
    2267           func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
     2046          func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
    22682047              'exit $?'
    22692048          tstripme="$stripme"
     
    24052184              func_source "$lib"
    24062185            fi
    2407             libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
     2186            libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
    24082187            if test -n "$libdir" && test ! -f "$libfile"; then
    24092188              func_warning "\`$lib' has not been installed in \`$libdir'"
     
    24242203                outputname="$tmpdir/$file"
    24252204                # Replace the output file specification.
    2426                 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
     2205                relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
    24272206
    24282207                $opt_silent || {
     
    24432222          else
    24442223            # Install the binary that we compiled earlier.
    2445             file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
     2224            file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
    24462225          fi
    24472226        fi
     
    25452324#endif
    25462325
    2547 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
    2548 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
    2549 #endif
    2550 
    25512326/* External symbol declarations for the compiler. */\
    25522327"
     
    25582333
    25592334          # Add our own program objects to the symbol list.
    2560           progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
     2335          progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
    25612336          for progfile in $progfiles; do
    25622337            func_verbose "extracting global C symbols from \`$progfile'"
     
    25972372              eval '$MV "$nlist"T "$nlist"'
    25982373              case $host in
    2599                 *cygwin* | *mingw* | *cegcc* )
     2374                *cygwin | *mingw* | *cegcc* )
    26002375                  eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
    26012376                  eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
     
    26412416            eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
    26422417          else
    2643             echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
     2418            $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
    26442419          fi
    26452420
    2646           echo >> "$output_objdir/$my_dlsyms" "\
     2421          $ECHO >> "$output_objdir/$my_dlsyms" "\
    26472422
    26482423/* The mapping between symbol names and symbols.  */
     
    26542429          case $host in
    26552430          *cygwin* | *mingw* | *cegcc* )
    2656             echo >> "$output_objdir/$my_dlsyms" "\
     2431            $ECHO >> "$output_objdir/$my_dlsyms" "\
    26572432/* DATA imports from DLLs on WIN32 con't be const, because
    26582433   runtime relocations are performed -- see ld's documentation
     
    26672442          esac
    26682443
    2669           echo >> "$output_objdir/$my_dlsyms" "\
     2444          $ECHO >> "$output_objdir/$my_dlsyms" "\
    26702445extern $lt_dlsym_const lt_dlsymlist
    26712446lt_${my_prefix}_LTX_preloaded_symbols[];
     
    26832458            ;;
    26842459          esac
    2685           echo >> "$output_objdir/$my_dlsyms" "\
     2460          $ECHO >> "$output_objdir/$my_dlsyms" "\
    26862461  {0, (void *) 0}
    26872462};
     
    27412516        *cygwin* | *mingw* | *cegcc* )
    27422517          if test -f "$output_objdir/$my_outputname.def"; then
    2743             compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
    2744             finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
     2518            compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
     2519            finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
    27452520          else
    2746             compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
    2747             finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     2521            compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
     2522            finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
    27482523          fi
    27492524          ;;
    27502525        *)
    2751           compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
    2752           finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
     2526          compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
     2527          finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
    27532528          ;;
    27542529        esac
     
    27642539
    27652540      # Nullify the symbol file.
    2766       compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
    2767       finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
     2541      compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
     2542      finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
    27682543    fi
    27692544}
     
    27752550# Has to be a shell function in order to 'eat' the argument
    27762551# that is supplied when $file_magic_command is called.
    2777 # Despite the name, also deal with 64 bit binaries.
    27782552func_win32_libid ()
    27792553{
     
    27862560    ;;
    27872561  *ar\ archive*) # could be an import, or static
    2788     # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
    27892562    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
    2790        $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
     2563       $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
    27912564      win32_nmres=`eval $NM -f posix -A $1 |
    27922565        $SED -n -e '
     
    28262599    f_ex_an_ar_dir="$1"; shift
    28272600    f_ex_an_ar_oldlib="$1"
    2828     if test "$lock_old_archive_extraction" = yes; then
    2829       lockfile=$f_ex_an_ar_oldlib.lock
    2830       until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
    2831         func_echo "Waiting for $lockfile to be removed"
    2832         sleep 2
    2833       done
    2834     fi
    2835     func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
    2836                    'stat=$?; rm -f "$lockfile"; exit $stat'
    2837     if test "$lock_old_archive_extraction" = yes; then
    2838       $opt_dry_run || rm -f "$lockfile"
    2839     fi
     2601    func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
    28402602    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
    28412603     :
     
    29082670            darwin_files=
    29092671            for darwin_file in $darwin_filelist; do
    2910               darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
     2672              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
    29112673              $LIPO -create -output "$darwin_file" $darwin_files
    29122674            done # $darwin_filelist
     
    29232685        ;;
    29242686      esac
    2925       my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
     2687      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    29262688    done
    29272689
    29282690    func_extract_archives_result="$my_oldobjs"
    29292691}
     2692
     2693
     2694
     2695# func_emit_wrapper_part1 [arg=no]
     2696#
     2697# Emit the first part of a libtool wrapper script on stdout.
     2698# For more information, see the description associated with
     2699# func_emit_wrapper(), below.
     2700func_emit_wrapper_part1 ()
     2701{
     2702        func_emit_wrapper_part1_arg1=no
     2703        if test -n "$1" ; then
     2704          func_emit_wrapper_part1_arg1=$1
     2705        fi
     2706
     2707        $ECHO "\
     2708#! $SHELL
     2709
     2710# $output - temporary wrapper script for $objdir/$outputname
     2711# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
     2712#
     2713# The $output program cannot be directly executed until all the libtool
     2714# libraries that it depends on are installed.
     2715#
     2716# This wrapper script should never be moved out of the build directory.
     2717# If it is, it will not operate correctly.
     2718
     2719# Sed substitution that helps us do robust quoting.  It backslashifies
     2720# metacharacters that are still active within double-quoted strings.
     2721Xsed='${SED} -e 1s/^X//'
     2722sed_quote_subst='$sed_quote_subst'
     2723
     2724# Be Bourne compatible
     2725if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
     2726  emulate sh
     2727  NULLCMD=:
     2728  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
     2729  # is contrary to our usage.  Disable this feature.
     2730  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     2731  setopt NO_GLOB_SUBST
     2732else
     2733  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
     2734fi
     2735BIN_SH=xpg4; export BIN_SH # for Tru64
     2736DUALCASE=1; export DUALCASE # for MKS sh
     2737
     2738# The HP-UX ksh and POSIX shell print the target directory to stdout
     2739# if CDPATH is set.
     2740(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     2741
     2742relink_command=\"$relink_command\"
     2743
     2744# This environment variable determines our operation mode.
     2745if test \"\$libtool_install_magic\" = \"$magic\"; then
     2746  # install mode needs the following variables:
     2747  generated_by_libtool_version='$macro_version'
     2748  notinst_deplibs='$notinst_deplibs'
     2749else
     2750  # When we are sourced in execute mode, \$file and \$ECHO are already set.
     2751  if test \"\$libtool_execute_magic\" != \"$magic\"; then
     2752    ECHO=\"$qecho\"
     2753    file=\"\$0\"
     2754    # Make sure echo works.
     2755    if test \"X\$1\" = X--no-reexec; then
     2756      # Discard the --no-reexec flag, and continue.
     2757      shift
     2758    elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
     2759      # Yippee, \$ECHO works!
     2760      :
     2761    else
     2762      # Restart under the correct shell, and then maybe \$ECHO will work.
     2763      exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
     2764    fi
     2765  fi\
     2766"
     2767        $ECHO "\
     2768
     2769  # Find the directory that this script lives in.
     2770  thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
     2771  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
     2772
     2773  # Follow symbolic links until we get to the real thisdir.
     2774  file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
     2775  while test -n \"\$file\"; do
     2776    destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
     2777
     2778    # If there was a directory component, then change thisdir.
     2779    if test \"x\$destdir\" != \"x\$file\"; then
     2780      case \"\$destdir\" in
     2781      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
     2782      *) thisdir=\"\$thisdir/\$destdir\" ;;
     2783      esac
     2784    fi
     2785
     2786    file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
     2787    file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
     2788  done
     2789"
     2790}
     2791# end: func_emit_wrapper_part1
     2792
     2793# func_emit_wrapper_part2 [arg=no]
     2794#
     2795# Emit the second part of a libtool wrapper script on stdout.
     2796# For more information, see the description associated with
     2797# func_emit_wrapper(), below.
     2798func_emit_wrapper_part2 ()
     2799{
     2800        func_emit_wrapper_part2_arg1=no
     2801        if test -n "$1" ; then
     2802          func_emit_wrapper_part2_arg1=$1
     2803        fi
     2804
     2805        $ECHO "\
     2806
     2807  # Usually 'no', except on cygwin/mingw when embedded into
     2808  # the cwrapper.
     2809  WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
     2810  if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
     2811    # special case for '.'
     2812    if test \"\$thisdir\" = \".\"; then
     2813      thisdir=\`pwd\`
     2814    fi
     2815    # remove .libs from thisdir
     2816    case \"\$thisdir\" in
     2817    *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
     2818    $objdir )   thisdir=. ;;
     2819    esac
     2820  fi
     2821
     2822  # Try to get the absolute directory name.
     2823  absdir=\`cd \"\$thisdir\" && pwd\`
     2824  test -n \"\$absdir\" && thisdir=\"\$absdir\"
     2825"
     2826
     2827        if test "$fast_install" = yes; then
     2828          $ECHO "\
     2829  program=lt-'$outputname'$exeext
     2830  progdir=\"\$thisdir/$objdir\"
     2831
     2832  if test ! -f \"\$progdir/\$program\" ||
     2833     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
     2834       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
     2835
     2836    file=\"\$\$-\$program\"
     2837
     2838    if test ! -d \"\$progdir\"; then
     2839      $MKDIR \"\$progdir\"
     2840    else
     2841      $RM \"\$progdir/\$file\"
     2842    fi"
     2843
     2844          $ECHO "\
     2845
     2846    # relink executable if necessary
     2847    if test -n \"\$relink_command\"; then
     2848      if relink_command_output=\`eval \$relink_command 2>&1\`; then :
     2849      else
     2850        $ECHO \"\$relink_command_output\" >&2
     2851        $RM \"\$progdir/\$file\"
     2852        exit 1
     2853      fi
     2854    fi
     2855
     2856    $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
     2857    { $RM \"\$progdir/\$program\";
     2858      $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
     2859    $RM \"\$progdir/\$file\"
     2860  fi"
     2861        else
     2862          $ECHO "\
     2863  program='$outputname'
     2864  progdir=\"\$thisdir/$objdir\"
     2865"
     2866        fi
     2867
     2868        $ECHO "\
     2869
     2870  if test -f \"\$progdir/\$program\"; then"
     2871
     2872        # Export our shlibpath_var if we have one.
     2873        if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
     2874          $ECHO "\
     2875    # Add our own library path to $shlibpath_var
     2876    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
     2877
     2878    # Some systems cannot cope with colon-terminated $shlibpath_var
     2879    # The second colon is a workaround for a bug in BeOS R4 sed
     2880    $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
     2881
     2882    export $shlibpath_var
     2883"
     2884        fi
     2885
     2886        # fixup the dll searchpath if we need to.
     2887        if test -n "$dllsearchpath"; then
     2888          $ECHO "\
     2889    # Add the dll search path components to the executable PATH
     2890    PATH=$dllsearchpath:\$PATH
     2891"
     2892        fi
     2893
     2894        $ECHO "\
     2895    if test \"\$libtool_execute_magic\" != \"$magic\"; then
     2896      # Run the actual program with our arguments.
     2897"
     2898        case $host in
     2899        # Backslashes separate directories on plain windows
     2900        *-*-mingw | *-*-os2* | *-cegcc*)
     2901          $ECHO "\
     2902      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
     2903"
     2904          ;;
     2905
     2906        *)
     2907          $ECHO "\
     2908      exec \"\$progdir/\$program\" \${1+\"\$@\"}
     2909"
     2910          ;;
     2911        esac
     2912        $ECHO "\
     2913      \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
     2914      exit 1
     2915    fi
     2916  else
     2917    # The program doesn't exist.
     2918    \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
     2919    \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
     2920    $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
     2921    exit 1
     2922  fi
     2923fi\
     2924"
     2925}
     2926# end: func_emit_wrapper_part2
    29302927
    29312928
     
    29462943func_emit_wrapper ()
    29472944{
    2948         func_emit_wrapper_arg1=${1-no}
    2949 
    2950         $ECHO "\
    2951 #! $SHELL
    2952 
    2953 # $output - temporary wrapper script for $objdir/$outputname
    2954 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
    2955 #
    2956 # The $output program cannot be directly executed until all the libtool
    2957 # libraries that it depends on are installed.
    2958 #
    2959 # This wrapper script should never be moved out of the build directory.
    2960 # If it is, it will not operate correctly.
    2961 
    2962 # Sed substitution that helps us do robust quoting.  It backslashifies
    2963 # metacharacters that are still active within double-quoted strings.
    2964 sed_quote_subst='$sed_quote_subst'
    2965 
    2966 # Be Bourne compatible
    2967 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
    2968   emulate sh
    2969   NULLCMD=:
    2970   # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
    2971   # is contrary to our usage.  Disable this feature.
    2972   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    2973   setopt NO_GLOB_SUBST
    2974 else
    2975   case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
    2976 fi
    2977 BIN_SH=xpg4; export BIN_SH # for Tru64
    2978 DUALCASE=1; export DUALCASE # for MKS sh
    2979 
    2980 # The HP-UX ksh and POSIX shell print the target directory to stdout
    2981 # if CDPATH is set.
    2982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    2983 
    2984 relink_command=\"$relink_command\"
    2985 
    2986 # This environment variable determines our operation mode.
    2987 if test \"\$libtool_install_magic\" = \"$magic\"; then
    2988   # install mode needs the following variables:
    2989   generated_by_libtool_version='$macro_version'
    2990   notinst_deplibs='$notinst_deplibs'
    2991 else
    2992   # When we are sourced in execute mode, \$file and \$ECHO are already set.
    2993   if test \"\$libtool_execute_magic\" != \"$magic\"; then
    2994     file=\"\$0\""
    2995 
    2996     qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
    2997     $ECHO "\
    2998 
    2999 # A function that is used when there is no print builtin or printf.
    3000 func_fallback_echo ()
    3001 {
    3002   eval 'cat <<_LTECHO_EOF
    3003 \$1
    3004 _LTECHO_EOF'
    3005 }
    3006     ECHO=\"$qECHO\"
    3007   fi
    3008 
    3009 # Very basic option parsing. These options are (a) specific to
    3010 # the libtool wrapper, (b) are identical between the wrapper
    3011 # /script/ and the wrapper /executable/ which is used only on
    3012 # windows platforms, and (c) all begin with the string "--lt-"
    3013 # (application programs are unlikely to have options which match
    3014 # this pattern).
    3015 #
    3016 # There are only two supported options: --lt-debug and
    3017 # --lt-dump-script. There is, deliberately, no --lt-help.
    3018 #
    3019 # The first argument to this parsing function should be the
    3020 # script's $0 value, followed by "$@".
    3021 lt_option_debug=
    3022 func_parse_lt_options ()
    3023 {
    3024   lt_script_arg0=\$0
    3025   shift
    3026   for lt_opt
    3027   do
    3028     case \"\$lt_opt\" in
    3029     --lt-debug) lt_option_debug=1 ;;
    3030     --lt-dump-script)
    3031         lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
    3032         test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
    3033         lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
    3034         cat \"\$lt_dump_D/\$lt_dump_F\"
    3035         exit 0
    3036       ;;
    3037     --lt-*)
    3038         \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
    3039         exit 1
    3040       ;;
    3041     esac
    3042   done
    3043 
    3044   # Print the debug banner immediately:
    3045   if test -n \"\$lt_option_debug\"; then
    3046     echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
    3047   fi
    3048 }
    3049 
    3050 # Used when --lt-debug. Prints its arguments to stdout
    3051 # (redirection is the responsibility of the caller)
    3052 func_lt_dump_args ()
    3053 {
    3054   lt_dump_args_N=1;
    3055   for lt_arg
    3056   do
    3057     \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
    3058     lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
    3059   done
    3060 }
    3061 
    3062 # Core function for launching the target application
    3063 func_exec_program_core ()
    3064 {
    3065 "
    3066   case $host in
    3067   # Backslashes separate directories on plain windows
    3068   *-*-mingw | *-*-os2* | *-cegcc*)
    3069     $ECHO "\
    3070       if test -n \"\$lt_option_debug\"; then
    3071         \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
    3072         func_lt_dump_args \${1+\"\$@\"} 1>&2
    3073       fi
    3074       exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
    3075 "
    3076     ;;
    3077 
    3078   *)
    3079     $ECHO "\
    3080       if test -n \"\$lt_option_debug\"; then
    3081         \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
    3082         func_lt_dump_args \${1+\"\$@\"} 1>&2
    3083       fi
    3084       exec \"\$progdir/\$program\" \${1+\"\$@\"}
    3085 "
    3086     ;;
    3087   esac
    3088   $ECHO "\
    3089       \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
    3090       exit 1
    3091 }
    3092 
    3093 # A function to encapsulate launching the target application
    3094 # Strips options in the --lt-* namespace from \$@ and
    3095 # launches target application with the remaining arguments.
    3096 func_exec_program ()
    3097 {
    3098   for lt_wr_arg
    3099   do
    3100     case \$lt_wr_arg in
    3101     --lt-*) ;;
    3102     *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
    3103     esac
    3104     shift
    3105   done
    3106   func_exec_program_core \${1+\"\$@\"}
    3107 }
    3108 
    3109   # Parse options
    3110   func_parse_lt_options \"\$0\" \${1+\"\$@\"}
    3111 
    3112   # Find the directory that this script lives in.
    3113   thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
    3114   test \"x\$thisdir\" = \"x\$file\" && thisdir=.
    3115 
    3116   # Follow symbolic links until we get to the real thisdir.
    3117   file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
    3118   while test -n \"\$file\"; do
    3119     destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
    3120 
    3121     # If there was a directory component, then change thisdir.
    3122     if test \"x\$destdir\" != \"x\$file\"; then
    3123       case \"\$destdir\" in
    3124       [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
    3125       *) thisdir=\"\$thisdir/\$destdir\" ;;
    3126       esac
    3127     fi
    3128 
    3129     file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
    3130     file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
    3131   done
    3132 
    3133   # Usually 'no', except on cygwin/mingw when embedded into
    3134   # the cwrapper.
    3135   WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
    3136   if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
    3137     # special case for '.'
    3138     if test \"\$thisdir\" = \".\"; then
    3139       thisdir=\`pwd\`
    3140     fi
    3141     # remove .libs from thisdir
    3142     case \"\$thisdir\" in
    3143     *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
    3144     $objdir )   thisdir=. ;;
    3145     esac
    3146   fi
    3147 
    3148   # Try to get the absolute directory name.
    3149   absdir=\`cd \"\$thisdir\" && pwd\`
    3150   test -n \"\$absdir\" && thisdir=\"\$absdir\"
    3151 "
    3152 
    3153         if test "$fast_install" = yes; then
    3154           $ECHO "\
    3155   program=lt-'$outputname'$exeext
    3156   progdir=\"\$thisdir/$objdir\"
    3157 
    3158   if test ! -f \"\$progdir/\$program\" ||
    3159      { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
    3160        test \"X\$file\" != \"X\$progdir/\$program\"; }; then
    3161 
    3162     file=\"\$\$-\$program\"
    3163 
    3164     if test ! -d \"\$progdir\"; then
    3165       $MKDIR \"\$progdir\"
    3166     else
    3167       $RM \"\$progdir/\$file\"
    3168     fi"
    3169 
    3170           $ECHO "\
    3171 
    3172     # relink executable if necessary
    3173     if test -n \"\$relink_command\"; then
    3174       if relink_command_output=\`eval \$relink_command 2>&1\`; then :
    3175       else
    3176         $ECHO \"\$relink_command_output\" >&2
    3177         $RM \"\$progdir/\$file\"
    3178         exit 1
    3179       fi
    3180     fi
    3181 
    3182     $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
    3183     { $RM \"\$progdir/\$program\";
    3184       $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
    3185     $RM \"\$progdir/\$file\"
    3186   fi"
    3187         else
    3188           $ECHO "\
    3189   program='$outputname'
    3190   progdir=\"\$thisdir/$objdir\"
    3191 "
     2945        func_emit_wrapper_arg1=no
     2946        if test -n "$1" ; then
     2947          func_emit_wrapper_arg1=$1
    31922948        fi
    31932949
    3194         $ECHO "\
    3195 
    3196   if test -f \"\$progdir/\$program\"; then"
    3197 
    3198         # Export our shlibpath_var if we have one.
    3199         if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
    3200           $ECHO "\
    3201     # Add our own library path to $shlibpath_var
    3202     $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
    3203 
    3204     # Some systems cannot cope with colon-terminated $shlibpath_var
    3205     # The second colon is a workaround for a bug in BeOS R4 sed
    3206     $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
    3207 
    3208     export $shlibpath_var
    3209 "
    3210         fi
    3211 
    3212         # fixup the dll searchpath if we need to.
    3213         if test -n "$dllsearchpath"; then
    3214           $ECHO "\
    3215     # Add the dll search path components to the executable PATH
    3216     PATH=$dllsearchpath:\$PATH
    3217 "
    3218         fi
    3219 
    3220         $ECHO "\
    3221     if test \"\$libtool_execute_magic\" != \"$magic\"; then
    3222       # Run the actual program with our arguments.
    3223       func_exec_program \${1+\"\$@\"}
    3224     fi
    3225   else
    3226     # The program doesn't exist.
    3227     \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
    3228     \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
    3229     \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
    3230     exit 1
    3231   fi
    3232 fi\
    3233 "
     2950        # split this up so that func_emit_cwrapperexe_src
     2951        # can call each part independently.
     2952        func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
     2953        func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
    32342954}
    32352955
     
    32592979{
    32602980  func_to_host_path_result="$1"
    3261   if test -n "$1"; then
     2981  if test -n "$1" ; then
    32622982    case $host in
    32632983      *mingw* )
     
    32662986          *mingw* ) # actually, msys
    32672987            # awkward: cmd appends spaces to result
    3268             func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
    3269               $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
     2988            lt_sed_strip_trailing_spaces="s/[ ]*\$//"
     2989            func_to_host_path_tmp1=`( cmd //c echo "$1" |\
     2990              $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
     2991            func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
     2992              $SED -e "$lt_sed_naive_backslashify"`
    32702993            ;;
    32712994          *cygwin* )
    3272             func_to_host_path_result=`cygpath -w "$1" |
    3273               $SED -e "$lt_sed_naive_backslashify"`
     2995            func_to_host_path_tmp1=`cygpath -w "$1"`
     2996            func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
     2997              $SED -e "$lt_sed_naive_backslashify"`
    32742998            ;;
    32752999          * )
     
    32833007            func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
    32843008            if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
    3285               func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
     3009              func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
    32863010                $SED -e "$lt_sed_naive_backslashify"`
    32873011            else
    32883012              # Allow warning below.
    3289               func_to_host_path_result=
     3013              func_to_host_path_result=""
    32903014            fi
    32913015            ;;
     
    32933017        if test -z "$func_to_host_path_result" ; then
    32943018          func_error "Could not determine host path corresponding to"
    3295           func_error "  \`$1'"
     3019          func_error "  '$1'"
    32963020          func_error "Continuing, but uninstalled executables may not work."
    32973021          # Fallback:
     
    33263050{
    33273051  func_to_host_pathlist_result="$1"
    3328   if test -n "$1"; then
     3052  if test -n "$1" ; then
    33293053    case $host in
    33303054      *mingw* )
     
    33333057        # ARG. msys behavior is inconsistent here, cygpath turns them
    33343058        # into '.;' and ';.', and winepath ignores them completely.
    3335         func_stripname : : "$1"
    3336         func_to_host_pathlist_tmp1=$func_stripname_result
     3059        func_to_host_pathlist_tmp2="$1"
     3060        # Once set for this call, this variable should not be
     3061        # reassigned. It is used in tha fallback case.
     3062        func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
     3063          $SED -e 's|^:*||' -e 's|:*$||'`
    33373064        case $build in
    33383065          *mingw* ) # Actually, msys.
    33393066            # Awkward: cmd appends spaces to result.
    3340             func_to_host_pathlist_result=`
    3341               ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
    3342               $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
     3067            lt_sed_strip_trailing_spaces="s/[ ]*\$//"
     3068            func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
     3069              $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
     3070            func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
     3071              $SED -e "$lt_sed_naive_backslashify"`
    33433072            ;;
    33443073          *cygwin* )
    3345             func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
     3074            func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
     3075            func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
    33463076              $SED -e "$lt_sed_naive_backslashify"`
    33473077            ;;
     
    33593089                    func_to_host_pathlist_result="$func_to_host_path_result"
    33603090                  else
    3361                     func_append func_to_host_pathlist_result ";$func_to_host_path_result"
     3091                    func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
    33623092                  fi
    33633093                fi
    33643094              fi
     3095              IFS=:
    33653096            done
    33663097            IFS=$func_to_host_pathlist_oldIFS
    33673098            ;;
    33683099        esac
    3369         if test -z "$func_to_host_pathlist_result"; then
     3100        if test -z "$func_to_host_pathlist_result" ; then
    33703101          func_error "Could not determine the host path(s) corresponding to"
    3371           func_error "  \`$1'"
     3102          func_error "  '$1'"
    33723103          func_error "Continuing, but uninstalled executables may not work."
    33733104          # Fallback. This may break if $1 contains DOS-style drive
     
    33863117        esac
    33873118        case "$1" in
    3388           *: ) func_append func_to_host_pathlist_result ";"
     3119          *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
    33893120            ;;
    33903121        esac
     
    34113142   This wrapper executable should never be moved out of the build directory.
    34123143   If it is, it will not operate correctly.
     3144
     3145   Currently, it simply execs the wrapper *script* "$SHELL $output",
     3146   but could eventually absorb all of the scripts functionality and
     3147   exec $objdir/$outputname directly.
    34133148*/
    34143149EOF
    34153150            cat <<"EOF"
    3416 #ifdef _MSC_VER
    3417 # define _CRT_SECURE_NO_DEPRECATE 1
    3418 #endif
    34193151#include <stdio.h>
    34203152#include <stdlib.h>
     
    34233155# include <process.h>
    34243156# include <io.h>
     3157# define setmode _setmode
    34253158#else
    34263159# include <unistd.h>
     
    34283161# ifdef __CYGWIN__
    34293162#  include <io.h>
     3163#  define HAVE_SETENV
     3164#  ifdef __STRICT_ANSI__
     3165char *realpath (const char *, char *);
     3166int putenv (char *);
     3167int setenv (const char *, const char *, int);
     3168#  endif
    34303169# endif
    34313170#endif
     
    34393178#include <sys/stat.h>
    34403179
    3441 /* declarations of non-ANSI functions */
    3442 #if defined(__MINGW32__)
    3443 # ifdef __STRICT_ANSI__
    3444 int _putenv (const char *);
    3445 # endif
    3446 #elif defined(__CYGWIN__)
    3447 # ifdef __STRICT_ANSI__
    3448 char *realpath (const char *, char *);
    3449 int putenv (char *);
    3450 int setenv (const char *, const char *, int);
    3451 # endif
    3452 /* #elif defined (other platforms) ... */
    3453 #endif
    3454 
    3455 /* portability defines, excluding path handling macros */
    3456 #if defined(_MSC_VER)
    3457 # define setmode _setmode
    3458 # define stat    _stat
    3459 # define chmod   _chmod
    3460 # define getcwd  _getcwd
    3461 # define putenv  _putenv
    3462 # define S_IXUSR _S_IEXEC
    3463 # ifndef _INTPTR_T_DEFINED
    3464 #  define _INTPTR_T_DEFINED
    3465 #  define intptr_t int
    3466 # endif
    3467 #elif defined(__MINGW32__)
    3468 # define setmode _setmode
    3469 # define stat    _stat
    3470 # define chmod   _chmod
    3471 # define getcwd  _getcwd
    3472 # define putenv  _putenv
    3473 #elif defined(__CYGWIN__)
    3474 # define HAVE_SETENV
    3475 # define FOPEN_WB "wb"
    3476 /* #elif defined (other platforms) ... */
    3477 #endif
    3478 
    34793180#if defined(PATH_MAX)
    34803181# define LT_PATHMAX PATH_MAX
     
    34923193#endif
    34933194
    3494 /* path handling portability macros */
     3195#ifdef _MSC_VER
     3196# define S_IXUSR _S_IEXEC
     3197# define stat _stat
     3198# ifndef _INTPTR_T_DEFINED
     3199#  define intptr_t int
     3200# endif
     3201#endif
     3202
    34953203#ifndef DIR_SEPARATOR
    34963204# define DIR_SEPARATOR '/'
     
    35233231#endif /* PATH_SEPARATOR_2 */
    35243232
     3233#ifdef __CYGWIN__
     3234# define FOPEN_WB "wb"
     3235#endif
     3236
    35253237#ifndef FOPEN_WB
    35263238# define FOPEN_WB "w"
     
    35353247} while (0)
    35363248
    3537 #if defined(LT_DEBUGWRAPPER)
    3538 static int lt_debug = 1;
     3249#undef LTWRAPPER_DEBUGPRINTF
     3250#if defined DEBUGWRAPPER
     3251# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
     3252static void
     3253ltwrapper_debugprintf (const char *fmt, ...)
     3254{
     3255    va_list args;
     3256    va_start (args, fmt);
     3257    (void) vfprintf (stderr, fmt, args);
     3258    va_end (args);
     3259}
    35393260#else
    3540 static int lt_debug = 0;
     3261# define LTWRAPPER_DEBUGPRINTF(args)
    35413262#endif
    35423263
    3543 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
     3264const char *program_name = NULL;
    35443265
    35453266void *xmalloc (size_t num);
     
    35513272int check_executable (const char *path);
    35523273char *strendzap (char *str, const char *pat);
    3553 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
    3554 void lt_fatal (const char *file, int line, const char *message, ...);
    3555 static const char *nonnull (const char *s);
    3556 static const char *nonempty (const char *s);
     3274void lt_fatal (const char *message, ...);
    35573275void lt_setenv (const char *name, const char *value);
    35583276char *lt_extend_str (const char *orig_value, const char *add, int to_end);
     3277void lt_opt_process_env_set (const char *arg);
     3278void lt_opt_process_env_prepend (const char *arg);
     3279void lt_opt_process_env_append (const char *arg);
     3280int lt_split_name_value (const char *arg, char** name, char** value);
    35593281void lt_update_exe_path (const char *name, const char *value);
    35603282void lt_update_lib_path (const char *name, const char *value);
    3561 char **prepare_spawn (char **argv);
    3562 void lt_dump_script (FILE *f);
     3283
     3284static const char *script_text_part1 =
    35633285EOF
     3286
     3287            func_emit_wrapper_part1 yes |
     3288                $SED -e 's/\([\\"]\)/\\\1/g' \
     3289                     -e 's/^/  "/' -e 's/$/\\n"/'
     3290            echo ";"
     3291            cat <<EOF
     3292
     3293static const char *script_text_part2 =
     3294EOF
     3295            func_emit_wrapper_part2 yes |
     3296                $SED -e 's/\([\\"]\)/\\\1/g' \
     3297                     -e 's/^/  "/' -e 's/$/\\n"/'
     3298            echo ";"
    35643299
    35653300            cat <<EOF
     
    36063341
    36073342#define LTWRAPPER_OPTION_PREFIX         "--lt-"
    3608 
     3343#define LTWRAPPER_OPTION_PREFIX_LENGTH  5
     3344
     3345static const size_t opt_prefix_len         = LTWRAPPER_OPTION_PREFIX_LENGTH;
    36093346static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
     3347
    36103348static const char *dumpscript_opt       = LTWRAPPER_OPTION_PREFIX "dump-script";
    3611 static const char *debug_opt            = LTWRAPPER_OPTION_PREFIX "debug";
     3349
     3350static const size_t env_set_opt_len     = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
     3351static const char *env_set_opt          = LTWRAPPER_OPTION_PREFIX "env-set";
     3352  /* argument is putenv-style "foo=bar", value of foo is set to bar */
     3353
     3354static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
     3355static const char *env_prepend_opt      = LTWRAPPER_OPTION_PREFIX "env-prepend";
     3356  /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
     3357
     3358static const size_t env_append_opt_len  = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
     3359static const char *env_append_opt       = LTWRAPPER_OPTION_PREFIX "env-append";
     3360  /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
    36123361
    36133362int
     
    36263375
    36273376  program_name = (char *) xstrdup (base_name (argv[0]));
    3628   newargz = XMALLOC (char *, argc + 1);
    3629 
    3630   /* very simple arg parsing; don't want to rely on getopt
    3631    * also, copy all non cwrapper options to newargz, except
    3632    * argz[0], which is handled differently
    3633    */
    3634   newargc=0;
     3377  LTWRAPPER_DEBUGPRINTF (("(main) argv[0]      : %s\n", argv[0]));
     3378  LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
     3379
     3380  /* very simple arg parsing; don't want to rely on getopt */
    36353381  for (i = 1; i < argc; i++)
    36363382    {
     
    36463392
    36473393            cat <<"EOF"
    3648           lt_dump_script (stdout);
     3394          printf ("%s", script_text_part1);
     3395          printf ("%s", script_text_part2);
    36493396          return 0;
    36503397        }
    3651       if (strcmp (argv[i], debug_opt) == 0)
    3652         {
    3653           lt_debug = 1;
    3654           continue;
    3655         }
    3656       if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
    3657         {
    3658           /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
    3659              namespace, but it is not one of the ones we know about and
    3660              have already dealt with, above (inluding dump-script), then
    3661              report an error. Otherwise, targets might begin to believe
    3662              they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
    3663              namespace. The first time any user complains about this, we'll
    3664              need to make LTWRAPPER_OPTION_PREFIX a configure-time option
    3665              or a configure.ac-settable value.
    3666            */
    3667           lt_fatal (__FILE__, __LINE__,
    3668                     "unrecognized %s option: '%s'",
    3669                     ltwrapper_option_prefix, argv[i]);
    3670         }
    3671       /* otherwise ... */
    3672       newargz[++newargc] = xstrdup (argv[i]);
    36733398    }
    3674   newargz[++newargc] = NULL;
    3675 
    3676 EOF
    3677             cat <<EOF
    3678   /* The GNU banner must be the first non-error debug message */
    3679   lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
    3680 EOF
    3681             cat <<"EOF"
    3682   lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
    3683   lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
    3684 
     3399
     3400  newargz = XMALLOC (char *, argc + 1);
    36853401  tmp_pathspec = find_executable (argv[0]);
    36863402  if (tmp_pathspec == NULL)
    3687     lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
    3688   lt_debugprintf (__FILE__, __LINE__,
    3689                   "(main) found exe (before symlink chase) at: %s\n",
    3690                   tmp_pathspec);
     3403    lt_fatal ("Couldn't find %s", argv[0]);
     3404  LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
     3405                          tmp_pathspec));
    36913406
    36923407  actual_cwrapper_path = chase_symlinks (tmp_pathspec);
    3693   lt_debugprintf (__FILE__, __LINE__,
    3694                   "(main) found exe (after symlink chase) at: %s\n",
    3695                   actual_cwrapper_path);
     3408  LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
     3409                          actual_cwrapper_path));
    36963410  XFREE (tmp_pathspec);
    36973411
    3698   actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
     3412  actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
    36993413  strendzap (actual_cwrapper_path, actual_cwrapper_name);
    37003414
     
    37143428  tmp_pathspec = 0;
    37153429
    3716   lt_debugprintf (__FILE__, __LINE__,
    3717                   "(main) libtool target name: %s\n",
    3718                   target_name);
     3430  LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
     3431                          target_name));
    37193432EOF
    37203433
     
    37693482  lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
    37703483
    3771   lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
    3772                   nonnull (lt_argv_zero));
     3484  newargc=0;
     3485  for (i = 1; i < argc; i++)
     3486    {
     3487      if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
     3488        {
     3489          if (argv[i][env_set_opt_len] == '=')
     3490            {
     3491              const char *p = argv[i] + env_set_opt_len + 1;
     3492              lt_opt_process_env_set (p);
     3493            }
     3494          else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
     3495            {
     3496              lt_opt_process_env_set (argv[++i]); /* don't copy */
     3497            }
     3498          else
     3499            lt_fatal ("%s missing required argument", env_set_opt);
     3500          continue;
     3501        }
     3502      if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
     3503        {
     3504          if (argv[i][env_prepend_opt_len] == '=')
     3505            {
     3506              const char *p = argv[i] + env_prepend_opt_len + 1;
     3507              lt_opt_process_env_prepend (p);
     3508            }
     3509          else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
     3510            {
     3511              lt_opt_process_env_prepend (argv[++i]); /* don't copy */
     3512            }
     3513          else
     3514            lt_fatal ("%s missing required argument", env_prepend_opt);
     3515          continue;
     3516        }
     3517      if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
     3518        {
     3519          if (argv[i][env_append_opt_len] == '=')
     3520            {
     3521              const char *p = argv[i] + env_append_opt_len + 1;
     3522              lt_opt_process_env_append (p);
     3523            }
     3524          else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
     3525            {
     3526              lt_opt_process_env_append (argv[++i]); /* don't copy */
     3527            }
     3528          else
     3529            lt_fatal ("%s missing required argument", env_append_opt);
     3530          continue;
     3531        }
     3532      if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
     3533        {
     3534          /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
     3535             namespace, but it is not one of the ones we know about and
     3536             have already dealt with, above (inluding dump-script), then
     3537             report an error. Otherwise, targets might begin to believe
     3538             they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
     3539             namespace. The first time any user complains about this, we'll
     3540             need to make LTWRAPPER_OPTION_PREFIX a configure-time option
     3541             or a configure.ac-settable value.
     3542           */
     3543          lt_fatal ("Unrecognized option in %s namespace: '%s'",
     3544                    ltwrapper_option_prefix, argv[i]);
     3545        }
     3546      /* otherwise ... */
     3547      newargz[++newargc] = xstrdup (argv[i]);
     3548    }
     3549  newargz[++newargc] = NULL;
     3550
     3551  LTWRAPPER_DEBUGPRINTF     (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
    37733552  for (i = 0; i < newargc; i++)
    37743553    {
    3775       lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
    3776                       i, nonnull (newargz[i]));
     3554      LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d]   : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
    37773555    }
    37783556
     
    37833561                cat <<"EOF"
    37843562  /* execv doesn't actually work on mingw as expected on unix */
    3785   newargz = prepare_spawn (newargz);
    37863563  rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
    37873564  if (rval == -1)
    37883565    {
    37893566      /* failed to start process */
    3790       lt_debugprintf (__FILE__, __LINE__,
    3791                       "(main) failed to launch target \"%s\": %s\n",
    3792                       lt_argv_zero, nonnull (strerror (errno)));
     3567      LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
    37933568      return 127;
    37943569    }
     
    38123587  void *p = (void *) malloc (num);
    38133588  if (!p)
    3814     lt_fatal (__FILE__, __LINE__, "memory exhausted");
     3589    lt_fatal ("Memory exhausted");
    38153590
    38163591  return p;
     
    38463621  struct stat st;
    38473622
    3848   lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
    3849                   nonempty (path));
     3623  LTWRAPPER_DEBUGPRINTF (("(check_executable)  : %s\n",
     3624                          path ? (*path ? path : "EMPTY!") : "NULL!"));
    38503625  if ((!path) || (!*path))
    38513626    return 0;
     
    38643639  struct stat st;
    38653640
    3866   lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
    3867                   nonempty (path));
     3641  LTWRAPPER_DEBUGPRINTF (("(make_executable)   : %s\n",
     3642                          path ? (*path ? path : "EMPTY!") : "NULL!"));
    38683643  if ((!path) || (!*path))
    38693644    return 0;
     
    38913666  char *concat_name;
    38923667
    3893   lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
    3894                   nonempty (wrapper));
     3668  LTWRAPPER_DEBUGPRINTF (("(find_executable)   : %s\n",
     3669                          wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
    38953670
    38963671  if ((wrapper == NULL) || (*wrapper == '\0'))
     
    39453720                  /* empty path: current directory */
    39463721                  if (getcwd (tmp, LT_PATHMAX) == NULL)
    3947                     lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
    3948                               nonnull (strerror (errno)));
     3722                    lt_fatal ("getcwd failed");
    39493723                  tmp_len = strlen (tmp);
    39503724                  concat_name =
     
    39713745  /* Relative path | not found in path: prepend cwd */
    39723746  if (getcwd (tmp, LT_PATHMAX) == NULL)
    3973     lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
    3974               nonnull (strerror (errno)));
     3747    lt_fatal ("getcwd failed");
    39753748  tmp_len = strlen (tmp);
    39763749  concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
     
    39983771  while (strlen (tmp_pathspec) && !has_symlinks)
    39993772    {
    4000       lt_debugprintf (__FILE__, __LINE__,
    4001                       "checking path component for symlinks: %s\n",
    4002                       tmp_pathspec);
     3773      LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
     3774                              tmp_pathspec));
    40033775      if (lstat (tmp_pathspec, &s) == 0)
    40043776        {
     
    40223794      else
    40233795        {
    4024           lt_fatal (__FILE__, __LINE__,
    4025                     "error accessing file \"%s\": %s",
    4026                     tmp_pathspec, nonnull (strerror (errno)));
     3796          char *errstr = strerror (errno);
     3797          lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
    40273798        }
    40283799    }
     
    40373808  if (tmp_pathspec == 0)
    40383809    {
    4039       lt_fatal (__FILE__, __LINE__,
    4040                 "could not follow symlinks for %s", pathspec);
     3810      lt_fatal ("Could not follow symlinks for %s", pathspec);
    40413811    }
    40423812  return xstrdup (tmp_pathspec);
     
    40643834}
    40653835
    4066 void
    4067 lt_debugprintf (const char *file, int line, const char *fmt, ...)
    4068 {
    4069   va_list args;
    4070   if (lt_debug)
    4071     {
    4072       (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
    4073       va_start (args, fmt);
    4074       (void) vfprintf (stderr, fmt, args);
    4075       va_end (args);
    4076     }
    4077 }
    4078 
    40793836static void
    4080 lt_error_core (int exit_status, const char *file,
    4081                int line, const char *mode,
     3837lt_error_core (int exit_status, const char *mode,
    40823838               const char *message, va_list ap)
    40833839{
    4084   fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
     3840  fprintf (stderr, "%s: %s: ", program_name, mode);
    40853841  vfprintf (stderr, message, ap);
    40863842  fprintf (stderr, ".\n");
     
    40913847
    40923848void
    4093 lt_fatal (const char *file, int line, const char *message, ...)
     3849lt_fatal (const char *message, ...)
    40943850{
    40953851  va_list ap;
    40963852  va_start (ap, message);
    4097   lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
     3853  lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
    40983854  va_end (ap);
    4099 }
    4100 
    4101 static const char *
    4102 nonnull (const char *s)
    4103 {
    4104   return s ? s : "(null)";
    4105 }
    4106 
    4107 static const char *
    4108 nonempty (const char *s)
    4109 {
    4110   return (s && !*s) ? "(empty)" : nonnull (s);
    41113855}
    41123856
     
    41143858lt_setenv (const char *name, const char *value)
    41153859{
    4116   lt_debugprintf (__FILE__, __LINE__,
    4117                   "(lt_setenv) setting '%s' to '%s'\n",
    4118                   nonnull (name), nonnull (value));
     3860  LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
     3861                          (name ? name : "<NULL>"),
     3862                          (value ? value : "<NULL>")));
    41193863  {
    41203864#ifdef HAVE_SETENV
     
    41613905}
    41623906
     3907int
     3908lt_split_name_value (const char *arg, char** name, char** value)
     3909{
     3910  const char *p;
     3911  int len;
     3912  if (!arg || !*arg)
     3913    return 1;
     3914
     3915  p = strchr (arg, (int)'=');
     3916
     3917  if (!p)
     3918    return 1;
     3919
     3920  *value = xstrdup (++p);
     3921
     3922  len = strlen (arg) - strlen (*value);
     3923  *name = XMALLOC (char, len);
     3924  strncpy (*name, arg, len-1);
     3925  (*name)[len - 1] = '\0';
     3926
     3927  return 0;
     3928}
     3929
     3930void
     3931lt_opt_process_env_set (const char *arg)
     3932{
     3933  char *name = NULL;
     3934  char *value = NULL;
     3935
     3936  if (lt_split_name_value (arg, &name, &value) != 0)
     3937    {
     3938      XFREE (name);
     3939      XFREE (value);
     3940      lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
     3941    }
     3942
     3943  lt_setenv (name, value);
     3944  XFREE (name);
     3945  XFREE (value);
     3946}
     3947
     3948void
     3949lt_opt_process_env_prepend (const char *arg)
     3950{
     3951  char *name = NULL;
     3952  char *value = NULL;
     3953  char *new_value = NULL;
     3954
     3955  if (lt_split_name_value (arg, &name, &value) != 0)
     3956    {
     3957      XFREE (name);
     3958      XFREE (value);
     3959      lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
     3960    }
     3961
     3962  new_value = lt_extend_str (getenv (name), value, 0);
     3963  lt_setenv (name, new_value);
     3964  XFREE (new_value);
     3965  XFREE (name);
     3966  XFREE (value);
     3967}
     3968
     3969void
     3970lt_opt_process_env_append (const char *arg)
     3971{
     3972  char *name = NULL;
     3973  char *value = NULL;
     3974  char *new_value = NULL;
     3975
     3976  if (lt_split_name_value (arg, &name, &value) != 0)
     3977    {
     3978      XFREE (name);
     3979      XFREE (value);
     3980      lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
     3981    }
     3982
     3983  new_value = lt_extend_str (getenv (name), value, 1);
     3984  lt_setenv (name, new_value);
     3985  XFREE (new_value);
     3986  XFREE (name);
     3987  XFREE (value);
     3988}
     3989
    41633990void
    41643991lt_update_exe_path (const char *name, const char *value)
    41653992{
    4166   lt_debugprintf (__FILE__, __LINE__,
    4167                   "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
    4168                   nonnull (name), nonnull (value));
     3993  LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
     3994                          (name ? name : "<NULL>"),
     3995                          (value ? value : "<NULL>")));
    41693996
    41703997  if (name && *name && value && *value)
     
    41854012lt_update_lib_path (const char *name, const char *value)
    41864013{
    4187   lt_debugprintf (__FILE__, __LINE__,
    4188                   "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
    4189                   nonnull (name), nonnull (value));
     4014  LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
     4015                          (name ? name : "<NULL>"),
     4016                          (value ? value : "<NULL>")));
    41904017
    41914018  if (name && *name && value && *value)
     
    41974024}
    41984025
    4199 EOF
    4200             case $host_os in
    4201               mingw*)
    4202                 cat <<"EOF"
    4203 
    4204 /* Prepares an argument vector before calling spawn().
    4205    Note that spawn() does not by itself call the command interpreter
    4206      (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
    4207       ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
    4208          GetVersionEx(&v);
    4209          v.dwPlatformId == VER_PLATFORM_WIN32_NT;
    4210       }) ? "cmd.exe" : "command.com").
    4211    Instead it simply concatenates the arguments, separated by ' ', and calls
    4212    CreateProcess().  We must quote the arguments since Win32 CreateProcess()
    4213    interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
    4214    special way:
    4215    - Space and tab are interpreted as delimiters. They are not treated as
    4216      delimiters if they are surrounded by double quotes: "...".
    4217    - Unescaped double quotes are removed from the input. Their only effect is
    4218      that within double quotes, space and tab are treated like normal
    4219      characters.
    4220    - Backslashes not followed by double quotes are not special.
    4221    - But 2*n+1 backslashes followed by a double quote become
    4222      n backslashes followed by a double quote (n >= 0):
    4223        \" -> "
    4224        \\\" -> \"
    4225        \\\\\" -> \\"
    4226  */
    4227 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
    4228 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
    4229 char **
    4230 prepare_spawn (char **argv)
    4231 {
    4232   size_t argc;
    4233   char **new_argv;
    4234   size_t i;
    4235 
    4236   /* Count number of arguments.  */
    4237   for (argc = 0; argv[argc] != NULL; argc++)
    4238     ;
    4239 
    4240   /* Allocate new argument vector.  */
    4241   new_argv = XMALLOC (char *, argc + 1);
    4242 
    4243   /* Put quoted arguments into the new argument vector.  */
    4244   for (i = 0; i < argc; i++)
    4245     {
    4246       const char *string = argv[i];
    4247 
    4248       if (string[0] == '\0')
    4249         new_argv[i] = xstrdup ("\"\"");
    4250       else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
    4251         {
    4252           int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
    4253           size_t length;
    4254           unsigned int backslashes;
    4255           const char *s;
    4256           char *quoted_string;
    4257           char *p;
    4258 
    4259           length = 0;
    4260           backslashes = 0;
    4261           if (quote_around)
    4262             length++;
    4263           for (s = string; *s != '\0'; s++)
    4264             {
    4265               char c = *s;
    4266               if (c == '"')
    4267                 length += backslashes + 1;
    4268               length++;
    4269               if (c == '\\')
    4270                 backslashes++;
    4271               else
    4272                 backslashes = 0;
    4273             }
    4274           if (quote_around)
    4275             length += backslashes + 1;
    4276 
    4277           quoted_string = XMALLOC (char, length + 1);
    4278 
    4279           p = quoted_string;
    4280           backslashes = 0;
    4281           if (quote_around)
    4282             *p++ = '"';
    4283           for (s = string; *s != '\0'; s++)
    4284             {
    4285               char c = *s;
    4286               if (c == '"')
    4287                 {
    4288                   unsigned int j;
    4289                   for (j = backslashes + 1; j > 0; j--)
    4290                     *p++ = '\\';
    4291                 }
    4292               *p++ = c;
    4293               if (c == '\\')
    4294                 backslashes++;
    4295               else
    4296                 backslashes = 0;
    4297             }
    4298           if (quote_around)
    4299             {
    4300               unsigned int j;
    4301               for (j = backslashes; j > 0; j--)
    4302                 *p++ = '\\';
    4303               *p++ = '"';
    4304             }
    4305           *p = '\0';
    4306 
    4307           new_argv[i] = quoted_string;
    4308         }
    4309       else
    4310         new_argv[i] = (char *) string;
    4311     }
    4312   new_argv[argc] = NULL;
    4313 
    4314   return new_argv;
    4315 }
    4316 EOF
    4317                 ;;
    4318             esac
    4319 
    4320             cat <<"EOF"
    4321 void lt_dump_script (FILE* f)
    4322 {
    4323 EOF
    4324             func_emit_wrapper yes |
    4325               $SED -e 's/\([\\"]\)/\\\1/g' \
    4326                    -e 's/^/  fputs ("/' -e 's/$/\\n", f);/'
    4327 
    4328             cat <<"EOF"
    4329 }
     4026
    43304027EOF
    43314028}
    43324029# end: func_emit_cwrapperexe_src
    4333 
    4334 # func_win32_import_lib_p ARG
    4335 # True if ARG is an import lib, as indicated by $file_magic_cmd
    4336 func_win32_import_lib_p ()
    4337 {
    4338     $opt_debug
    4339     case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
    4340     *import*) : ;;
    4341     *) false ;;
    4342     esac
    4343 }
    43444030
    43454031# func_mode_link arg...
     
    43874073
    43884074    avoid_version=no
    4389     bindir=
    43904075    dlfiles=
    43914076    dlprefiles=
     
    44804165
    44814166        case $prev in
    4482         bindir)
    4483           bindir="$arg"
    4484           prev=
    4485           continue
    4486           ;;
    44874167        dlfiles|dlprefiles)
    44884168          if test "$preload" = no; then
     
    47464426        ;;
    47474427
    4748       -bindir)
    4749         prev=bindir
    4750         continue
    4751         ;;
    4752 
    47534428      -dlopen)
    47544429        prev=dlfiles
     
    48294504        case $host in
    48304505        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
    4831           testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
     4506          testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
    48324507          case :$dllsearchpath: in
    48334508          *":$dir:"*) ;;
     
    48484523        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
    48494524          case $host in
    4850           *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
     4525          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
    48514526            # These systems don't actually have a C or math library (as such)
    48524527            continue
     
    50344709          IFS="$save_ifs"
    50354710          func_quote_for_eval "$flag"
    5036           arg="$arg $func_quote_for_eval_result"
     4711          arg="$arg $wl$func_quote_for_eval_result"
    50374712          compiler_flags="$compiler_flags $func_quote_for_eval_result"
    50384713        done
     
    50804755        ;;
    50814756
    5082       # Flags to be passed through unchanged, with rationale:
    5083       # -64, -mips[0-9]      enable 64-bit mode for the SGI compiler
    5084       # -r[0-9][0-9]*        specify processor for the SGI compiler
    5085       # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
    5086       # +DA*, +DD*           enable 64-bit mode for the HP compiler
    5087       # -q*                  compiler args for the IBM compiler
    5088       # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
    5089       # -F/path              path to uninstalled frameworks, gcc on darwin
    5090       # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
    5091       # @file                GCC response files
    5092       # -tp=*                Portland pgcc target processor selection
     4757      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
     4758      # -r[0-9][0-9]* specifies the processor on the SGI compiler
     4759      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
     4760      # +DA*, +DD* enable 64-bit mode on the HP compiler
     4761      # -q* pass through compiler args for the IBM compiler
     4762      # -m*, -t[45]*, -txscale* pass through architecture-specific
     4763      # compiler args for GCC
     4764      # -F/path gives path to uninstalled frameworks, gcc on darwin
     4765      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
     4766      # @file GCC response files
    50934767      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
    5094       -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
     4768      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
    50954769        func_quote_for_eval "$arg"
    50964770        arg="$func_quote_for_eval_result"
     
    52524926    if test -n "$shlibpath_var"; then
    52534927      # get the directories listed in $shlibpath_var
    5254       eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
     4928      eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
    52554929    else
    52564930      shlib_search_path=
     
    53605034        dlopen) libs="$dlfiles" ;;
    53615035        dlpreopen) libs="$dlprefiles" ;;
    5362         link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
     5036        link)
     5037          libs="$deplibs %DEPLIBS%"
     5038          test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
     5039          ;;
    53635040        esac
    53645041      fi
     
    53755052          # has declared as weak libs
    53765053          for deplib in $dependency_libs; do
    5377             func_basename "$deplib"
    5378             deplib_base=$func_basename_result
     5054            deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
    53795055            case " $weak_libs " in
    53805056            *" $deplib_base "*) ;;
     
    55555231                  set dummy $deplibs_check_method; shift
    55565232                  match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
    5557                   if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
     5233                  if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
    55585234                    | $EGREP "$match_pattern_regex" > /dev/null; then
    55595235                    valid_a_lib=yes
     
    55655241              esac
    55665242              if test "$valid_a_lib" != yes; then
    5567                 echo
     5243                $ECHO
    55685244                $ECHO "*** Warning: Trying to link with static lib archive $deplib."
    5569                 echo "*** I have the capability to make that library automatically link in when"
    5570                 echo "*** you link to this library.  But I can only do this if you have a"
    5571                 echo "*** shared version of the library, which you do not appear to have"
    5572                 echo "*** because the file extensions .$libext of this argument makes me believe"
    5573                 echo "*** that it is just a static archive that I should not use here."
     5245                $ECHO "*** I have the capability to make that library automatically link in when"
     5246                $ECHO "*** you link to this library.  But I can only do this if you have a"
     5247                $ECHO "*** shared version of the library, which you do not appear to have"
     5248                $ECHO "*** because the file extensions .$libext of this argument makes me believe"
     5249                $ECHO "*** that it is just a static archive that I should not use here."
    55745250              else
    5575                 echo
     5251                $ECHO
    55765252                $ECHO "*** Warning: Linking the shared library $output against the"
    55775253                $ECHO "*** static library $deplib is not portable!"
     
    56465322        # Convert "-framework foo" to "foo.ltframework"
    56475323        if test -n "$inherited_linker_flags"; then
    5648           tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
     5324          tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
    56495325          for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
    56505326            case " $new_inherited_linker_flags " in
     
    56545330          done
    56555331        fi
    5656         dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     5332        dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    56575333        if test "$linkmode,$pass" = "lib,link" ||
    56585334           test "$linkmode,$pass" = "prog,scan" ||
     
    56725348            convenience="$convenience $ladir/$objdir/$old_library"
    56735349            old_convenience="$old_convenience $ladir/$objdir/$old_library"
     5350            tmp_libs=
     5351            for deplib in $dependency_libs; do
     5352              deplibs="$deplib $deplibs"
     5353              if $opt_duplicate_deps ; then
     5354                case "$tmp_libs " in
     5355                *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
     5356                esac
     5357              fi
     5358              tmp_libs="$tmp_libs $deplib"
     5359            done
    56745360          elif test "$linkmode" != prog && test "$linkmode" != lib; then
    56755361            func_fatal_error "\`$lib' is not a convenience library"
    56765362          fi
    5677           tmp_libs=
    5678           for deplib in $dependency_libs; do
    5679             deplibs="$deplib $deplibs"
    5680             if $opt_duplicate_deps ; then
    5681               case "$tmp_libs " in
    5682               *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
    5683               esac
    5684             fi
    5685             tmp_libs="$tmp_libs $deplib"
    5686           done
    56875363          continue
    56885364        fi # $pass = conv
     
    59085584          done
    59095585          if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
    5910             echo
     5586            $ECHO
    59115587            if test "$linkmode" = prog; then
    59125588              $ECHO "*** Warning: Linking the executable $output against the loadable module"
     
    60115687                        $ECHO "*** Warning: lib $linklib is a module, not a shared library"
    60125688                        if test -z "$old_library" ; then
    6013                           echo
    6014                           echo "*** And there doesn't seem to be a static archive available"
    6015                           echo "*** The link will probably fail, sorry"
     5689                          $ECHO
     5690                          $ECHO "*** And there doesn't seem to be a static archive available"
     5691                          $ECHO "*** The link will probably fail, sorry"
    60165692                        else
    60175693                          add="$dir/$old_library"
     
    61535829            # Just print a warning and add the library to dependency_libs so
    61545830            # that the program can be linked against the static library.
    6155             echo
     5831            $ECHO
    61565832            $ECHO "*** Warning: This system can not link to static lib archive $lib."
    6157             echo "*** I have the capability to make that library automatically link in when"
    6158             echo "*** you link to this library.  But I can only do this if you have a"
    6159             echo "*** shared version of the library, which you do not appear to have."
     5833            $ECHO "*** I have the capability to make that library automatically link in when"
     5834            $ECHO "*** you link to this library.  But I can only do this if you have a"
     5835            $ECHO "*** shared version of the library, which you do not appear to have."
    61605836            if test "$module" = yes; then
    6161               echo "*** But as you try to build a module library, libtool will still create "
    6162               echo "*** a static module, that should work as long as the dlopening application"
    6163               echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
     5837              $ECHO "*** But as you try to build a module library, libtool will still create "
     5838              $ECHO "*** a static module, that should work as long as the dlopening application"
     5839              $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
    61645840              if test -z "$global_symbol_pipe"; then
    6165                 echo
    6166                 echo "*** However, this would only work if libtool was able to extract symbol"
    6167                 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
    6168                 echo "*** not find such a program.  So, this module is probably useless."
    6169                 echo "*** \`nm' from GNU binutils and a full rebuild may help."
     5841                $ECHO
     5842                $ECHO "*** However, this would only work if libtool was able to extract symbol"
     5843                $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
     5844                $ECHO "*** not find such a program.  So, this module is probably useless."
     5845                $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
    61705846              fi
    61715847              if test "$build_old_libs" = no; then
     
    62875963          finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
    62885964        else
    6289           compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     5965          compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    62905966        fi
    62915967      fi
     
    64556131          func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
    64566132        else
    6457           echo
     6133          $ECHO
    64586134          $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
    64596135          $ECHO "*** objects $objs is not portable!"
     
    65236199            revision="$number_revision"
    65246200            ;;
    6525           freebsd-aout|freebsd-elf|qnx|sunos)
     6201          freebsd-aout|freebsd-elf|sunos)
    65266202            current="$number_major"
    65276203            revision="$number_minor"
     
    65346210            revision="$number_minor"
    65356211            lt_irix_increment=no
     6212            ;;
     6213          *)
     6214            func_fatal_configuration "$modename: unknown library version type \`$version_type'"
    65366215            ;;
    65376216          esac
     
    67576436
    67586437        # Transform .lo files to .o files.
    6759         oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
     6438        oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
    67606439      fi
    67616440
    67626441      # Eliminate all temporary directories.
    67636442      #for path in $notinst_path; do
    6764       # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
    6765       # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
    6766       # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
     6443      # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
     6444      # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
     6445      # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
    67676446      #done
    67686447
     
    68056484        if test -n "$rpath"; then
    68066485          case $host in
    6807           *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
     6486          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
    68086487            # these systems don't actually have a c library (as such)!
    68096488            ;;
     
    68906569                  else
    68916570                    droppeddeps=yes
    6892                     echo
     6571                    $ECHO
    68936572                    $ECHO "*** Warning: dynamic linker does not accept needed library $i."
    6894                     echo "*** I have the capability to make that library automatically link in when"
    6895                     echo "*** you link to this library.  But I can only do this if you have a"
    6896                     echo "*** shared version of the library, which I believe you do not have"
    6897                     echo "*** because a test_compile did reveal that the linker did not use it for"
    6898                     echo "*** its dynamic dependency list that programs get resolved with at runtime."
     6573                    $ECHO "*** I have the capability to make that library automatically link in when"
     6574                    $ECHO "*** you link to this library.  But I can only do this if you have a"
     6575                    $ECHO "*** shared version of the library, which I believe you do not have"
     6576                    $ECHO "*** because a test_compile did reveal that the linker did not use it for"
     6577                    $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
    68996578                  fi
    69006579                fi
     
    69336612                    else
    69346613                      droppeddeps=yes
    6935                       echo
     6614                      $ECHO
    69366615                      $ECHO "*** Warning: dynamic linker does not accept needed library $i."
    6937                       echo "*** I have the capability to make that library automatically link in when"
    6938                       echo "*** you link to this library.  But I can only do this if you have a"
    6939                       echo "*** shared version of the library, which you do not appear to have"
    6940                       echo "*** because a test_compile did reveal that the linker did not use this one"
    6941                       echo "*** as a dynamic dependency that programs can get resolved with at runtime."
     6616                      $ECHO "*** I have the capability to make that library automatically link in when"
     6617                      $ECHO "*** you link to this library.  But I can only do this if you have a"
     6618                      $ECHO "*** shared version of the library, which you do not appear to have"
     6619                      $ECHO "*** because a test_compile did reveal that the linker did not use this one"
     6620                      $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
    69426621                    fi
    69436622                  fi
    69446623                else
    69456624                  droppeddeps=yes
    6946                   echo
     6625                  $ECHO
    69476626                  $ECHO "*** Warning!  Library $i is needed by this library but I was not able to"
    6948                   echo "*** make it link in!  You will probably need to install it or some"
    6949                   echo "*** library that it depends on before this library will be fully"
    6950                   echo "*** functional.  Installing it before continuing would be even better."
     6627                  $ECHO "*** make it link in!  You will probably need to install it or some"
     6628                  $ECHO "*** library that it depends on before this library will be fully"
     6629                  $ECHO "*** functional.  Installing it before continuing would be even better."
    69516630                fi
    69526631                ;;
     
    69946673                        case $potliblink in
    69956674                        [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
    6996                         *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
     6675                        *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
    69976676                        esac
    69986677                      done
     
    70096688              if test -n "$a_deplib" ; then
    70106689                droppeddeps=yes
    7011                 echo
     6690                $ECHO
    70126691                $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
    7013                 echo "*** I have the capability to make that library automatically link in when"
    7014                 echo "*** you link to this library.  But I can only do this if you have a"
    7015                 echo "*** shared version of the library, which you do not appear to have"
    7016                 echo "*** because I did check the linker path looking for a file starting"
     6692                $ECHO "*** I have the capability to make that library automatically link in when"
     6693                $ECHO "*** you link to this library.  But I can only do this if you have a"
     6694                $ECHO "*** shared version of the library, which you do not appear to have"
     6695                $ECHO "*** because I did check the linker path looking for a file starting"
    70176696                if test -z "$potlib" ; then
    70186697                  $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
     
    70526731                  for potent_lib in $potential_libs; do
    70536732                    potlib="$potent_lib" # see symlink-check above in file_magic test
    7054                     if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
     6733                    if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
    70556734                       $EGREP "$match_pattern_regex" > /dev/null; then
    70566735                      newdeplibs="$newdeplibs $a_deplib"
     
    70636742              if test -n "$a_deplib" ; then
    70646743                droppeddeps=yes
    7065                 echo
     6744                $ECHO
    70666745                $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
    7067                 echo "*** I have the capability to make that library automatically link in when"
    7068                 echo "*** you link to this library.  But I can only do this if you have a"
    7069                 echo "*** shared version of the library, which you do not appear to have"
    7070                 echo "*** because I did check the linker path looking for a file starting"
     6746                $ECHO "*** I have the capability to make that library automatically link in when"
     6747                $ECHO "*** you link to this library.  But I can only do this if you have a"
     6748                $ECHO "*** shared version of the library, which you do not appear to have"
     6749                $ECHO "*** because I did check the linker path looking for a file starting"
    70716750                if test -z "$potlib" ; then
    70726751                  $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
     
    70866765        none | unknown | *)
    70876766          newdeplibs=""
    7088           tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
     6767          tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
     6768              -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
    70896769          if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    70906770            for i in $predeps $postdeps ; do
    70916771              # can't use Xsed below, because $i might contain '/'
    7092               tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
     6772              tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
    70936773            done
    70946774          fi
    7095           case $tmp_deplibs in
    7096           *[!\  \ ]*)
    7097             echo
     6775          if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[      ]//g' |
     6776             $GREP . >/dev/null; then
     6777            $ECHO
    70986778            if test "X$deplibs_check_method" = "Xnone"; then
    7099               echo "*** Warning: inter-library dependencies are not supported in this platform."
     6779              $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
    71006780            else
    7101               echo "*** Warning: inter-library dependencies are not known to be supported."
     6781              $ECHO "*** Warning: inter-library dependencies are not known to be supported."
    71026782            fi
    7103             echo "*** All declared inter-library dependencies are being dropped."
     6783            $ECHO "*** All declared inter-library dependencies are being dropped."
    71046784            droppeddeps=yes
    7105             ;;
    7106           esac
     6785          fi
    71076786          ;;
    71086787        esac
     
    71166795        *-*-rhapsody* | *-*-darwin1.[012])
    71176796          # On Rhapsody replace the C library with the System framework
    7118           newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
     6797          newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
    71196798          ;;
    71206799        esac
     
    71226801        if test "$droppeddeps" = yes; then
    71236802          if test "$module" = yes; then
    7124             echo
    7125             echo "*** Warning: libtool could not satisfy all declared inter-library"
     6803            $ECHO
     6804            $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
    71266805            $ECHO "*** dependencies of module $libname.  Therefore, libtool will create"
    7127             echo "*** a static module, that should work as long as the dlopening"
    7128             echo "*** application is linked with the -dlopen flag."
     6806            $ECHO "*** a static module, that should work as long as the dlopening"
     6807            $ECHO "*** application is linked with the -dlopen flag."
    71296808            if test -z "$global_symbol_pipe"; then
    7130               echo
    7131               echo "*** However, this would only work if libtool was able to extract symbol"
    7132               echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
    7133               echo "*** not find such a program.  So, this module is probably useless."
    7134               echo "*** \`nm' from GNU binutils and a full rebuild may help."
     6809              $ECHO
     6810              $ECHO "*** However, this would only work if libtool was able to extract symbol"
     6811              $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
     6812              $ECHO "*** not find such a program.  So, this module is probably useless."
     6813              $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
    71356814            fi
    71366815            if test "$build_old_libs" = no; then
     
    71426821            fi
    71436822          else
    7144             echo "*** The inter-library dependencies that have been dropped here will be"
    7145             echo "*** automatically added whenever a program is linked with this library"
    7146             echo "*** or is declared to -dlopen it."
     6823            $ECHO "*** The inter-library dependencies that have been dropped here will be"
     6824            $ECHO "*** automatically added whenever a program is linked with this library"
     6825            $ECHO "*** or is declared to -dlopen it."
    71476826
    71486827            if test "$allow_undefined" = no; then
    7149               echo
    7150               echo "*** Since this library must not contain undefined symbols,"
    7151               echo "*** because either the platform does not support them or"
    7152               echo "*** it was explicitly requested with -no-undefined,"
    7153               echo "*** libtool will only create a static version of it."
     6828              $ECHO
     6829              $ECHO "*** Since this library must not contain undefined symbols,"
     6830              $ECHO "*** because either the platform does not support them or"
     6831              $ECHO "*** it was explicitly requested with -no-undefined,"
     6832              $ECHO "*** libtool will only create a static version of it."
    71546833              if test "$build_old_libs" = no; then
    71556834                oldlibs="$output_objdir/$libname.$libext"
     
    71686847      case $host in
    71696848        *-*-darwin*)
    7170           newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    7171           new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    7172           deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     6849          newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     6850          new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     6851          deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    71736852          ;;
    71746853      esac
     
    72926971
    72936972        # Use standard objects if they are pic
    7294         test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
     6973        test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
    72956974        test "X$libobjs" = "X " && libobjs=
    72966975
     
    73587037          tmp_export_symbols="$export_symbols"
    73597038          test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
    7360           $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
     7039          $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
    73617040        fi
    73627041
     
    74597138          fi
    74607139          save_output=$output
    7461           func_basename "$output"
    7462           output_la=$func_basename_result
     7140          output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
    74637141
    74647142          # Clear the reloadable object creation command queue and
     
    74737151            output=${output_objdir}/${output_la}.lnkscript
    74747152            func_verbose "creating GNU ld script: $output"
    7475             echo 'INPUT (' > $output
     7153            $ECHO 'INPUT (' > $output
    74767154            for obj in $save_libobjs
    74777155            do
    74787156              $ECHO "$obj" >> $output
    74797157            done
    7480             echo ')' >> $output
     7158            $ECHO ')' >> $output
    74817159            delfiles="$delfiles $output"
    74827160          elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
     
    75207198                  if test "$k" -eq 1 ; then
    75217199                    # The first file doesn't have a previous command to add.
    7522                     reload_objs=$objlist
    7523                     eval concat_cmds=\"$reload_cmds\"
     7200                    eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
    75247201                  else
    75257202                    # All subsequent reloadable object files will link in
    75267203                    # the last one created.
    7527                     reload_objs="$objlist $last_robj"
    7528                     eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
     7204                    eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
    75297205                  fi
    75307206                  last_robj=$output_objdir/$output_la-${k}.$objext
     
    75327208                  k=$func_arith_result
    75337209                  output=$output_objdir/$output_la-${k}.$objext
    7534                   objlist=" $obj"
     7210                  objlist=$obj
    75357211                  func_len " $last_robj"
    75367212                  func_arith $len0 + $func_len_result
     
    75427218              # files will link in the last one created.
    75437219              test -z "$concat_cmds" || concat_cmds=$concat_cmds~
    7544               reload_objs="$objlist $last_robj"
    7545               eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
     7220              eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
    75467221              if test -n "$last_robj"; then
    75477222                eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
     
    76027277              tmp_export_symbols="$export_symbols"
    76037278              test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
    7604               $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
     7279              $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
    76057280            fi
    76067281
     
    77677442        if test -n "$whole_archive_flag_spec"; then
    77687443          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
    7769           reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
     7444          reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
    77707445        else
    77717446          gentop="$output_objdir/${obj}x"
     
    77787453
    77797454      # Create the old-style object.
    7780       reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
     7455      reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
    77817456
    77827457      output="$obj"
     
    78387513      *-*-rhapsody* | *-*-darwin1.[012])
    78397514        # On Rhapsody replace the C library is the System framework
    7840         compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
    7841         finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
     7515        compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
     7516        finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
    78427517        ;;
    78437518      esac
     
    78567531        fi
    78577532        # Time to change all our "foo.ltframework" stuff back to "-framework foo"
    7858         compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
    7859         finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
     7533        compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
     7534        finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
    78607535        ;;
    78617536      esac
     
    79947669      if test -n "$libobjs" && test "$build_old_libs" = yes; then
    79957670        # Transform all the library objects into standard objects.
    7996         compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
    7997         finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
     7671        compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
     7672        finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
    79987673      fi
    79997674
     
    80077682      wrappers_required=yes
    80087683      case $host in
    8009       *cegcc* | *mingw32ce*)
    8010         # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
    8011         wrappers_required=no
    8012         ;;
    80137684      *cygwin* | *mingw* )
    80147685        if test "$build_libtool_libs" != yes; then
    80157686          wrappers_required=no
    80167687        fi
     7688        ;;
     7689      *cegcc)
     7690        # Disable wrappers for cegcc, we are cross compiling anyway.
     7691        wrappers_required=no
    80177692        ;;
    80187693      *)
     
    80247699      if test "$wrappers_required" = no; then
    80257700        # Replace the output file specification.
    8026         compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
     7701        compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
    80277702        link_command="$compile_command$compile_rpath"
    80287703
     
    80717746        link_command="$compile_var$compile_command$compile_rpath"
    80727747        # Replace the output file specification.
    8073         link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
     7748        link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
    80747749        # Delete the old output file.
    80757750        $opt_dry_run || $RM $output
     
    80907765          link_command="$finalize_var$compile_command$finalize_rpath"
    80917766          if test "$fast_install" = yes; then
    8092             relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
     7767            relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
    80937768          else
    80947769            # fast_install is set to needless
     
    81027777
    81037778      # Replace the output file specification.
    8104       link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
     7779      link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
    81057780
    81067781      # Delete the old output files.
     
    81267801        done
    81277802        relink_command="(cd `pwd`; $relink_command)"
    8128         relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
     7803        relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
     7804      fi
     7805
     7806      # Quote $ECHO for shipping.
     7807      if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
     7808        case $progpath in
     7809        [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
     7810        *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
     7811        esac
     7812        qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
     7813      else
     7814        qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
    81297815      fi
    81307816
     
    82477933          :
    82487934        else
    8249           echo "copying selected object files to avoid basename conflicts..."
     7935          $ECHO "copying selected object files to avoid basename conflicts..."
    82507936          gentop="$output_objdir/${outputname}x"
    82517937          generated="$generated $gentop"
     
    83588044      # Quote the link command for shipping.
    83598045      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
    8360       relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
     8046      relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
    83618047      if test "$hardcode_automatic" = yes ; then
    83628048        relink_command=
     
    84438129          $RM $output
    84448130          # place dlname in correct position for cygwin
    8445           # In fact, it would be nice if we could use this code for all target
    8446           # systems that can't hard-code library paths into their executables
    8447           # and that have no shared library path variable independent of PATH,
    8448           # but it turns out we can't easily determine that from inspecting
    8449           # libtool variables, so we have to hard-code the OSs to which it
    8450           # applies here; at the moment, that means platforms that use the PE
    8451           # object format with DLL files.  See the long comment at the top of
    8452           # tests/bindir.at for full details.
    84538131          tdlname=$dlname
    84548132          case $host,$output,$installed,$module,$dlname in
    8455             *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
    8456               # If a -bindir argument was supplied, place the dll there.
    8457               if test "x$bindir" != x ;
    8458               then
    8459                 func_relative_path "$install_libdir" "$bindir"
    8460                 tdlname=$func_relative_path_result$dlname
    8461               else
    8462                 # Otherwise fall back on heuristic.
    8463                 tdlname=../bin/$dlname
    8464               fi
    8465               ;;
     8133            *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
    84668134          esac
    84678135          $ECHO > $output "\
  • configure

    r2b1118c r619c6bf  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.66 for mod_gnutls 0.5.10.
     3# Generated by GNU Autoconf 2.65 for mod_gnutls 0.5.9.
    44#
    55#
    66# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    8 # Foundation, Inc.
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
     8# Inc.
    99#
    1010#
     
    172172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    173173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    174 test \$(( 1 + 1 )) = 2 || exit 1
    175 
    176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
    177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
    180     PATH=/empty FPATH=/empty; export PATH FPATH
    181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
    182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
     174test \$(( 1 + 1 )) = 2 || exit 1"
    183175  if (eval "$as_required") 2>/dev/null; then :
    184176  as_have_required=yes
     
    325317    done
    326318    test -z "$as_dirs" || eval "mkdir $as_dirs"
    327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    328320
    329321
     
    365357
    366358
    367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    368 # ----------------------------------------
     359# as_fn_error ERROR [LINENO LOG_FD]
     360# ---------------------------------
    369361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    370362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    371 # script with STATUS, using 1 if that was 0.
     363# script with status $?, using 1 if that was 0.
    372364as_fn_error ()
    373365{
    374   as_status=$1; test $as_status -eq 0 && as_status=1
    375   if test "$4"; then
    376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     366  as_status=$?; test $as_status -eq 0 && as_status=1
     367  if test "$3"; then
     368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    378370  fi
    379   $as_echo "$as_me: error: $2" >&2
     371  $as_echo "$as_me: error: $1" >&2
    380372  as_fn_exit $as_status
    381373} # as_fn_error
     
    534526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    535527
     528
     529
     530# Check that we are running under the correct shell.
    536531SHELL=${CONFIG_SHELL-/bin/sh}
     532
     533case X$lt_ECHO in
     534X*--fallback-echo)
     535  # Remove one level of quotation (which was required for Make).
     536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
     537  ;;
     538esac
     539
     540ECHO=${lt_ECHO-echo}
     541if test "X$1" = X--no-reexec; then
     542  # Discard the --no-reexec flag, and continue.
     543  shift
     544elif test "X$1" = X--fallback-echo; then
     545  # Avoid inline document here, it may be left over
     546  :
     547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
     548  # Yippee, $ECHO works!
     549  :
     550else
     551  # Restart under the correct shell.
     552  exec $SHELL "$0" --no-reexec ${1+"$@"}
     553fi
     554
     555if test "X$1" = X--fallback-echo; then
     556  # used as fallback echo
     557  shift
     558  cat <<_LT_EOF
     559$*
     560_LT_EOF
     561  exit 0
     562fi
     563
     564# The HP-UX ksh and POSIX shell print the target directory to stdout
     565# if CDPATH is set.
     566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
     567
     568if test -z "$lt_ECHO"; then
     569  if test "X${echo_test_string+set}" != Xset; then
     570    # find a string as large as possible, as long as the shell can cope with it
     571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
     572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
     573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
     574         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
     575      then
     576        break
     577      fi
     578    done
     579  fi
     580
     581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
     582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
     583     test "X$echo_testing_string" = "X$echo_test_string"; then
     584    :
     585  else
     586    # The Solaris, AIX, and Digital Unix default echo programs unquote
     587    # backslashes.  This makes it impossible to quote backslashes using
     588    #   echo "$something" | sed 's/\\/\\\\/g'
     589    #
     590    # So, first we look for a working echo in the user's PATH.
     591
     592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     593    for dir in $PATH /usr/ucb; do
     594      IFS="$lt_save_ifs"
     595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
     596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
     598         test "X$echo_testing_string" = "X$echo_test_string"; then
     599        ECHO="$dir/echo"
     600        break
     601      fi
     602    done
     603    IFS="$lt_save_ifs"
     604
     605    if test "X$ECHO" = Xecho; then
     606      # We didn't find a better echo, so look for alternatives.
     607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
     608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
     609         test "X$echo_testing_string" = "X$echo_test_string"; then
     610        # This shell has a builtin print -r that does the trick.
     611        ECHO='print -r'
     612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
     613           test "X$CONFIG_SHELL" != X/bin/ksh; then
     614        # If we have ksh, try running configure again with it.
     615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
     616        export ORIGINAL_CONFIG_SHELL
     617        CONFIG_SHELL=/bin/ksh
     618        export CONFIG_SHELL
     619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
     620      else
     621        # Try using printf.
     622        ECHO='printf %s\n'
     623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
     624           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
     625           test "X$echo_testing_string" = "X$echo_test_string"; then
     626          # Cool, printf works
     627          :
     628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     629             test "X$echo_testing_string" = 'X\t' &&
     630             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     631             test "X$echo_testing_string" = "X$echo_test_string"; then
     632          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
     633          export CONFIG_SHELL
     634          SHELL="$CONFIG_SHELL"
     635          export SHELL
     636          ECHO="$CONFIG_SHELL $0 --fallback-echo"
     637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
     638             test "X$echo_testing_string" = 'X\t' &&
     639             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
     640             test "X$echo_testing_string" = "X$echo_test_string"; then
     641          ECHO="$CONFIG_SHELL $0 --fallback-echo"
     642        else
     643          # maybe with a smaller string...
     644          prev=:
     645
     646          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
     647            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
     648            then
     649              break
     650            fi
     651            prev="$cmd"
     652          done
     653
     654          if test "$prev" != 'sed 50q "$0"'; then
     655            echo_test_string=`eval $prev`
     656            export echo_test_string
     657            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
     658          else
     659            # Oops.  We lost completely, so just stick with echo.
     660            ECHO=echo
     661          fi
     662        fi
     663      fi
     664    fi
     665  fi
     666fi
     667
     668# Copy echo and quote the copy suitably for passing to libtool from
     669# the Makefile, instead of quoting the original, which is used later.
     670lt_ECHO=$ECHO
     671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
     672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
     673fi
     674
     675
    537676
    538677
     
    541680
    542681# Name of the host.
    543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
     682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    544683# so uname gets run too.
    545684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    560699PACKAGE_NAME='mod_gnutls'
    561700PACKAGE_TARNAME='mod_gnutls'
    562 PACKAGE_VERSION='0.5.10'
    563 PACKAGE_STRING='mod_gnutls 0.5.10'
     701PACKAGE_VERSION='0.5.9'
     702PACKAGE_STRING='mod_gnutls 0.5.9'
    564703PACKAGE_BUGREPORT=''
    565704PACKAGE_URL=''
     
    648787NMEDIT
    649788DSYMUTIL
     789lt_ECHO
    650790RANLIB
    651791AR
     
    8921032    # Reject names that are not valid shell variable names.
    8931033    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    894       as_fn_error $? "invalid feature name: $ac_useropt"
     1034      as_fn_error "invalid feature name: $ac_useropt"
    8951035    ac_useropt_orig=$ac_useropt
    8961036    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    9181058    # Reject names that are not valid shell variable names.
    9191059    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    920       as_fn_error $? "invalid feature name: $ac_useropt"
     1060      as_fn_error "invalid feature name: $ac_useropt"
    9211061    ac_useropt_orig=$ac_useropt
    9221062    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11221262    # Reject names that are not valid shell variable names.
    11231263    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1124       as_fn_error $? "invalid package name: $ac_useropt"
     1264      as_fn_error "invalid package name: $ac_useropt"
    11251265    ac_useropt_orig=$ac_useropt
    11261266    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11381278    # Reject names that are not valid shell variable names.
    11391279    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1140       as_fn_error $? "invalid package name: $ac_useropt"
     1280      as_fn_error "invalid package name: $ac_useropt"
    11411281    ac_useropt_orig=$ac_useropt
    11421282    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    11681308    x_libraries=$ac_optarg ;;
    11691309
    1170   -*) as_fn_error $? "unrecognized option: \`$ac_option'
    1171 Try \`$0 --help' for more information"
     1310  -*) as_fn_error "unrecognized option: \`$ac_option'
     1311Try \`$0 --help' for more information."
    11721312    ;;
    11731313
     
    11771317    case $ac_envvar in #(
    11781318      '' | [0-9]* | *[!_$as_cr_alnum]* )
    1179       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1319      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    11801320    esac
    11811321    eval $ac_envvar=\$ac_optarg
     
    11951335if test -n "$ac_prev"; then
    11961336  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1197   as_fn_error $? "missing argument to $ac_option"
     1337  as_fn_error "missing argument to $ac_option"
    11981338fi
    11991339
     
    12011341  case $enable_option_checking in
    12021342    no) ;;
    1203     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1343    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    12041344    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    12051345  esac
     
    12241364    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    12251365  esac
    1226   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
     1366  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
    12271367done
    12281368
     
    12381378  if test "x$build_alias" = x; then
    12391379    cross_compiling=maybe
    1240     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    1241     If a cross compiler is detected then cross compile mode will be used" >&2
     1380    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     1381    If a cross compiler is detected then cross compile mode will be used." >&2
    12421382  elif test "x$build_alias" != "x$host_alias"; then
    12431383    cross_compiling=yes
     
    12541394ac_ls_di=`ls -di .` &&
    12551395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1256   as_fn_error $? "working directory cannot be determined"
     1396  as_fn_error "working directory cannot be determined"
    12571397test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1258   as_fn_error $? "pwd does not report name of working directory"
     1398  as_fn_error "pwd does not report name of working directory"
    12591399
    12601400
     
    12951435if test ! -r "$srcdir/$ac_unique_file"; then
    12961436  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1297   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1437  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
    12981438fi
    12991439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    13001440ac_abs_confdir=`(
    1301         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1441        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
    13021442        pwd)`
    13031443# When building in place, set srcdir=.
     
    13251465  # This message is too long to be a string in the A/UX 3.1 sh.
    13261466  cat <<_ACEOF
    1327 \`configure' configures mod_gnutls 0.5.10 to adapt to many kinds of systems.
     1467\`configure' configures mod_gnutls 0.5.9 to adapt to many kinds of systems.
    13281468
    13291469Usage: $0 [OPTION]... [VAR=VALUE]...
     
    13391479      --help=recursive    display the short help of all the included packages
    13401480  -V, --version           display version information and exit
    1341   -q, --quiet, --silent   do not print \`checking ...' messages
     1481  -q, --quiet, --silent   do not print \`checking...' messages
    13421482      --cache-file=FILE   cache test results in FILE [disabled]
    13431483  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    13961536if test -n "$ac_init_help"; then
    13971537  case $ac_init_help in
    1398      short | recursive ) echo "Configuration of mod_gnutls 0.5.10:";;
     1538     short | recursive ) echo "Configuration of mod_gnutls 0.5.9:";;
    13991539   esac
    14001540  cat <<\_ACEOF
     
    15091649if $ac_init_version; then
    15101650  cat <<\_ACEOF
    1511 mod_gnutls configure 0.5.10
    1512 generated by GNU Autoconf 2.66
    1513 
    1514 Copyright (C) 2010 Free Software Foundation, Inc.
     1651mod_gnutls configure 0.5.9
     1652generated by GNU Autoconf 2.65
     1653
     1654Copyright (C) 2009 Free Software Foundation, Inc.
    15151655This configure script is free software; the Free Software Foundation
    15161656gives unlimited permission to copy, distribute and modify it.
     
    16161756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    16171757$as_echo_n "checking for $2... " >&6; }
    1618 if eval "test \"\${$3+set}\"" = set; then :
     1758if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    16191759  $as_echo_n "(cached) " >&6
    16201760else
     
    17251865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    17261866$as_echo_n "checking for $2... " >&6; }
    1727 if eval "test \"\${$3+set}\"" = set; then :
     1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    17281868  $as_echo_n "(cached) " >&6
    17291869else
     
    17841924} # ac_fn_c_check_func
    17851925
    1786 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
    1787 # ---------------------------------------------
    1788 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
    1789 # accordingly.
     1926# ac_fn_c_check_decl LINENO SYMBOL VAR
     1927# ------------------------------------
     1928# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
    17901929ac_fn_c_check_decl ()
    17911930{
    17921931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1793   as_decl_name=`echo $2|sed 's/ *(.*//'`
    1794   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
    1795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
    1796 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
    1797 if eval "test \"\${$3+set}\"" = set; then :
     1932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
     1933$as_echo_n "checking whether $2 is declared... " >&6; }
     1934if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    17981935  $as_echo_n "(cached) " >&6
    17991936else
     
    18041941main ()
    18051942{
    1806 #ifndef $as_decl_name
    1807 #ifdef __cplusplus
    1808   (void) $as_decl_use;
    1809 #else
    1810   (void) $as_decl_name;
    1811 #endif
     1943#ifndef $2
     1944  (void) $2;
    18121945#endif
    18131946
     
    18331966running configure, to aid debugging if configure makes a mistake.
    18341967
    1835 It was created by mod_gnutls $as_me 0.5.10, which was
    1836 generated by GNU Autoconf 2.66.  Invocation command line was
     1968It was created by mod_gnutls $as_me 0.5.9, which was
     1969generated by GNU Autoconf 2.65.  Invocation command line was
    18371970
    18381971  $ $0 $@
     
    19442077    echo
    19452078
    1946     $as_echo "## ---------------- ##
     2079    cat <<\_ASBOX
     2080## ---------------- ##
    19472081## Cache variables. ##
    1948 ## ---------------- ##"
     2082## ---------------- ##
     2083_ASBOX
    19492084    echo
    19502085    # The following way of writing the cache mishandles newlines in values,
     
    19802115    echo
    19812116
    1982     $as_echo "## ----------------- ##
     2117    cat <<\_ASBOX
     2118## ----------------- ##
    19832119## Output variables. ##
    1984 ## ----------------- ##"
     2120## ----------------- ##
     2121_ASBOX
    19852122    echo
    19862123    for ac_var in $ac_subst_vars
     
    19952132
    19962133    if test -n "$ac_subst_files"; then
    1997       $as_echo "## ------------------- ##
     2134      cat <<\_ASBOX
     2135## ------------------- ##
    19982136## File substitutions. ##
    1999 ## ------------------- ##"
     2137## ------------------- ##
     2138_ASBOX
    20002139      echo
    20012140      for ac_var in $ac_subst_files
     
    20112150
    20122151    if test -s confdefs.h; then
    2013       $as_echo "## ----------- ##
     2152      cat <<\_ASBOX
     2153## ----------- ##
    20142154## confdefs.h. ##
    2015 ## ----------- ##"
     2155## ----------- ##
     2156_ASBOX
    20162157      echo
    20172158      cat confdefs.h
     
    20682209ac_site_file2=NONE
    20692210if test -n "$CONFIG_SITE"; then
    2070   # We do not want a PATH search for config.site.
    2071   case $CONFIG_SITE in #((
    2072     -*)  ac_site_file1=./$CONFIG_SITE;;
    2073     */*) ac_site_file1=$CONFIG_SITE;;
    2074     *)   ac_site_file1=./$CONFIG_SITE;;
    2075   esac
     2211  ac_site_file1=$CONFIG_SITE
    20762212elif test "x$prefix" != xNONE; then
    20772213  ac_site_file1=$prefix/share/config.site
     
    20882224$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    20892225    sed 's/^/| /' "$ac_site_file" >&5
    2090     . "$ac_site_file" \
    2091       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2093 as_fn_error $? "failed to load site script $ac_site_file
    2094 See \`config.log' for more details" "$LINENO" 5; }
     2226    . "$ac_site_file"
    20952227  fi
    20962228done
     
    21682300  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    21692301$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    2170   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2302  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    21712303fi
    21722304## -------------------- ##
     
    21992331  chmod +x config.nice
    22002332
    2201 MOD_GNUTLS_VERSION=0.5.10
     2333MOD_GNUTLS_VERSION=0.5.9
    22022334
    22032335
    22042336ac_aux_dir=
    22052337for ac_dir in config "$srcdir"/config; do
    2206   if test -f "$ac_dir/install-sh"; then
    2207     ac_aux_dir=$ac_dir
    2208     ac_install_sh="$ac_aux_dir/install-sh -c"
    2209     break
    2210   elif test -f "$ac_dir/install.sh"; then
    2211     ac_aux_dir=$ac_dir
    2212     ac_install_sh="$ac_aux_dir/install.sh -c"
    2213     break
    2214   elif test -f "$ac_dir/shtool"; then
    2215     ac_aux_dir=$ac_dir
    2216     ac_install_sh="$ac_aux_dir/shtool install -c"
    2217     break
    2218   fi
     2338  for ac_t in install-sh install.sh shtool; do
     2339    if test -f "$ac_dir/$ac_t"; then
     2340      ac_aux_dir=$ac_dir
     2341      ac_install_sh="$ac_aux_dir/$ac_t -c"
     2342      break 2
     2343    fi
     2344  done
    22192345done
    22202346if test -z "$ac_aux_dir"; then
    2221   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
     2347  as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
    22222348fi
    22232349
     
    22692395# Make sure we can run config.sub.
    22702396$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    2271   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2397  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    22722398
    22732399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     
    22802406  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    22812407test "x$ac_build_alias" = x &&
    2282   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2408  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
    22832409ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    2284   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2410  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    22852411
    22862412fi
     
    22892415case $ac_cv_build in
    22902416*-*-*) ;;
    2291 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
     2417*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
    22922418esac
    22932419build=$ac_cv_build
     
    23142440else
    23152441  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    2316     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2442    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    23172443fi
    23182444
     
    23222448case $ac_cv_host in
    23232449*-*-*) ;;
    2324 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
     2450*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
    23252451esac
    23262452host=$ac_cv_host
     
    23472473else
    23482474  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    2349     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     2475    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
    23502476fi
    23512477
     
    23552481case $ac_cv_target in
    23562482*-*-*) ;;
    2357 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
     2483*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
    23582484esac
    23592485target=$ac_cv_target
     
    24832609case `pwd` in
    24842610  *[\\\"\#\$\&\'\`$am_lf]*)
    2485     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
     2611    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
    24862612esac
    24872613case $srcdir in
    24882614  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
    2489     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
     2615    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
    24902616esac
    24912617
     
    25092635      # broken ls alias from the environment.  This has actually
    25102636      # happened.  Such a system could not be considered "sane".
    2511       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
     2637      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
    25122638alias in your environment" "$LINENO" 5
    25132639   fi
     
    25192645   :
    25202646else
    2521    as_fn_error $? "newly created file is older than distributed files!
     2647   as_fn_error "newly created file is older than distributed files!
    25222648Check your system clock" "$LINENO" 5
    25232649fi
     
    27572883set x ${MAKE-make}
    27582884ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    2759 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     2885if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
    27602886  $as_echo_n "(cached) " >&6
    27612887else
     
    27652891        @echo '@@@%%%=$(MAKE)=@@@%%%'
    27662892_ACEOF
    2767 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     2893# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    27682894case `${MAKE-make} -f conftest.make 2>/dev/null` in
    27692895  *@@@%%%=?*=@@@%%%*)
     
    27992925  # test to see if srcdir already configured
    28002926  if test -f $srcdir/config.status; then
    2801     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
     2927    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
    28022928  fi
    28032929fi
     
    28152941# Define the identity of the package.
    28162942 PACKAGE=mod_gnutls
    2817  VERSION=0.5.10
     2943 VERSION=0.5.9
    28182944
    28192945
     
    31603286test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    31613287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3162 as_fn_error $? "no acceptable C compiler found in \$PATH
    3163 See \`config.log' for more details" "$LINENO" 5; }
     3288as_fn_error "no acceptable C compiler found in \$PATH
     3289See \`config.log' for more details." "$LINENO" 5; }
    31643290
    31653291# Provide some information about the compiler.
     
    32753401{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    32763402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3277 as_fn_error 77 "C compiler cannot create executables
    3278 See \`config.log' for more details" "$LINENO" 5; }
     3403{ as_fn_set_status 77
     3404as_fn_error "C compiler cannot create executables
     3405See \`config.log' for more details." "$LINENO" 5; }; }
    32793406else
    32803407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     
    33183445  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    33193446$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3320 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    3321 See \`config.log' for more details" "$LINENO" 5; }
     3447as_fn_error "cannot compute suffix of executables: cannot compile and link
     3448See \`config.log' for more details." "$LINENO" 5; }
    33223449fi
    33233450rm -f conftest conftest$ac_cv_exeext
     
    33763503        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    33773504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3378 as_fn_error $? "cannot run C compiled programs.
     3505as_fn_error "cannot run C compiled programs.
    33793506If you meant to cross compile, use \`--host'.
    3380 See \`config.log' for more details" "$LINENO" 5; }
     3507See \`config.log' for more details." "$LINENO" 5; }
    33813508    fi
    33823509  fi
     
    34293556{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    34303557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3431 as_fn_error $? "cannot compute suffix of object files: cannot compile
    3432 See \`config.log' for more details" "$LINENO" 5; }
     3558as_fn_error "cannot compute suffix of object files: cannot compile
     3559See \`config.log' for more details." "$LINENO" 5; }
    34333560fi
    34343561rm -f conftest.$ac_cv_objext conftest.$ac_ext
     
    38964023IFS=$as_save_IFS
    38974024  if test -z "$ac_cv_path_SED"; then
    3898     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
     4025    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
    38994026  fi
    39004027else
     
    39724099IFS=$as_save_IFS
    39734100  if test -z "$ac_cv_path_GREP"; then
    3974     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4101    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    39754102  fi
    39764103else
     
    40384165IFS=$as_save_IFS
    40394166  if test -z "$ac_cv_path_EGREP"; then
    4040     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4167    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    40414168  fi
    40424169else
     
    41054232IFS=$as_save_IFS
    41064233  if test -z "$ac_cv_path_FGREP"; then
    4107     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4234    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    41084235  fi
    41094236else
     
    41224249
    41234250
    4124 
    4125 
    4126 
    4127 
    4128 
    4129 
    4130 
    4131 
    4132 
    4133 
    4134 
    4135 
    4136 
    4137 
    4138 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
    4139 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
    4140 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
    4141 
    4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
    4143 $as_echo_n "checking how to print strings... " >&6; }
    4144 # Test print first, because it will be a builtin if present.
    4145 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
    4146    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
    4147   ECHO='print -r --'
    4148 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
    4149   ECHO='printf %s\n'
    4150 else
    4151   # Use this function as a fallback that always works.
    4152   func_fallback_echo ()
    4153   {
    4154     eval 'cat <<_LTECHO_EOF
    4155 $1
    4156 _LTECHO_EOF'
    4157   }
    4158   ECHO='func_fallback_echo'
    4159 fi
    4160 
    4161 # func_echo_all arg...
    4162 # Invoke $ECHO with all args, space-separated.
    4163 func_echo_all ()
    4164 {
    4165     $ECHO ""
    4166 }
    4167 
    4168 case "$ECHO" in
    4169   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
    4170 $as_echo "printf" >&6; } ;;
    4171   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
    4172 $as_echo "print -r" >&6; } ;;
    4173   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
    4174 $as_echo "cat" >&6; } ;;
    4175 esac
    41764251
    41774252
     
    42734348$as_echo "no" >&6; }
    42744349fi
    4275 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
     4350test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
    42764351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
    42774352$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
     
    43104385
    43114386
    4312 macro_version='2.2.10'
    4313 macro_revision='1.3175'
     4387macro_version='2.2.6b'
     4388macro_revision='1.3017'
    43144389
    43154390
     
    43264401
    43274402ltmain="$ac_aux_dir/ltmain.sh"
    4328 
    4329 # Backslashify metacharacters that are still active within
    4330 # double-quoted strings.
    4331 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
    4332 
    4333 # Same as above, but do not quote variable references.
    4334 double_quote_subst='s/\(["`\\]\)/\\\1/g'
    4335 
    4336 # Sed substitution to delay expansion of an escaped shell variable in a
    4337 # double_quote_subst'ed string.
    4338 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    4339 
    4340 # Sed substitution to delay expansion of an escaped single quote.
    4341 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
    4342 
    4343 # Sed substitution to avoid accidental globbing in evaled expressions
    4344 no_glob_subst='s/\*/\\\*/g'
    43454403
    43464404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
     
    43994457else
    44004458  # Didn't find any BSD compatible name lister, look for dumpbin.
    4401   if test -n "$DUMPBIN"; then :
    4402     # Let the user override the test.
    4403   else
    4404     if test -n "$ac_tool_prefix"; then
    4405   for ac_prog in dumpbin "link -dump"
     4459  if test -n "$ac_tool_prefix"; then
     4460  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
    44064461  do
    44074462    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    44474502if test -z "$DUMPBIN"; then
    44484503  ac_ct_DUMPBIN=$DUMPBIN
    4449   for ac_prog in dumpbin "link -dump"
     4504  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
    44504505do
    44514506  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    45024557fi
    45034558
    4504     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    4505     *COFF*)
    4506       DUMPBIN="$DUMPBIN -symbols"
    4507       ;;
    4508     *)
    4509       DUMPBIN=:
    4510       ;;
    4511     esac
    4512   fi
    45134559
    45144560  if test "$DUMPBIN" != ":"; then
     
    45304576  lt_cv_nm_interface="BSD nm"
    45314577  echo "int some_variable = 0;" > conftest.$ac_ext
    4532   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
     4578  (eval echo "\"\$as_me:4578: $ac_compile\"" >&5)
    45334579  (eval "$ac_compile" 2>conftest.err)
    45344580  cat conftest.err >&5
    4535   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
     4581  (eval echo "\"\$as_me:4581: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
    45364582  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
    45374583  cat conftest.err >&5
    4538   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
     4584  (eval echo "\"\$as_me:4584: output\"" >&5)
    45394585  cat conftest.out >&5
    45404586  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
     
    45904636    # Instead, let's just punt: use the minimum linelength reported by
    45914637    # all of the supported platforms: 8192 (on NT/2K/XP).
    4592     lt_cv_sys_max_cmd_len=8192;
    4593     ;;
    4594 
    4595   mint*)
    4596     # On MiNT this can take a long time and run out of memory.
    45974638    lt_cv_sys_max_cmd_len=8192;
    45984639    ;;
     
    46624703      # maximum length that is only half of the actual maximum length, but
    46634704      # we can't tell.
    4664       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
    4665                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
     4705      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
     4706                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
    46664707              test $i != 17 # 1/2 MB should be enough
    46674708      do
     
    49344975  # func_win32_libid shell function, so use a weaker test based on 'objdump',
    49354976  # unless we find 'file', for example because we are cross-compiling.
    4936   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
    4937   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
     4977  if ( file / ) >/dev/null 2>&1; then
    49384978    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    49394979    lt_cv_file_magic_cmd='func_win32_libid'
    49404980  else
    4941     # Keep this pattern in sync with the one in func_win32_libid.
    4942     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
     4981    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    49434982    lt_cv_file_magic_cmd='$OBJDUMP -f'
    49444983  fi
    49454984  ;;
    49464985
    4947 cegcc*)
     4986cegcc)
    49484987  # use the weaker test based on 'objdump'. See mingw*.
    49494988  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
     
    49755014  ;;
    49765015
    4977 haiku*)
    4978   lt_cv_deplibs_check_method=pass_all
    4979   ;;
    4980 
    49815016hpux10.20* | hpux11*)
    49825017  lt_cv_file_magic_cmd=/usr/bin/file
     
    49875022    ;;
    49885023  hppa*64*)
    4989     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
     5024    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    49905025    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    49915026    ;;
    49925027  *)
    4993     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
     5028    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    49945029    lt_cv_file_magic_test_file=/usr/lib/libc.sl
    49955030    ;;
     
    50175052  ;;
    50185053
    5019 netbsd*)
     5054netbsd* | netbsdelf*-gnu)
    50205055  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
    50215056    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     
    54285463  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    54295464fi
    5430 
    5431 case $host_os in
    5432   darwin*)
    5433     lock_old_archive_extraction=yes ;;
    5434   *)
    5435     lock_old_archive_extraction=no ;;
    5436 esac
    5437 
    5438 
    5439 
    5440 
    5441 
    54425465
    54435466
     
    56105633    # Now try to grab the symbols.
    56115634    nlist=conftest.nm
    5612     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
    5613   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
     5635    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
     5636  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
    56145637  ac_status=$?
    56155638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     
    57655788*-*-irix6*)
    57665789  # Find out which ABI we are using.
    5767   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
     5790  echo '#line 5790 "configure"' > conftest.$ac_ext
    57685791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    57695792  (eval $ac_compile) 2>&5
     
    64776500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
    64786501$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
    6479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
    6480 $as_echo_n "checking for -force_load linker flag... " >&6; }
    6481 if test "${lt_cv_ld_force_load+set}" = set; then :
    6482   $as_echo_n "(cached) " >&6
    6483 else
    6484   lt_cv_ld_force_load=no
    6485       cat > conftest.c << _LT_EOF
    6486 int forced_loaded() { return 2;}
    6487 _LT_EOF
    6488       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
    6489       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
    6490       echo "$AR cru libconftest.a conftest.o" >&5
    6491       $AR cru libconftest.a conftest.o 2>&5
    6492       echo "$RANLIB libconftest.a" >&5
    6493       $RANLIB libconftest.a 2>&5
    6494       cat > conftest.c << _LT_EOF
    6495 int main() { return 0;}
    6496 _LT_EOF
    6497       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
    6498       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
    6499       _lt_result=$?
    6500       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
    6501         lt_cv_ld_force_load=yes
    6502       else
    6503         cat conftest.err >&5
    6504       fi
    6505         rm -f conftest.err libconftest.a conftest conftest.c
    6506         rm -rf conftest.dSYM
    6507 
    6508 fi
    6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
    6510 $as_echo "$lt_cv_ld_force_load" >&6; }
    65116502    case $host_os in
    65126503    rhapsody* | darwin1.[012])
     
    65366527      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    65376528    fi
    6538     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
     6529    if test "$DSYMUTIL" != ":"; then
    65396530      _lt_dsymutil='~$DSYMUTIL $lib || :'
    65406531    else
     
    66716662  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    66726663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    6673 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    6674 See \`config.log' for more details" "$LINENO" 5; }
     6664as_fn_error "C preprocessor \"$CPP\" fails sanity check
     6665See \`config.log' for more details." "$LINENO" 5; }
    66756666fi
    66766667
     
    68016792ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    68026793"
    6803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     6794eval as_val=\$$as_ac_Header
     6795   if test "x$as_val" = x""yes; then :
    68046796  cat >>confdefs.h <<_ACEOF
    68056797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    68236815
    68246816done
    6825 
    6826 
    68276817
    68286818
     
    69806970
    69816971
    6982 
    69836972test -z "$LN_S" && LN_S="ln -s"
    69846973
     
    70267015#define LT_OBJDIR "$lt_cv_objdir/"
    70277016_ACEOF
     7017
     7018
     7019
     7020
     7021
     7022
     7023
     7024
     7025
     7026
     7027
     7028
     7029
    70287030
    70297031
     
    70427044esac
    70437045
     7046# Sed substitution that helps us do robust quoting.  It backslashifies
     7047# metacharacters that are still active within double-quoted strings.
     7048sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
     7049
     7050# Same as above, but do not quote variable references.
     7051double_quote_subst='s/\(["`\\]\)/\\\1/g'
     7052
     7053# Sed substitution to delay expansion of an escaped shell variable in a
     7054# double_quote_subst'ed string.
     7055delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     7056
     7057# Sed substitution to delay expansion of an escaped single quote.
     7058delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
     7059
     7060# Sed substitution to avoid accidental globbing in evaled expressions
     7061no_glob_subst='s/\*/\\\*/g'
     7062
    70447063# Global variables:
    70457064ofile=libtool
     
    70707089  esac
    70717090done
    7072 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
     7091cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    70737092
    70747093
     
    72797298
    72807299if test "$GCC" = yes; then
    7281   case $cc_basename in
    7282   nvcc*)
    7283     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
    7284   *)
    7285     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
    7286   esac
     7300  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
    72877301
    72887302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     
    73047318   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    73057319   -e 's:$: $lt_compiler_flag:'`
    7306    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     7320   (eval echo "\"\$as_me:7320: $lt_compile\"" >&5)
    73077321   (eval "$lt_compile" 2>conftest.err)
    73087322   ac_status=$?
    73097323   cat conftest.err >&5
    7310    echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7324   echo "$as_me:7324: \$? = $ac_status" >&5
    73117325   if (exit $ac_status) && test -s "$ac_outfile"; then
    73127326     # The compiler can only warn and ignore the option if not recognized
    73137327     # So say no if there are warnings other than the usual output.
    7314      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     7328     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
    73157329     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    73167330     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    73907404      ;;
    73917405
    7392     haiku*)
    7393       # PIC is the default for Haiku.
    7394       # The "-static" flag exists, but is broken.
    7395       lt_prog_compiler_static=
    7396       ;;
    7397 
    73987406    hpux*)
    73997407      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
     
    74367444    *)
    74377445      lt_prog_compiler_pic='-fPIC'
    7438       ;;
    7439     esac
    7440 
    7441     case $cc_basename in
    7442     nvcc*) # Cuda Compiler Driver 2.2
    7443       lt_prog_compiler_wl='-Xlinker '
    7444       lt_prog_compiler_pic='-Xcompiler -fPIC'
    74457446      ;;
    74467447    esac
     
    75077508        lt_prog_compiler_static='--static'
    75087509        ;;
    7509       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
     7510      pgcc* | pgf77* | pgf90* | pgf95*)
    75107511        # Portland Group compilers (*not* the Pentium gcc compiler,
    75117512        # which looks to be a dead project)
     
    75197520        lt_prog_compiler_static='-non_shared'
    75207521        ;;
    7521       xl* | bgxl* | bgf* | mpixl*)
    7522         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
     7522      xl*)
     7523        # IBM XL C 8.0/Fortran 10.1 on PPC
    75237524        lt_prog_compiler_wl='-Wl,'
    75247525        lt_prog_compiler_pic='-qpic'
     
    75277528      *)
    75287529        case `$CC -V 2>&1 | sed 5q` in
    7529         *Sun\ F* | *Sun*Fortran*)
    7530           # Sun Fortran 8.3 passes all unrecognized flags to the linker
    7531           lt_prog_compiler_pic='-KPIC'
    7532           lt_prog_compiler_static='-Bstatic'
    7533           lt_prog_compiler_wl=''
    7534           ;;
    75357530        *Sun\ C*)
    75367531          # Sun C 5.9
     
    75397534          lt_prog_compiler_wl='-Wl,'
    75407535          ;;
     7536        *Sun\ F*)
     7537          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     7538          lt_prog_compiler_pic='-KPIC'
     7539          lt_prog_compiler_static='-Bstatic'
     7540          lt_prog_compiler_wl=''
     7541          ;;
    75417542        esac
    75427543        ;;
     
    75697570      lt_prog_compiler_static='-Bstatic'
    75707571      case $cc_basename in
    7571       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
     7572      f77* | f90* | f95*)
    75727573        lt_prog_compiler_wl='-Qoption ld ';;
    75737574      *)
     
    76567657   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    76577658   -e 's:$: $lt_compiler_flag:'`
    7658    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     7659   (eval echo "\"\$as_me:7659: $lt_compile\"" >&5)
    76597660   (eval "$lt_compile" 2>conftest.err)
    76607661   ac_status=$?
    76617662   cat conftest.err >&5
    7662    echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7663   echo "$as_me:7663: \$? = $ac_status" >&5
    76637664   if (exit $ac_status) && test -s "$ac_outfile"; then
    76647665     # The compiler can only warn and ignore the option if not recognized
    76657666     # So say no if there are warnings other than the usual output.
    7666      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
     7667     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
    76677668     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    76687669     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
     
    77127713       # Append any errors to the config.log.
    77137714       cat conftest.err 1>&5
    7714        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
     7715       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
    77157716       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    77167717       if diff conftest.exp conftest.er2 >/dev/null; then
     
    77617762   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    77627763   -e 's:$: $lt_compiler_flag:'`
    7763    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     7764   (eval echo "\"\$as_me:7764: $lt_compile\"" >&5)
    77647765   (eval "$lt_compile" 2>out/conftest.err)
    77657766   ac_status=$?
    77667767   cat out/conftest.err >&5
    7767    echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7768   echo "$as_me:7768: \$? = $ac_status" >&5
    77687769   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    77697770   then
    77707771     # The compiler can only warn and ignore the option if not recognized
    77717772     # So say no if there are warnings
    7772      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     7773     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
    77737774     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    77747775     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    78167817   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    78177818   -e 's:$: $lt_compiler_flag:'`
    7818    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
     7819   (eval echo "\"\$as_me:7819: $lt_compile\"" >&5)
    78197820   (eval "$lt_compile" 2>out/conftest.err)
    78207821   ac_status=$?
    78217822   cat out/conftest.err >&5
    7822    echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7823   echo "$as_me:7823: \$? = $ac_status" >&5
    78237824   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    78247825   then
    78257826     # The compiler can only warn and ignore the option if not recognized
    78267827     # So say no if there are warnings
    7827      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
     7828     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
    78287829     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
    78297830     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
     
    79357936    with_gnu_ld=no
    79367937    ;;
     7938  linux* | k*bsd*-gnu)
     7939    link_all_deplibs=no
     7940    ;;
    79377941  esac
    79387942
    79397943  ld_shlibs=yes
    7940 
    7941   # On some targets, GNU ld is compatible enough with the native linker
    7942   # that we're better off using the native interface for both.
    7943   lt_use_gnu_ld_interface=no
    79447944  if test "$with_gnu_ld" = yes; then
    7945     case $host_os in
    7946       aix*)
    7947         # The AIX port of GNU ld has always aspired to compatibility
    7948         # with the native linker.  However, as the warning in the GNU ld
    7949         # block says, versions before 2.19.5* couldn't really create working
    7950         # shared libraries, regardless of the interface used.
    7951         case `$LD -v 2>&1` in
    7952           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
    7953           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
    7954           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
    7955           *)
    7956             lt_use_gnu_ld_interface=yes
    7957             ;;
    7958         esac
    7959         ;;
    7960       *)
    7961         lt_use_gnu_ld_interface=yes
    7962         ;;
    7963     esac
    7964   fi
    7965 
    7966   if test "$lt_use_gnu_ld_interface" = yes; then
    79677945    # If archive_cmds runs LD, not CC, wlarc should be empty
    79687946    wlarc='${wl}'
     
    79987976        cat <<_LT_EOF 1>&2
    79997977
    8000 *** Warning: the GNU linker, at least up to release 2.19, is reported
     7978*** Warning: the GNU linker, at least up to release 2.9.1, is reported
    80017979*** to be unable to reliably create shared libraries on AIX.
    80027980*** Therefore, libtool is disabling shared libraries support.  If you
    8003 *** really care for shared libraries, you may want to install binutils
    8004 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
    8005 *** You will then need to restart the configuration process.
     7981*** really care for shared libraries, you may want to modify your PATH
     7982*** so that a non-GNU linker is found, and then restart.
    80067983
    80077984_LT_EOF
     
    80398016      # as there is no search path for DLLs.
    80408017      hardcode_libdir_flag_spec='-L$libdir'
    8041       export_dynamic_flag_spec='${wl}--export-all-symbols'
    80428018      allow_undefined_flag=unsupported
    80438019      always_export_symbols=no
     
    80618037      ;;
    80628038
    8063     haiku*)
    8064       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    8065       link_all_deplibs=yes
    8066       ;;
    8067 
    80688039    interix[3-9]*)
    80698040      hardcode_direct=no
     
    80958066        case $cc_basename,$host_cpu in
    80968067        pgcc*)                          # Portland Group C compiler
    8097           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
     8068          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
    80988069          tmp_addflag=' $pic_flag'
    80998070          ;;
    8100         pgf77* | pgf90* | pgf95* | pgfortran*)
    8101                                         # Portland Group f77 and f90 compilers
    8102           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
     8071        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
     8072          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
    81038073          tmp_addflag=' $pic_flag -Mnomain' ;;
    81048074        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     
    81118081          whole_archive_flag_spec=
    81128082          tmp_sharedflag='--shared' ;;
    8113         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
     8083        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
    81148084          tmp_sharedflag='-qmkshrobj'
    81158085          tmp_addflag= ;;
    8116         nvcc*)  # Cuda Compiler Driver 2.2
    8117           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    8118           compiler_needs_object=yes
    8119           ;;
    81208086        esac
    81218087        case `$CC -V 2>&1 | sed 5q` in
    81228088        *Sun\ C*)                       # Sun C 5.9
    8123           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
     8089          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
    81248090          compiler_needs_object=yes
    81258091          tmp_sharedflag='-G' ;;
     
    81378103
    81388104        case $cc_basename in
    8139         xlf* | bgf* | bgxlf* | mpixlf*)
     8105        xlf*)
    81408106          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
    81418107          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
    81428108          hardcode_libdir_flag_spec=
    81438109          hardcode_libdir_flag_spec_ld='-rpath $libdir'
    8144           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
     8110          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
    81458111          if test "x$supports_anon_versioning" = xyes; then
    81468112            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
    81478113              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    81488114              echo "local: *; };" >> $output_objdir/$libname.ver~
    8149               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     8115              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
    81508116          fi
    81518117          ;;
     
    81568122      ;;
    81578123
    8158     netbsd*)
     8124    netbsd* | netbsdelf*-gnu)
    81598125      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    81608126        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     
    82688234        # If we're using GNU nm, then we don't want the "-C" option.
    82698235        # -C means demangle to AIX nm, but means don't demangle with GNU nm
    8270         # Also, AIX nm treats weak defined symbols like other global
    8271         # defined symbols, whereas GNU nm marks them as "W".
    82728236        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    8273           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     8237          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    82748238        else
    82758239          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
     
    83338297          shared_flag="$shared_flag "'${wl}-G'
    83348298        fi
     8299        link_all_deplibs=no
    83358300      else
    83368301        # not using gcc
     
    83898354
    83908355        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
    8391         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     8356        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    83928357      else
    83938358        if test "$host_cpu" = ia64; then
     
    84338398          no_undefined_flag=' ${wl}-bernotok'
    84348399          allow_undefined_flag=' ${wl}-berok'
    8435           if test "$with_gnu_ld" = yes; then
    8436             # We only use this code for GNU lds that support --whole-archive.
    8437             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    8438           else
    8439             # Exported symbols can be pulled into shared objects from archives
    8440             whole_archive_flag_spec='$convenience'
    8441           fi
     8400          # Exported symbols can be pulled into shared objects from archives
     8401          whole_archive_flag_spec='$convenience'
    84428402          archive_cmds_need_lc=yes
    84438403          # This is similar to how AIX traditionally builds its shared libraries.
     
    84788438      shrext_cmds=".dll"
    84798439      # FIXME: Setting linknames here is a bad hack.
    8480       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     8440      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
    84818441      # The linker will automatically build a .lib file if we build a DLL.
    84828442      old_archive_from_new_cmds='true'
     
    84948454  hardcode_automatic=yes
    84958455  hardcode_shlibpath_var=unsupported
    8496   if test "$lt_cv_ld_force_load" = "yes"; then
    8497     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
    8498   else
    8499     whole_archive_flag_spec=''
    8500   fi
     8456  whole_archive_flag_spec=''
    85018457  link_all_deplibs=yes
    85028458  allow_undefined_flag="$_lt_dar_allow_undefined"
     
    85068462  esac
    85078463  if test "$_lt_dar_can_shared" = "yes"; then
    8508     output_verbose_link_cmd=func_echo_all
     8464    output_verbose_link_cmd=echo
    85098465    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
    85108466    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     
    85728528
    85738529    hpux10*)
    8574       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     8530      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    85758531        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    85768532      else
     
    85918547
    85928548    hpux11*)
    8593       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     8549      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    85948550        case $host_cpu in
    85958551        hppa*64*)
     
    86128568          ;;
    86138569        *)
    8614 
    8615           # Older versions of the 11.00 compiler do not understand -b yet
    8616           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
    8617           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
    8618 $as_echo_n "checking if $CC understands -b... " >&6; }
    8619 if test "${lt_cv_prog_compiler__b+set}" = set; then :
    8620   $as_echo_n "(cached) " >&6
    8621 else
    8622   lt_cv_prog_compiler__b=no
    8623    save_LDFLAGS="$LDFLAGS"
    8624    LDFLAGS="$LDFLAGS -b"
    8625    echo "$lt_simple_link_test_code" > conftest.$ac_ext
    8626    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    8627      # The linker can only warn and ignore the option if not recognized
    8628      # So say no if there are warnings
    8629      if test -s conftest.err; then
    8630        # Append any errors to the config.log.
    8631        cat conftest.err 1>&5
    8632        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
    8633        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
    8634        if diff conftest.exp conftest.er2 >/dev/null; then
    8635          lt_cv_prog_compiler__b=yes
    8636        fi
    8637      else
    8638        lt_cv_prog_compiler__b=yes
    8639      fi
    8640    fi
    8641    $RM -r conftest*
    8642    LDFLAGS="$save_LDFLAGS"
    8643 
    8644 fi
    8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
    8646 $as_echo "$lt_cv_prog_compiler__b" >&6; }
    8647 
    8648 if test x"$lt_cv_prog_compiler__b" = xyes; then
    8649     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    8650 else
    8651     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    8652 fi
    8653 
     8570          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    86548571          ;;
    86558572        esac
     
    86798596    irix5* | irix6* | nonstopux*)
    86808597      if test "$GCC" = yes; then
    8681         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     8598        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    86828599        # Try to use the -exported_symbol ld option, if it does not
    86838600        # work, assume that -exports_file does not work either and
     
    86908607_ACEOF
    86918608if ac_fn_c_try_link "$LINENO"; then :
    8692   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
     8609  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
    86938610
    86948611fi
     
    86978614        LDFLAGS="$save_LDFLAGS"
    86988615      else
    8699         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    8700         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
     8616        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
     8617        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
    87018618      fi
    87028619      archive_cmds_need_lc='no'
     
    87078624      ;;
    87088625
    8709     netbsd*)
     8626    netbsd* | netbsdelf*-gnu)
    87108627      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    87118628        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     
    87608677      hardcode_minus_L=yes
    87618678      allow_undefined_flag=unsupported
    8762       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     8679      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    87638680      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    87648681      ;;
     
    87678684      if test "$GCC" = yes; then
    87688685        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    8769         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     8686        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    87708687      else
    87718688        allow_undefined_flag=' -expect_unresolved \*'
    8772         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
     8689        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
    87738690      fi
    87748691      archive_cmds_need_lc='no'
     
    87808697      if test "$GCC" = yes; then
    87818698        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    8782         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     8699        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    87838700        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    87848701      else
    87858702        allow_undefined_flag=' -expect_unresolved \*'
    8786         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
     8703        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
    87878704        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
    8788         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
     8705        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
    87898706
    87908707        # Both c and cxx compiler support -rpath directly
     
    89898906      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
    89908907$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
    8991 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
    8992   $as_echo_n "(cached) " >&6
    8993 else
    8994   $RM conftest*
    8995         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    8996 
    8997         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
     8908      $RM conftest*
     8909      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
     8910
     8911      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
    89988912  (eval $ac_compile) 2>&5
    89998913  ac_status=$?
    90008914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    90018915  test $ac_status = 0; } 2>conftest.err; then
    9002           soname=conftest
    9003           lib=conftest
    9004           libobjs=conftest.$ac_objext
    9005           deplibs=
    9006           wl=$lt_prog_compiler_wl
    9007           pic_flag=$lt_prog_compiler_pic
    9008           compiler_flags=-v
    9009           linker_flags=-v
    9010           verstring=
    9011           output_objdir=.
    9012           libname=conftest
    9013           lt_save_allow_undefined_flag=$allow_undefined_flag
    9014           allow_undefined_flag=
    9015           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
     8916        soname=conftest
     8917        lib=conftest
     8918        libobjs=conftest.$ac_objext
     8919        deplibs=
     8920        wl=$lt_prog_compiler_wl
     8921        pic_flag=$lt_prog_compiler_pic
     8922        compiler_flags=-v
     8923        linker_flags=-v
     8924        verstring=
     8925        output_objdir=.
     8926        libname=conftest
     8927        lt_save_allow_undefined_flag=$allow_undefined_flag
     8928        allow_undefined_flag=
     8929        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
    90168930  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
    90178931  ac_status=$?
    90188932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    90198933  test $ac_status = 0; }
    9020           then
    9021             lt_cv_archive_cmds_need_lc=no
    9022           else
    9023             lt_cv_archive_cmds_need_lc=yes
    9024           fi
    9025           allow_undefined_flag=$lt_save_allow_undefined_flag
    9026         else
    9027           cat conftest.err 1>&5
    9028         fi
    9029         $RM conftest*
    9030 
    9031 fi
    9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
    9033 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
    9034       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
     8934        then
     8935          archive_cmds_need_lc=no
     8936        else
     8937          archive_cmds_need_lc=yes
     8938        fi
     8939        allow_undefined_flag=$lt_save_allow_undefined_flag
     8940      else
     8941        cat conftest.err 1>&5
     8942      fi
     8943      $RM conftest*
     8944      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
     8945$as_echo "$archive_cmds_need_lc" >&6; }
    90358946      ;;
    90368947    esac
     
    92039114    *) lt_awk_arg="/^libraries:/" ;;
    92049115  esac
    9205   case $host_os in
    9206     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
    9207     *) lt_sed_strip_eq="s,=/,/,g" ;;
    9208   esac
    9209   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
    9210   case $lt_search_path_spec in
    9211   *\;*)
     9116  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     9117  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
    92129118    # if the path contains ";" then we assume it to be the separator
    92139119    # otherwise default to the standard path separator (i.e. ":") - it is
    92149120    # assumed that no part of a normal pathname contains ";" but that should
    92159121    # okay in the real world where ";" in dirpaths is itself problematic.
    9216     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
    9217     ;;
    9218   *)
    9219     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
    9220     ;;
    9221   esac
     9122    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
     9123  else
     9124    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     9125  fi
    92229126  # Ok, now we have the path, separated by spaces, we can step through it
    92239127  # and add multilib dir if necessary.
     
    92329136    fi
    92339137  done
    9234   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
     9138  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
    92359139BEGIN {RS=" "; FS="/|\n";} {
    92369140  lt_foo="";
     
    92529156  if (lt_freq[lt_foo] == 1) { print lt_foo; }
    92539157}'`
    9254   # AWK program above erroneously prepends '/' to C:/dos/paths
    9255   # for these hosts.
    9256   case $host_os in
    9257     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
    9258       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
    9259   esac
    9260   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
     9158  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
    92619159else
    92629160  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
     
    93469244    library_names_spec='$libname.ixlibrary $libname.a'
    93479245    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    9348     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     9246    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    93499247    ;;
    93509248  esac
     
    93999297      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    94009298      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    9401 
    9402       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
     9299      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    94039300      ;;
    94049301    mingw* | cegcc*)
    94059302      # MinGW DLLs use traditional 'lib' prefix
    94069303      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     9304      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     9305      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
     9306        # It is most probably a Windows format PATH printed by
     9307        # mingw gcc, but we are running on Cygwin. Gcc prints its search
     9308        # path with ; separators, and with drive letters. We can handle the
     9309        # drive letters (cygwin fileutils understands them), so leave them,
     9310        # especially as we might pass files found there to a mingw objdump,
     9311        # which wouldn't understand a cygwinified path. Ahh.
     9312        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     9313      else
     9314        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     9315      fi
    94079316      ;;
    94089317    pw32*)
     
    95049413  ;;
    95059414
    9506 haiku*)
    9507   version_type=linux
    9508   need_lib_prefix=no
    9509   need_version=no
    9510   dynamic_linker="$host_os runtime_loader"
    9511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    9512   soname_spec='${libname}${release}${shared_ext}$major'
    9513   shlibpath_var=LIBRARY_PATH
    9514   shlibpath_overrides_runpath=yes
    9515   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    9516   hardcode_into_libs=yes
    9517   ;;
    9518 
    95199415hpux9* | hpux10* | hpux11*)
    95209416  # Give a soname corresponding to the major version so that dld.sl refuses to
     
    95599455    ;;
    95609456  esac