Changeset 70c2d86 in mod_gnutls for config/ltmain.sh


Ignore:
Timestamp:
Jan 11, 2013, 12:55:20 AM (8 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, upstream
Children:
3f5c713, ec06980
Parents:
3e94bd3
Message:

Imported Upstream version 0.3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config/ltmain.sh

    r3e94bd3 r70c2d86  
    22# NOTE: Changing this file will not affect anything until you rerun configure.
    33#
    4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
    5 # Free Software Foundation, Inc.
     4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
     5# 2007  Free Software Foundation, Inc.
    66# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    77#
     
    1818# You should have received a copy of the GNU General Public License
    1919# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    2121#
    2222# As a special exception to the GNU General Public License, if you
     
    4444PROGRAM=ltmain.sh
    4545PACKAGE=libtool
    46 VERSION=1.5.6
    47 TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
    48 
     46VERSION="1.5.24 Debian 1.5.24-1ubuntu1"
     47TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
     48
     49# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
     50if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     51  emulate sh
     52  NULLCMD=:
     53  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     54  # is contrary to our usage.  Disable this feature.
     55  alias -g '${1+"$@"}'='"$@"'
     56  setopt NO_GLOB_SUBST
     57else
     58  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
     59fi
     60BIN_SH=xpg4; export BIN_SH # for Tru64
     61DUALCASE=1; export DUALCASE # for MKS sh
    4962
    5063# Check that we have a working $echo.
     
    8497sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
    8598# test EBCDIC or ASCII
    86 case `echo A|tr A '\301'` in
    87  A) # EBCDIC based system
    88   SP2NL="tr '\100' '\n'"
    89   NL2SP="tr '\r\n' '\100\100'"
     99case `echo X|tr X '\101'` in
     100 A) # ASCII based system
     101    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
     102  SP2NL='tr \040 \012'
     103  NL2SP='tr \015\012 \040\040'
    90104  ;;
    91  *) # Assume ASCII based system
    92   SP2NL="tr '\040' '\012'"
    93   NL2SP="tr '\015\012' '\040\040'"
     105 *) # EBCDIC based system
     106  SP2NL='tr \100 \n'
     107  NL2SP='tr \r\n \100\100'
    94108  ;;
    95109esac
     
    100114# e.g. LANG=C (notably SCO).
    101115# We save the old values to restore during execute mode.
    102 if test "${LC_ALL+set}" = set; then
    103   save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
    104 fi
    105 if test "${LANG+set}" = set; then
    106   save_LANG="$LANG"; LANG=C; export LANG
    107 fi
     116for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
     117do
     118  eval "if test \"\${$lt_var+set}\" = set; then
     119          save_$lt_var=\$$lt_var
     120          $lt_var=C
     121          export $lt_var
     122        fi"
     123done
    108124
    109125# Make sure IFS has a sensible default
    110 : ${IFS="       
    111 "}
     126lt_nl='
     127'
     128IFS="   $lt_nl"
    112129
    113130if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
     
    126143show_help=
    127144execute_dlfiles=
     145duplicate_deps=no
     146preserve_args=
    128147lo2o="s/\\.lo\$/.${objext}/"
    129148o2lo="s/\\.${objext}\$/.lo/"
     149extracted_archives=
     150extracted_serial=0
    130151
    131152#####################################
    132153# Shell function definitions:
    133154# This seems to be the best place for them
     155
     156# func_mktempdir [string]
     157# Make a temporary directory that won't clash with other running
     158# libtool processes, and avoids race conditions if possible.  If
     159# given, STRING is the basename for that directory.
     160func_mktempdir ()
     161{
     162    my_template="${TMPDIR-/tmp}/${1-$progname}"
     163
     164    if test "$run" = ":"; then
     165      # Return a directory name, but don't create it in dry-run mode
     166      my_tmpdir="${my_template}-$$"
     167    else
     168
     169      # If mktemp works, use that first and foremost
     170      my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
     171
     172      if test ! -d "$my_tmpdir"; then
     173        # Failing that, at least try and use $RANDOM to avoid a race
     174        my_tmpdir="${my_template}-${RANDOM-0}$$"
     175
     176        save_mktempdir_umask=`umask`
     177        umask 0077
     178        $mkdir "$my_tmpdir"
     179        umask $save_mktempdir_umask
     180      fi
     181
     182      # If we're not in dry-run mode, bomb out on failure
     183      test -d "$my_tmpdir" || {
     184        $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
     185        exit $EXIT_FAILURE
     186      }
     187    fi
     188
     189    $echo "X$my_tmpdir" | $Xsed
     190}
     191
    134192
    135193# func_win32_libid arg
     
    139197# Has to be a shell function in order to 'eat' the argument
    140198# that is supplied when $file_magic_command is called.
    141 func_win32_libid () {
     199func_win32_libid ()
     200{
    142201  win32_libid_type="unknown"
    143202  win32_fileres=`file -L $1 2>/dev/null`
     
    150209      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
    151210      win32_nmres=`eval $NM -f posix -A $1 | \
    152         sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
    153       if test "X$win32_nmres" = "Ximport" ; then
    154         win32_libid_type="x86 archive import"
    155       else
    156         win32_libid_type="x86 archive static"
    157       fi
     211        $SED -n -e '1,100{
     212                / I /{
     213                        s,.*,import,
     214                        p
     215                        q
     216                        }
     217                }'`
     218      case $win32_nmres in
     219      import*)  win32_libid_type="x86 archive import";;
     220      *)        win32_libid_type="x86 archive static";;
     221      esac
    158222    fi
    159223    ;;
     
    179243# command doesn't match the default compiler.
    180244# arg is usually of the form 'gcc ...'
    181 func_infer_tag () {
     245func_infer_tag ()
     246{
    182247    if test -n "$available_tags" && test -z "$tagname"; then
    183248      CC_quoted=
     
    236301    fi
    237302}
     303
     304
     305# func_extract_an_archive dir oldlib
     306func_extract_an_archive ()
     307{
     308    f_ex_an_ar_dir="$1"; shift
     309    f_ex_an_ar_oldlib="$1"
     310
     311    $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
     312    $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
     313    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
     314     :
     315    else
     316      $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
     317      exit $EXIT_FAILURE
     318    fi
     319}
     320
     321# func_extract_archives gentop oldlib ...
     322func_extract_archives ()
     323{
     324    my_gentop="$1"; shift
     325    my_oldlibs=${1+"$@"}
     326    my_oldobjs=""
     327    my_xlib=""
     328    my_xabs=""
     329    my_xdir=""
     330    my_status=""
     331
     332    $show "${rm}r $my_gentop"
     333    $run ${rm}r "$my_gentop"
     334    $show "$mkdir $my_gentop"
     335    $run $mkdir "$my_gentop"
     336    my_status=$?
     337    if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
     338      exit $my_status
     339    fi
     340
     341    for my_xlib in $my_oldlibs; do
     342      # Extract the objects.
     343      case $my_xlib in
     344        [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
     345        *) my_xabs=`pwd`"/$my_xlib" ;;
     346      esac
     347      my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
     348      my_xlib_u=$my_xlib
     349      while :; do
     350        case " $extracted_archives " in
     351        *" $my_xlib_u "*)
     352          extracted_serial=`expr $extracted_serial + 1`
     353          my_xlib_u=lt$extracted_serial-$my_xlib ;;
     354        *) break ;;
     355        esac
     356      done
     357      extracted_archives="$extracted_archives $my_xlib_u"
     358      my_xdir="$my_gentop/$my_xlib_u"
     359
     360      $show "${rm}r $my_xdir"
     361      $run ${rm}r "$my_xdir"
     362      $show "$mkdir $my_xdir"
     363      $run $mkdir "$my_xdir"
     364      exit_status=$?
     365      if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
     366        exit $exit_status
     367      fi
     368      case $host in
     369      *-darwin*)
     370        $show "Extracting $my_xabs"
     371        # Do not bother doing anything if just a dry run
     372        if test -z "$run"; then
     373          darwin_orig_dir=`pwd`
     374          cd $my_xdir || exit $?
     375          darwin_archive=$my_xabs
     376          darwin_curdir=`pwd`
     377          darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
     378          darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
     379          if test -n "$darwin_arches"; then
     380            darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
     381            darwin_arch=
     382            $show "$darwin_base_archive has multiple architectures $darwin_arches"
     383            for darwin_arch in  $darwin_arches ; do
     384              mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     385              lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
     386              cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
     387              func_extract_an_archive "`pwd`" "${darwin_base_archive}"
     388              cd "$darwin_curdir"
     389              $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
     390            done # $darwin_arches
     391      ## Okay now we have a bunch of thin objects, gotta fatten them up :)
     392            darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
     393            darwin_file=
     394            darwin_files=
     395            for darwin_file in $darwin_filelist; do
     396              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
     397              lipo -create -output "$darwin_file" $darwin_files
     398            done # $darwin_filelist
     399            ${rm}r unfat-$$
     400            cd "$darwin_orig_dir"
     401          else
     402            cd "$darwin_orig_dir"
     403            func_extract_an_archive "$my_xdir" "$my_xabs"
     404          fi # $darwin_arches
     405        fi # $run
     406        ;;
     407      *)
     408        func_extract_an_archive "$my_xdir" "$my_xabs"
     409        ;;
     410      esac
     411      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
     412    done
     413    func_extract_archives_result="$my_oldobjs"
     414}
    238415# End of Shell function definitions
    239416#####################################
     
    241418# Darwin sucks
    242419eval std_shrext=\"$shrext_cmds\"
     420
     421disable_libs=no
    243422
    244423# Parse our command line options once, thoroughly.
     
    304483
    305484  --version)
    306     $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
    307     $echo
    308     $echo "Copyright (C) 2003  Free Software Foundation, Inc."
    309     $echo "This is free software; see the source for copying conditions.  There is NO"
    310     $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
    311     exit $EXIT_SUCCESS
     485    echo "\
     486$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
     487
     488Copyright (C) 2007  Free Software Foundation, Inc.
     489This is free software; see the source for copying conditions.  There is NO
     490warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     491    exit $?
    312492    ;;
    313493
     
    318498      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
    319499    done
    320     exit $EXIT_SUCCESS
     500    exit $?
    321501    ;;
    322502
     
    343523      $echo "disable static libraries"
    344524    fi
    345     exit $EXIT_SUCCESS
     525    exit $?
    346526    ;;
    347527
     
    358538    ;;
    359539
    360   --tag) prevopt="--tag" prev=tag ;;
     540  --tag)
     541    prevopt="--tag"
     542    prev=tag
     543    preserve_args="$preserve_args --tag"
     544    ;;
    361545  --tag=*)
    362546    set tag "$optarg" ${1+"$@"}
     
    390574fi
    391575
     576case $disable_libs in
     577no)
     578  ;;
     579shared)
     580  build_libtool_libs=no
     581  build_old_libs=yes
     582  ;;
     583static)
     584  build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
     585  ;;
     586esac
     587
    392588# If this variable is set in any of the actions, the command in it
    393589# will be execed at the end.  This prevents here-documents from being
     
    400596  if test -z "$mode"; then
    401597    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
    402     $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
     598    $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
    403599    case $nonopt in
    404600    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
     
    466662    for arg
    467663    do
    468       case "$arg_mode" in
     664      case $arg_mode in
    469665      arg  )
    470666        # do not "continue".  Instead, add this to base_compile
     
    548744      # Double-quote args containing other shell metacharacters.
    549745      # Many Bourne shells cannot handle close brackets correctly
    550       # in scan sets, so we specify it separately.
     746      # in scan sets, and some SunOS ksh mistreat backslash-escaping
     747      # in scan sets (worked around with variable expansion),
     748      # and furthermore cannot handle '|' '&' '(' ')' in scan sets
     749      # at all, so we specify them separately.
    551750      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    552751        lastarg="\"$lastarg\""
     
    586785    *.cpp) xform=cpp ;;
    587786    *.cxx) xform=cxx ;;
    588     *.f90) xform=f90 ;;
     787    *.[fF][09]?) xform=[fF][09]. ;;
    589788    *.for) xform=for ;;
    590789    *.java) xform=java ;;
     790    *.obj) xform=obj ;;
    591791    esac
    592792
     
    622822    done
    623823
     824    qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
     825    case $qlibobj in
     826      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
     827        qlibobj="\"$qlibobj\"" ;;
     828    esac
     829    test "X$libobj" != "X$qlibobj" \
     830        && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"'  &()|`$[]' \
     831        && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
    624832    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
    625833    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
     
    694902        exit $EXIT_FAILURE
    695903      fi
    696       $echo $srcfile > "$lockfile"
     904      $echo "$srcfile" > "$lockfile"
    697905    fi
    698906
     
    700908      eval srcfile=\"$fix_srcfile_path\"
    701909    fi
     910    qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
     911    case $qsrcfile in
     912      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
     913      qsrcfile="\"$qsrcfile\"" ;;
     914    esac
    702915
    703916    $run $rm "$libobj" "${libobj}T"
     
    721934
    722935      if test "$pic_mode" != no; then
    723         command="$base_compile $srcfile $pic_flag"
     936        command="$base_compile $qsrcfile $pic_flag"
    724937      else
    725938        # Don't build PIC code
    726         command="$base_compile $srcfile"
     939        command="$base_compile $qsrcfile"
    727940      fi
    728941
     
    730943        $show "$mkdir ${xdir}$objdir"
    731944        $run $mkdir ${xdir}$objdir
    732         status=$?
    733         if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
    734           exit $status
     945        exit_status=$?
     946        if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
     947          exit $exit_status
    735948        fi
    736949      fi
     
    8041017      if test "$pic_mode" != yes; then
    8051018        # Don't build PIC code
    806         command="$base_compile $srcfile"
     1019        command="$base_compile $qsrcfile"
    8071020      else
    808         command="$base_compile $srcfile $pic_flag"
     1021        command="$base_compile $qsrcfile $pic_flag"
    8091022      fi
    8101023      if test "$compiler_c_o" = yes; then
     
    9351148    objs=
    9361149    non_pic_objects=
     1150    notinst_path= # paths that contain not-installed libtool libraries
    9371151    precious_files_regex=
    9381152    prefer_static_libs=no
     
    9551169    do
    9561170      case $arg in
    957       -all-static | -static)
    958         if test "X$arg" = "X-all-static"; then
     1171      -all-static | -static | -static-libtool-libs)
     1172        case $arg in
     1173        -all-static)
    9591174          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
    9601175            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
     
    9631178            dlopen_self=$dlopen_self_static
    9641179          fi
    965         else
     1180          prefer_static_libs=yes
     1181          ;;
     1182        -static)
    9661183          if test -z "$pic_flag" && test -n "$link_static_flag"; then
    9671184            dlopen_self=$dlopen_self_static
    9681185          fi
    969         fi
     1186          prefer_static_libs=built
     1187          ;;
     1188        -static-libtool-libs)
     1189          if test -z "$pic_flag" && test -n "$link_static_flag"; then
     1190            dlopen_self=$dlopen_self_static
     1191          fi
     1192          prefer_static_libs=yes
     1193          ;;
     1194        esac
    9701195        build_libtool_libs=no
    9711196        build_old_libs=yes
    972         prefer_static_libs=yes
    9731197        break
    9741198        ;;
     
    11451369                    arg="$non_pic_object"
    11461370                  fi
     1371                else
     1372                  # If the PIC object exists, use it instead.
     1373                  # $xdir was prepended to $pic_object above.
     1374                  non_pic_object="$pic_object"
     1375                  non_pic_objects="$non_pic_objects $non_pic_object"
    11471376                fi
    11481377              else
     
    12281457          continue
    12291458          ;;
     1459        darwin_framework|darwin_framework_skip)
     1460          test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
     1461          compile_command="$compile_command $arg"
     1462          finalize_command="$finalize_command $arg"
     1463          prev=
     1464          continue
     1465          ;;
    12301466        *)
    12311467          eval "$prev=\"\$arg\""
     
    12831519          prev=expsyms_regex
    12841520        fi
     1521        continue
     1522        ;;
     1523
     1524      -framework|-arch|-isysroot)
     1525        case " $CC " in
     1526          *" ${arg} ${1} "* | *" ${arg} ${1} "*)
     1527                prev=darwin_framework_skip ;;
     1528          *) compiler_flags="$compiler_flags $arg"
     1529             prev=darwin_framework ;;
     1530        esac
     1531        compile_command="$compile_command $arg"
     1532        finalize_command="$finalize_command $arg"
    12851533        continue
    12861534        ;;
     
    13121560          if test -z "$absdir"; then
    13131561            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
    1314             exit $EXIT_FAILURE
     1562            absdir="$dir"
     1563            notinst_path="$notinst_path $dir"
    13151564          fi
    13161565          dir="$absdir"
     
    13261575        case $host in
    13271576        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
     1577          testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
    13281578          case :$dllsearchpath: in
    13291579          *":$dir:"*) ;;
    13301580          *) dllsearchpath="$dllsearchpath:$dir";;
    13311581          esac
     1582          case :$dllsearchpath: in
     1583          *":$testbindir:"*) ;;
     1584          *) dllsearchpath="$dllsearchpath:$testbindir";;
     1585          esac
    13321586          ;;
    13331587        esac
     
    13381592        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
    13391593          case $host in
    1340           *-*-cygwin* | *-*-pw32* | *-*-beos*)
     1594          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
    13411595            # These systems don't actually have a C or math library (as such)
    13421596            continue
    13431597            ;;
    1344           *-*-mingw* | *-*-os2*)
     1598          *-*-os2*)
    13451599            # These systems don't actually have a C library (as such)
    13461600            test "X$arg" = "X-lc" && continue
    13471601            ;;
    1348           *-*-openbsd* | *-*-freebsd*)
     1602          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
    13491603            # Do not include libc due to us having libc/libc_r.
    13501604            test "X$arg" = "X-lc" && continue
     
    13541608            deplibs="$deplibs -framework System"
    13551609            continue
     1610            ;;
     1611          *-*-sco3.2v5* | *-*-sco5v6*)
     1612            # Causes problems with __ctype
     1613            test "X$arg" = "X-lc" && continue
     1614            ;;
     1615          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
     1616            # Compiler inserts libc in the correct place for threads to work
     1617            test "X$arg" = "X-lc" && continue
     1618            ;;
    13561619          esac
    13571620        elif test "X$arg" = "X-lc_r"; then
    13581621         case $host in
    1359          *-*-openbsd* | *-*-freebsd*)
     1622         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
    13601623           # Do not include libc_r directly, use -pthread flag.
    13611624           continue
     
    13671630        ;;
    13681631
    1369      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
    1370         deplibs="$deplibs $arg"
     1632      # Tru64 UNIX uses -model [arg] to determine the layout of C++
     1633      # classes, name mangling, and exception handling.
     1634      -model)
     1635        compile_command="$compile_command $arg"
     1636        compiler_flags="$compiler_flags $arg"
     1637        finalize_command="$finalize_command $arg"
     1638        prev=xcompiler
     1639        continue
     1640        ;;
     1641
     1642     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
     1643        compiler_flags="$compiler_flags $arg"
     1644        compile_command="$compile_command $arg"
     1645        finalize_command="$finalize_command $arg"
    13711646        continue
    13721647        ;;
     
    13771652        ;;
    13781653
    1379       # gcc -m* arguments should be passed to the linker via $compiler_flags
    1380       # in order to pass architecture information to the linker
    1381       # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
    1382       # but this is not reliable with gcc because gcc may use -mfoo to
    1383       # select a different linker, different libraries, etc, while
    1384       # -Wl,-mfoo simply passes -mfoo to the linker.
    1385       -m*)
     1654      # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
     1655      # -r[0-9][0-9]* specifies the processor on the SGI compiler
     1656      # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
     1657      # +DA*, +DD* enable 64-bit mode on the HP compiler
     1658      # -q* pass through compiler args for the IBM compiler
     1659      # -m* pass through architecture-specific compiler args for GCC
     1660      # -m*, -t[45]*, -txscale* pass through architecture-specific
     1661      # compiler args for GCC
     1662      # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
     1663      # -F/path gives path to uninstalled frameworks, gcc on darwin
     1664      # @file GCC response files
     1665      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
     1666      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
     1667
    13861668        # Unknown arguments in both finalize_command and compile_command need
    13871669        # to be aesthetically quoted because they are evaled later.
     
    13941676        compile_command="$compile_command $arg"
    13951677        finalize_command="$finalize_command $arg"
    1396         if test "$with_gcc" = "yes" ; then
    1397           compiler_flags="$compiler_flags $arg"
    1398         fi
     1678        compiler_flags="$compiler_flags $arg"
    13991679        continue
    14001680        ;;
     
    14121692      -no-install)
    14131693        case $host in
    1414         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
     1694        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
    14151695          # The PATH hackery in wrapper scripts is required on Windows
    1416           # in order for the loader to find any dlls it needs.
     1696          # and Darwin in order for the loader to find any dlls it needs.
    14171697          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
    14181698          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
     
    14731753        ;;
    14741754
    1475       -static)
     1755      -static | -static-libtool-libs)
    14761756        # The effects of -static are defined in a previous loop.
    14771757        # We used to do the same as -all-static on platforms that
     
    16341914              arg="$non_pic_object"
    16351915            fi
     1916          else
     1917            # If the PIC object exists, use it instead.
     1918            # $xdir was prepended to $pic_object above.
     1919            non_pic_object="$pic_object"
     1920            non_pic_objects="$non_pic_objects $non_pic_object"
    16361921          fi
    16371922        else
     
    17392024      $show "$mkdir $output_objdir"
    17402025      $run $mkdir $output_objdir
    1741       status=$?
    1742       if test "$status" -ne 0 && test ! -d "$output_objdir"; then
    1743         exit $status
     2026      exit_status=$?
     2027      if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
     2028        exit $exit_status
    17442029      fi
    17452030    fi
     
    18042089    need_relink=no # whether we're linking any uninstalled libtool libraries
    18052090    notinst_deplibs= # not-installed libtool libraries
    1806     notinst_path= # paths that contain not-installed libtool libraries
    18072091    case $linkmode in
    18082092    lib)
     
    18542138        found=no
    18552139        case $deplib in
    1856         -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
     2140        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
    18572141          if test "$linkmode,$pass" = "prog,link"; then
    18582142            compile_deplibs="$deplib $compile_deplibs"
    18592143            finalize_deplibs="$deplib $finalize_deplibs"
    18602144          else
    1861             deplibs="$deplib $deplibs"
     2145            compiler_flags="$compiler_flags $deplib"
    18622146          fi
    18632147          continue
     
    19782262          case $linkmode in
    19792263          lib)
    1980             if test "$deplibs_check_method" != pass_all; then
     2264            valid_a_lib=no
     2265            case $deplibs_check_method in
     2266              match_pattern*)
     2267                set dummy $deplibs_check_method
     2268                match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
     2269                if eval $echo \"$deplib\" 2>/dev/null \
     2270                    | $SED 10q \
     2271                    | $EGREP "$match_pattern_regex" > /dev/null; then
     2272                  valid_a_lib=yes
     2273                fi
     2274                ;;
     2275              pass_all)
     2276                valid_a_lib=yes
     2277                ;;
     2278            esac
     2279            if test "$valid_a_lib" != yes; then
    19812280              $echo
    19822281              $echo "*** Warning: Trying to link with static lib archive $deplib."
     
    20282327        if test "$found" = yes || test -f "$lib"; then :
    20292328        else
    2030           $echo "$modename: cannot find the library \`$lib'" 1>&2
     2329          $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
    20312330          exit $EXIT_FAILURE
    20322331        fi
     
    20522351        installed=yes
    20532352        shouldnotlink=no
     2353        avoidtemprpath=
     2354
    20542355
    20552356        # Read the .la file
     
    21502451            absdir="$libdir"
    21512452          fi
     2453          test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
    21522454        else
    2153           dir="$ladir/$objdir"
    2154           absdir="$abs_ladir/$objdir"
    2155           # Remove this search path later
    2156           notinst_path="$notinst_path $abs_ladir"
     2455          if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
     2456            dir="$ladir"
     2457            absdir="$abs_ladir"
     2458            # Remove this search path later
     2459            notinst_path="$notinst_path $abs_ladir"
     2460          else
     2461            dir="$ladir/$objdir"
     2462            absdir="$abs_ladir/$objdir"
     2463            # Remove this search path later
     2464            notinst_path="$notinst_path $abs_ladir"
     2465          fi
    21572466        fi # $installed = yes
    21582467        name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
     
    22252534        if test "$linkmode,$pass" = "prog,link"; then
    22262535          if test -n "$library_names" &&
    2227              { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
     2536             { { test "$prefer_static_libs" = no ||
     2537                 test "$prefer_static_libs,$installed" = "built,yes"; } ||
     2538               test -z "$old_library"; }; then
    22282539            # We need to hardcode the library path
    2229             if test -n "$shlibpath_var"; then
     2540            if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
    22302541              # Make sure the rpath contains only unique directories.
    22312542              case "$temp_rpath " in
    22322543              *" $dir "*) ;;
    22332544              *" $absdir "*) ;;
    2234               *) temp_rpath="$temp_rpath $dir" ;;
     2545              *) temp_rpath="$temp_rpath $absdir" ;;
    22352546              esac
    22362547            fi
     
    22692580
    22702581        link_static=no # Whether the deplib will be linked statically
     2582        use_static_libs=$prefer_static_libs
     2583        if test "$use_static_libs" = built && test "$installed" = yes ; then
     2584          use_static_libs=no
     2585        fi
    22712586        if test -n "$library_names" &&
    2272            { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
     2587           { test "$use_static_libs" = no || test -z "$old_library"; }; then
    22732588          if test "$installed" = no; then
    22742589            notinst_deplibs="$notinst_deplibs $lib"
     
    23832698                add="$dir/$linklib"
    23842699                case $host in
    2385                   *-*-sco3.2v5* ) add_dir="-L$dir" ;;
     2700                  *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
     2701                  *-*-sysv4*uw2*) add_dir="-L$dir" ;;
     2702                  *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
     2703                    *-*-unixware7*) add_dir="-L$dir" ;;
    23862704                  *-*-darwin* )
    23872705                    # if the lib is a module then we can not link against
    23882706                    # it, someone is ignoring the new warnings I added
    2389                     if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
     2707                    if /usr/bin/file -L $add 2> /dev/null |
     2708                      $EGREP ": [^:]* bundle" >/dev/null ; then
    23902709                      $echo "** Warning, lib $linklib is a module, not a shared library"
    23912710                      if test -z "$old_library" ; then
     
    24182737                # Try looking first in the location we're being installed to.
    24192738                if test -n "$inst_prefix_dir"; then
    2420                   case "$libdir" in
     2739                  case $libdir in
    24212740                    [\\/]*)
    24222741                      add_dir="$add_dir -L$inst_prefix_dir$libdir"
     
    24912810              # Try looking first in the location we're being installed to.
    24922811              if test -n "$inst_prefix_dir"; then
    2493                 case "$libdir" in
     2812                case $libdir in
    24942813                  [\\/]*)
    24952814                    add_dir="$add_dir -L$inst_prefix_dir$libdir"
     
    25522871            fi
    25532872          else
    2554             convenience="$convenience $dir/$old_library"
    2555             old_convenience="$old_convenience $dir/$old_library"
    25562873            deplibs="$dir/$old_library $deplibs"
    25572874            link_static=yes
     
    26712988              esac
    26722989              case " $deplibs " in
     2990              *" $path "*) ;;
     2991              *) deplibs="$path $deplibs" ;;
     2992              esac
     2993              case " $deplibs " in
    26732994              *" $depdepl "*) ;;
    26742995              *) deplibs="$depdepl $deplibs" ;;
    2675               esac
    2676               case " $deplibs " in
    2677               *" $path "*) ;;
    2678               *) deplibs="$deplibs $path" ;;
    26792996              esac
    26802997            done
     
    29153232          #
    29163233          case $version_type in
    2917           darwin|linux|osf|windows)
     3234          darwin|linux|osf|windows|none)
    29183235            current=`expr $number_major + $number_minor`
    29193236            age="$number_minor"
     
    29263243            ;;
    29273244          irix|nonstopux)
    2928             current=`expr $number_major + $number_minor - 1`
     3245            current=`expr $number_major + $number_minor`
    29293246            age="$number_minor"
    29303247            revision="$number_minor"
     3248            lt_irix_increment=no
    29313249            ;;
    29323250          *)
     
    29483266        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    29493267        *)
    2950           $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
     3268          $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
    29513269          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    29523270          exit $EXIT_FAILURE
     
    29573275        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    29583276        *)
    2959           $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
     3277          $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
    29603278          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    29613279          exit $EXIT_FAILURE
     
    29663284        0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
    29673285        *)
    2968           $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
     3286          $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
    29693287          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
    29703288          exit $EXIT_FAILURE
     
    29923310          # Darwin ld doesn't like 0 for these options...
    29933311          minor_current=`expr $current + 1`
     3312          xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
    29943313          verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
    29953314          ;;
     
    30063325
    30073326        irix | nonstopux)
    3008           major=`expr $current - $age + 1`
    3009 
     3327          if test "X$lt_irix_increment" = "Xno"; then
     3328            major=`expr $current - $age`
     3329          else
     3330            major=`expr $current - $age + 1`
     3331          fi
    30103332          case $version_type in
    30113333            nonstopux) verstring_prefix=nonstopux ;;
     
    31443466
    31453467      # Eliminate all temporary directories.
    3146       for path in $notinst_path; do
    3147         lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
    3148         deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
    3149         dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
    3150       done
     3468      #for path in $notinst_path; do
     3469      # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
     3470      # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
     3471      # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
     3472      #done
    31513473
    31523474      if test -n "$xrpath"; then
     
    31983520            # Don't link with libc until the a.out ld.so is fixed.
    31993521            ;;
    3200           *-*-openbsd* | *-*-freebsd*)
     3522          *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
    32013523            # Do not include libc due to us having libc/libc_r.
    3202             test "X$arg" = "X-lc" && continue
     3524            ;;
     3525          *-*-sco3.2v5* | *-*-sco5v6*)
     3526            # Causes problems with __ctype
     3527            ;;
     3528          *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
     3529            # Compiler inserts libc in the correct place for threads to work
    32033530            ;;
    32043531          *)
     
    32443571EOF
    32453572          $rm conftest
    3246           $LTCC -o conftest conftest.c $deplibs
    3247           if test "$?" -eq 0 ; then
     3573          if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
    32483574            ldd_output=`ldd conftest`
    32493575            for i in $deplibs; do
    3250               name="`expr $i : '-l\(.*\)'`"
     3576              name=`expr $i : '-l\(.*\)'`
    32513577              # If $name is empty we are operating on a -L argument.
    3252               if test "$name" != "" && test "$name" -ne "0"; then
     3578              if test "$name" != "" && test "$name" != "0"; then
    32533579                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
    32543580                  case " $predeps $postdeps " in
     
    32853611            # the situation: Compile a separate program for each library.
    32863612            for i in $deplibs; do
    3287               name="`expr $i : '-l\(.*\)'`"
     3613              name=`expr $i : '-l\(.*\)'`
    32883614              # If $name is empty we are operating on a -L argument.
    32893615              if test "$name" != "" && test "$name" != "0"; then
    32903616                $rm conftest
    3291                 $LTCC -o conftest conftest.c $i
    3292                 # Did it work?
    3293                 if test "$?" -eq 0 ; then
     3617                if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
    32943618                  ldd_output=`ldd conftest`
    32953619                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
     
    33233647                  $echo
    33243648                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
    3325                   $echo "***  make it link in!  You will probably need to install it or some"
     3649                  $echo "*** make it link in!  You will probably need to install it or some"
    33263650                  $echo "*** library that it depends on before this library will be fully"
    33273651                  $echo "*** functional.  Installing it before continuing would be even better."
     
    33373661          file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
    33383662          for a_deplib in $deplibs; do
    3339             name="`expr $a_deplib : '-l\(.*\)'`"
     3663            name=`expr $a_deplib : '-l\(.*\)'`
    33403664            # If $name is empty we are operating on a -L argument.
    33413665            if test "$name" != "" && test  "$name" != "0"; then
     
    34063730          match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
    34073731          for a_deplib in $deplibs; do
    3408             name="`expr $a_deplib : '-l\(.*\)'`"
     3732            name=`expr $a_deplib : '-l\(.*\)'`
    34093733            # If $name is empty we are operating on a -L argument.
    34103734            if test -n "$name" && test "$name" != "0"; then
     
    35363860      fi
    35373861
     3862
     3863      # move library search paths that coincide with paths to not yet
     3864      # installed libraries to the beginning of the library search list
     3865      new_libs=
     3866      for path in $notinst_path; do
     3867        case " $new_libs " in
     3868        *" -L$path/$objdir "*) ;;
     3869        *)
     3870          case " $deplibs " in
     3871          *" -L$path/$objdir "*)
     3872            new_libs="$new_libs -L$path/$objdir" ;;
     3873          esac
     3874          ;;
     3875        esac
     3876      done
     3877      for deplib in $deplibs; do
     3878        case $deplib in
     3879        -L*)
     3880          case " $new_libs " in
     3881          *" $deplib "*) ;;
     3882          *) new_libs="$new_libs $deplib" ;;
     3883          esac
     3884          ;;
     3885        *) new_libs="$new_libs $deplib" ;;
     3886        esac
     3887      done
     3888      deplibs="$new_libs"
     3889
     3890
    35383891      # All the library-specific variables (install_libdir is set above).
    35393892      library_names=
     
    35803933            libdir="$hardcode_libdirs"
    35813934            if test -n "$hardcode_libdir_flag_spec_ld"; then
    3582               eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
     3935              case $archive_cmds in
     3936              *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
     3937              *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
     3938              esac
    35833939            else
    35843940              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
     
    36193975
    36203976        lib="$output_objdir/$realname"
     3977        linknames=
    36213978        for link
    36223979        do
     
    36474004                $show "using reloadable object file for export list..."
    36484005                skipped_export=:
     4006                # Break out early, otherwise skipped_export may be
     4007                # set to false by a later but shorter cmd.
     4008                break
    36494009              fi
    36504010            done
     
    36804040          else
    36814041            gentop="$output_objdir/${outputname}x"
    3682             $show "${rm}r $gentop"
    3683             $run ${rm}r "$gentop"
    3684             $show "$mkdir $gentop"
    3685             $run $mkdir "$gentop"
    3686             status=$?
    3687             if test "$status" -ne 0 && test ! -d "$gentop"; then
    3688               exit $status
    3689             fi
    36904042            generated="$generated $gentop"
    36914043
    3692             for xlib in $convenience; do
    3693               # Extract the objects.
    3694               case $xlib in
    3695               [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    3696               *) xabs=`pwd`"/$xlib" ;;
    3697               esac
    3698               xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    3699               xdir="$gentop/$xlib"
    3700 
    3701               $show "${rm}r $xdir"
    3702               $run ${rm}r "$xdir"
    3703               $show "$mkdir $xdir"
    3704               $run $mkdir "$xdir"
    3705               status=$?
    3706               if test "$status" -ne 0 && test ! -d "$xdir"; then
    3707                 exit $status
    3708               fi
    3709               # We will extract separately just the conflicting names and we will no
    3710               # longer touch any unique names. It is faster to leave these extract
    3711               # automatically by $AR in one run.
    3712               $show "(cd $xdir && $AR x $xabs)"
    3713               $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    3714               if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    3715                 :
    3716               else
    3717                 $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    3718                 $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    3719                 $AR t "$xabs" | sort | uniq -cd | while read -r count name
    3720                 do
    3721                   i=1
    3722                   while test "$i" -le "$count"
    3723                   do
    3724                    # Put our $i before any first dot (extension)
    3725                    # Never overwrite any file
    3726                    name_to="$name"
    3727                    while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    3728                    do
    3729                      name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    3730                    done
    3731                    $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    3732                    $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    3733                    i=`expr $i + 1`
    3734                   done
    3735                 done
    3736               fi
    3737 
    3738               libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    3739             done
    3740           fi
    3741         fi
    3742 
     4044            func_extract_archives $gentop $convenience
     4045            libobjs="$libobjs $func_extract_archives_result"
     4046          fi
     4047        fi
     4048       
    37434049        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
    37444050          eval flag=\"$thread_safe_flag_spec\"
     
    37704076        fi
    37714077
    3772         if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
     4078        if test "X$skipped_export" != "X:" &&
     4079           len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    37734080           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
    37744081          :
     
    37894096          fi
    37904097          save_output=$output
     4098          output_la=`$echo "X$output" | $Xsed -e "$basename"`
    37914099
    37924100          # Clear the reloadable object creation command queue and
     
    37984106          last_robj=
    37994107          k=1
    3800           output=$output_objdir/$save_output-${k}.$objext
     4108          output=$output_objdir/$output_la-${k}.$objext
    38014109          # Loop over the list of objects to be linked.
    38024110          for obj in $save_libobjs
     
    38044112            eval test_cmds=\"$reload_cmds $objlist $last_robj\"
    38054113            if test "X$objlist" = X ||
    3806                { len=`expr "X$test_cmds" : ".*"` &&
     4114               { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    38074115                 test "$len" -le "$max_cmd_len"; }; then
    38084116              objlist="$objlist $obj"
     
    38184126                eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
    38194127              fi
    3820               last_robj=$output_objdir/$save_output-${k}.$objext
     4128              last_robj=$output_objdir/$output_la-${k}.$objext
    38214129              k=`expr $k + 1`
    3822               output=$output_objdir/$save_output-${k}.$objext
     4130              output=$output_objdir/$output_la-${k}.$objext
    38234131              objlist=$obj
    38244132              len=1
     
    38404148          fi
    38414149
    3842           # Set up a command to remove the reloadale object files
     4150          # Set up a command to remove the reloadable object files
    38434151          # after they are used.
    38444152          i=0
     
    38464154          do
    38474155            i=`expr $i + 1`
    3848             delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
     4156            delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
    38494157          done
    38504158
     
    38944202          eval cmd=\"$cmd\"
    38954203          $show "$cmd"
    3896           $run eval "$cmd" || exit $?
     4204          $run eval "$cmd" || {
     4205            lt_exit=$?
     4206
     4207            # Restore the uninstalled library and exit
     4208            if test "$mode" = relink; then
     4209              $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
     4210            fi
     4211
     4212            exit $lt_exit
     4213          }
    38974214        done
    38984215        IFS="$save_ifs"
     
    39014218        if test "$mode" = relink; then
    39024219          $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
     4220
     4221          if test -n "$convenience"; then
     4222            if test -z "$whole_archive_flag_spec"; then
     4223              $show "${rm}r $gentop"
     4224              $run ${rm}r "$gentop"
     4225            fi
     4226          fi
     4227
    39034228          exit $EXIT_SUCCESS
    39044229        fi
     
    39704295      gentop=
    39714296      # reload_cmds runs $LD directly, so let us get rid of
    3972       # -Wl from whole_archive_flag_spec
     4297      # -Wl from whole_archive_flag_spec and hope we can get by with
     4298      # turning comma into space..
    39734299      wl=
    39744300
    39754301      if test -n "$convenience"; then
    39764302        if test -n "$whole_archive_flag_spec"; then
    3977           eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
     4303          eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
     4304          reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
    39784305        else
    39794306          gentop="$output_objdir/${obj}x"
    3980           $show "${rm}r $gentop"
    3981           $run ${rm}r "$gentop"
    3982           $show "$mkdir $gentop"
    3983           $run $mkdir "$gentop"
    3984           status=$?
    3985           if test "$status" -ne 0 && test ! -d "$gentop"; then
    3986             exit $status
    3987           fi
    39884307          generated="$generated $gentop"
    39894308
    3990           for xlib in $convenience; do
    3991             # Extract the objects.
    3992             case $xlib in
    3993             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    3994             *) xabs=`pwd`"/$xlib" ;;
    3995             esac
    3996             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    3997             xdir="$gentop/$xlib"
    3998 
    3999             $show "${rm}r $xdir"
    4000             $run ${rm}r "$xdir"
    4001             $show "$mkdir $xdir"
    4002             $run $mkdir "$xdir"
    4003             status=$?
    4004             if test "$status" -ne 0 && test ! -d "$xdir"; then
    4005               exit $status
    4006             fi
    4007             # We will extract separately just the conflicting names and we will no
    4008             # longer touch any unique names. It is faster to leave these extract
    4009             # automatically by $AR in one run.
    4010             $show "(cd $xdir && $AR x $xabs)"
    4011             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    4012             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    4013               :
    4014             else
    4015               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    4016               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    4017               $AR t "$xabs" | sort | uniq -cd | while read -r count name
    4018               do
    4019                 i=1
    4020                 while test "$i" -le "$count"
    4021                 do
    4022                  # Put our $i before any first dot (extension)
    4023                  # Never overwrite any file
    4024                  name_to="$name"
    4025                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    4026                  do
    4027                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    4028                  done
    4029                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    4030                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    4031                  i=`expr $i + 1`
    4032                 done
    4033               done
    4034             fi
    4035 
    4036             reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
    4037           done
     4309          func_extract_archives $gentop $convenience
     4310          reload_conv_objs="$reload_objs $func_extract_archives_result"
    40384311        fi
    40394312      fi
     
    41354408        ;;
    41364409      esac
     4410
     4411
     4412      # move library search paths that coincide with paths to not yet
     4413      # installed libraries to the beginning of the library search list
     4414      new_libs=
     4415      for path in $notinst_path; do
     4416        case " $new_libs " in
     4417        *" -L$path/$objdir "*) ;;
     4418        *)
     4419          case " $compile_deplibs " in
     4420          *" -L$path/$objdir "*)
     4421            new_libs="$new_libs -L$path/$objdir" ;;
     4422          esac
     4423          ;;
     4424        esac
     4425      done
     4426      for deplib in $compile_deplibs; do
     4427        case $deplib in
     4428        -L*)
     4429          case " $new_libs " in
     4430          *" $deplib "*) ;;
     4431          *) new_libs="$new_libs $deplib" ;;
     4432          esac
     4433          ;;
     4434        *) new_libs="$new_libs $deplib" ;;
     4435        esac
     4436      done
     4437      compile_deplibs="$new_libs"
     4438
    41374439
    41384440      compile_command="$compile_command $compile_deplibs"
     
    41804482        case $host in
    41814483        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
     4484          testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
    41824485          case :$dllsearchpath: in
    41834486          *":$libdir:"*) ;;
    41844487          *) dllsearchpath="$dllsearchpath:$libdir";;
     4488          esac
     4489          case :$dllsearchpath: in
     4490          *":$testbindir:"*) ;;
     4491          *) dllsearchpath="$dllsearchpath:$testbindir";;
    41854492          esac
    41864493          ;;
     
    42974604            # Prepare the list of exported symbols
    42984605            if test -z "$export_symbols"; then
    4299               export_symbols="$output_objdir/$output.exp"
     4606              export_symbols="$output_objdir/$outputname.exp"
    43004607              $run $rm $export_symbols
    4301               $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
     4608              $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
     4609              case $host in
     4610              *cygwin* | *mingw* )
     4611                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
     4612                $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
     4613                ;;
     4614              esac
    43024615            else
    4303               $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
    4304               $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
     4616              $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
     4617              $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
    43054618              $run eval 'mv "$nlist"T "$nlist"'
     4619              case $host in
     4620              *cygwin* | *mingw* )
     4621                $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
     4622                $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
     4623                ;;
     4624              esac
    43064625            fi
    43074626          fi
     
    43544673
    43554674/* The mapping between symbol names and symbols. */
     4675"
     4676
     4677            case $host in
     4678            *cygwin* | *mingw* )
     4679          $echo >> "$output_objdir/$dlsyms" "\
     4680/* DATA imports from DLLs on WIN32 can't be const, because
     4681   runtime relocations are performed -- see ld's documentation
     4682   on pseudo-relocs */
     4683struct {
     4684"
     4685              ;;
     4686            * )
     4687          $echo >> "$output_objdir/$dlsyms" "\
    43564688const struct {
     4689"
     4690              ;;
     4691            esac
     4692
     4693
     4694          $echo >> "$output_objdir/$dlsyms" "\
    43574695  const char *name;
    43584696  lt_ptr address;
     
    44014739
    44024740          # Now compile the dynamic symbol file.
    4403           $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
    4404           $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
     4741          $show "(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
     4742          $run eval '(cd $output_objdir && $LTCC  $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
    44054743
    44064744          # Clean up the generated files.
     
    44094747
    44104748          # Transform the symbol file into the correct name.
    4411           compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
    4412           finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
     4749          case $host in
     4750          *cygwin* | *mingw* )
     4751            if test -f "$output_objdir/${outputname}.def" ; then
     4752              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
     4753              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
     4754            else
     4755              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
     4756              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
     4757             fi
     4758            ;;
     4759          * )
     4760            compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
     4761            finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
     4762            ;;
     4763          esac
    44134764          ;;
    44144765        *)
     
    44234774
    44244775        # Nullify the symbol file.
    4425         compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
    4426         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
     4776        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
     4777        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
    44274778      fi
    44284779
    44294780      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
    44304781        # Replace the output file specification.
    4431         compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
     4782        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
    44324783        link_command="$compile_command$compile_rpath"
    44334784
     
    44354786        $show "$link_command"
    44364787        $run eval "$link_command"
    4437         status=$?
     4788        exit_status=$?
    44384789
    44394790        # Delete the generated files.
     
    44434794        fi
    44444795
    4445         exit $status
     4796        exit $exit_status
    44464797      fi
    44474798
     
    45164867          link_command="$finalize_var$compile_command$finalize_rpath"
    45174868          if test "$fast_install" = yes; then
    4518             relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
     4869            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
    45194870          else
    45204871            # fast_install is set to needless
     
    45534904        done
    45544905        relink_command="(cd `pwd`; $relink_command)"
    4555         relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
     4906        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
    45564907      fi
    45574908
     
    45834934        case $host in
    45844935          *cygwin* | *mingw* )
    4585             cwrappersource=`$echo ${objdir}/lt-${output}.c`
    4586             cwrapper=`$echo ${output}.exe`
    4587             $rm $cwrappersource $cwrapper
    4588             trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
     4936            output_name=`basename $output`
     4937            output_path=`dirname $output`
     4938            cwrappersource="$output_path/$objdir/lt-$output_name.c"
     4939            cwrapper="$output_path/$output_name.exe"
     4940            $rm $cwrappersource $cwrapper
     4941            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
    45894942
    45904943            cat > $cwrappersource <<EOF
     
    46114964#include <stdarg.h>
    46124965#include <assert.h>
     4966#include <string.h>
     4967#include <ctype.h>
     4968#include <sys/stat.h>
    46134969
    46144970#if defined(PATH_MAX)
     
    46214977
    46224978#ifndef DIR_SEPARATOR
    4623 #define DIR_SEPARATOR '/'
     4979# define DIR_SEPARATOR '/'
     4980# define PATH_SEPARATOR ':'
    46244981#endif
    46254982
    46264983#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
    46274984  defined (__OS2__)
    4628 #define HAVE_DOS_BASED_FILE_SYSTEM
    4629 #ifndef DIR_SEPARATOR_2
    4630 #define DIR_SEPARATOR_2 '\\'
    4631 #endif
     4985# define HAVE_DOS_BASED_FILE_SYSTEM
     4986# ifndef DIR_SEPARATOR_2
     4987#  define DIR_SEPARATOR_2 '\\'
     4988# endif
     4989# ifndef PATH_SEPARATOR_2
     4990#  define PATH_SEPARATOR_2 ';'
     4991# endif
    46324992#endif
    46334993
     
    46394999#endif /* DIR_SEPARATOR_2 */
    46405000
     5001#ifndef PATH_SEPARATOR_2
     5002# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
     5003#else /* PATH_SEPARATOR_2 */
     5004# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
     5005#endif /* PATH_SEPARATOR_2 */
     5006
    46415007#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
    46425008#define XFREE(stale) do { \
     
    46445010} while (0)
    46455011
     5012/* -DDEBUG is fairly common in CFLAGS.  */
     5013#undef DEBUG
     5014#if defined DEBUGWRAPPER
     5015# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
     5016#else
     5017# define DEBUG(format, ...)
     5018#endif
     5019
    46465020const char *program_name = NULL;
    46475021
    46485022void * xmalloc (size_t num);
    46495023char * xstrdup (const char *string);
    4650 char * basename (const char *name);
    4651 char * fnqualify(const char *path);
     5024const char * base_name (const char *name);
     5025char * find_executable(const char *wrapper);
     5026int    check_executable(const char *path);
    46525027char * strendzap(char *str, const char *pat);
    46535028void lt_fatal (const char *message, ...);
     
    46595034  int i;
    46605035
    4661   program_name = (char *) xstrdup ((char *) basename (argv[0]));
     5036  program_name = (char *) xstrdup (base_name (argv[0]));
     5037  DEBUG("(main) argv[0]      : %s\n",argv[0]);
     5038  DEBUG("(main) program_name : %s\n",program_name);
    46625039  newargz = XMALLOC(char *, argc+2);
    46635040EOF
    46645041
    4665             cat >> $cwrappersource <<EOF
    4666   newargz[0] = "$SHELL";
     5042            cat >> $cwrappersource <<EOF
     5043  newargz[0] = (char *) xstrdup("$SHELL");
    46675044EOF
    46685045
    4669             cat >> $cwrappersource <<"EOF"
    4670   newargz[1] = fnqualify(argv[0]);
     5046            cat >> $cwrappersource <<"EOF"
     5047  newargz[1] = find_executable(argv[0]);
     5048  if (newargz[1] == NULL)
     5049    lt_fatal("Couldn't find %s", argv[0]);
     5050  DEBUG("(main) found exe at : %s\n",newargz[1]);
    46715051  /* we know the script has the same name, without the .exe */
    46725052  /* so make sure newargz[1] doesn't end in .exe */
     
    46755055    newargz[i+1] = xstrdup(argv[i]);
    46765056  newargz[argc+1] = NULL;
     5057
     5058  for (i=0; i<argc+1; i++)
     5059  {
     5060    DEBUG("(main) newargz[%d]   : %s\n",i,newargz[i]);
     5061    ;
     5062  }
     5063
    46775064EOF
    46785065
    4679             cat >> $cwrappersource <<EOF
     5066            case $host_os in
     5067              mingw*)
     5068                cat >> $cwrappersource <<EOF
     5069  execv("$SHELL",(char const **)newargz);
     5070EOF
     5071              ;;
     5072              *)
     5073                cat >> $cwrappersource <<EOF
    46805074  execv("$SHELL",newargz);
    46815075EOF
    4682 
    4683             cat >> $cwrappersource <<"EOF"
     5076              ;;
     5077            esac
     5078
     5079            cat >> $cwrappersource <<"EOF"
     5080  return 127;
    46845081}
    46855082
     
    47015098}
    47025099
    4703 char *
    4704 basename (const char *name)
     5100const char *
     5101base_name (const char *name)
    47055102{
    47065103  const char *base;
     
    47085105#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    47095106  /* Skip over the disk name in MSDOS pathnames. */
    4710   if (isalpha (name[0]) && name[1] == ':')
     5107  if (isalpha ((unsigned char)name[0]) && name[1] == ':')
    47115108    name += 2;
    47125109#endif
     
    47155112    if (IS_DIR_SEPARATOR (*name))
    47165113      base = name + 1;
    4717   return (char *) base;
     5114  return base;
    47185115}
    47195116
     5117int
     5118check_executable(const char * path)
     5119{
     5120  struct stat st;
     5121
     5122  DEBUG("(check_executable)  : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
     5123  if ((!path) || (!*path))
     5124    return 0;
     5125
     5126  if ((stat (path, &st) >= 0) &&
     5127      (
     5128        /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
     5129#if defined (S_IXOTH)
     5130       ((st.st_mode & S_IXOTH) == S_IXOTH) ||
     5131#endif
     5132#if defined (S_IXGRP)
     5133       ((st.st_mode & S_IXGRP) == S_IXGRP) ||
     5134#endif
     5135       ((st.st_mode & S_IXUSR) == S_IXUSR))
     5136      )
     5137    return 1;
     5138  else
     5139    return 0;
     5140}
     5141
     5142/* Searches for the full path of the wrapper.  Returns
     5143   newly allocated full path name if found, NULL otherwise */
    47205144char *
    4721 fnqualify(const char *path)
     5145find_executable (const char* wrapper)
    47225146{
    4723   size_t size;
    4724   char *p;
     5147  int has_slash = 0;
     5148  const char* p;
     5149  const char* p_next;
     5150  /* static buffer for getcwd */
    47255151  char tmp[LT_PATHMAX + 1];
    4726 
    4727   assert(path != NULL);
    4728 
    4729   /* Is it qualified already? */
     5152  int tmp_len;
     5153  char* concat_name;
     5154
     5155  DEBUG("(find_executable)  : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
     5156
     5157  if ((wrapper == NULL) || (*wrapper == '\0'))
     5158    return NULL;
     5159
     5160  /* Absolute path? */
    47305161#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
    4731   if (isalpha (path[0]) && path[1] == ':')
    4732     return xstrdup (path);
     5162  if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
     5163  {
     5164    concat_name = xstrdup (wrapper);
     5165    if (check_executable(concat_name))
     5166      return concat_name;
     5167    XFREE(concat_name);
     5168  }
     5169  else
     5170  {
    47335171#endif
    4734   if (IS_DIR_SEPARATOR (path[0]))
    4735     return xstrdup (path);
    4736 
    4737   /* prepend the current directory */
    4738   /* doesn't handle '~' */
     5172    if (IS_DIR_SEPARATOR (wrapper[0]))
     5173    {
     5174      concat_name = xstrdup (wrapper);
     5175      if (check_executable(concat_name))
     5176        return concat_name;
     5177      XFREE(concat_name);
     5178    }
     5179#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
     5180  }
     5181#endif
     5182
     5183  for (p = wrapper; *p; p++)
     5184    if (*p == '/')
     5185    {
     5186      has_slash = 1;
     5187      break;
     5188    }
     5189  if (!has_slash)
     5190  {
     5191    /* no slashes; search PATH */
     5192    const char* path = getenv ("PATH");
     5193    if (path != NULL)
     5194    {
     5195      for (p = path; *p; p = p_next)
     5196      {
     5197        const char* q;
     5198        size_t p_len;
     5199        for (q = p; *q; q++)
     5200          if (IS_PATH_SEPARATOR(*q))
     5201            break;
     5202        p_len = q - p;
     5203        p_next = (*q == '\0' ? q : q + 1);
     5204        if (p_len == 0)
     5205        {
     5206          /* empty path: current directory */
     5207          if (getcwd (tmp, LT_PATHMAX) == NULL)
     5208            lt_fatal ("getcwd failed");
     5209          tmp_len = strlen(tmp);
     5210          concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
     5211          memcpy (concat_name, tmp, tmp_len);
     5212          concat_name[tmp_len] = '/';
     5213          strcpy (concat_name + tmp_len + 1, wrapper);
     5214        }
     5215        else
     5216        {
     5217          concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
     5218          memcpy (concat_name, p, p_len);
     5219          concat_name[p_len] = '/';
     5220          strcpy (concat_name + p_len + 1, wrapper);
     5221        }
     5222        if (check_executable(concat_name))
     5223          return concat_name;
     5224        XFREE(concat_name);
     5225      }
     5226    }
     5227    /* not found in PATH; assume curdir */
     5228  }
     5229  /* Relative path | not found in path: prepend cwd */
    47395230  if (getcwd (tmp, LT_PATHMAX) == NULL)
    47405231    lt_fatal ("getcwd failed");
    4741   size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
    4742   p = XMALLOC(char, size);
    4743   sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
    4744   return p;
     5232  tmp_len = strlen(tmp);
     5233  concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
     5234  memcpy (concat_name, tmp, tmp_len);
     5235  concat_name[tmp_len] = '/';
     5236  strcpy (concat_name + tmp_len + 1, wrapper);
     5237
     5238  if (check_executable(concat_name))
     5239    return concat_name;
     5240  XFREE(concat_name);
     5241  return NULL;
    47455242}
    47465243
     
    47865283}
    47875284EOF
    4788           # we should really use a build-platform specific compiler
    4789           # here, but OTOH, the wrappers (shell script and this C one)
    4790           # are only useful if you want to execute the "real" binary.
    4791           # Since the "real" binary is built for $host, then this
    4792           # wrapper might as well be built for $host, too.
    4793           $run $LTCC -s -o $cwrapper $cwrappersource
    4794           ;;
    4795         esac
    4796         $rm $output
    4797         trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
     5285          # we should really use a build-platform specific compiler
     5286          # here, but OTOH, the wrappers (shell script and this C one)
     5287          # are only useful if you want to execute the "real" binary.
     5288          # Since the "real" binary is built for $host, then this
     5289          # wrapper might as well be built for $host, too.
     5290          $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
     5291          ;;
     5292        esac
     5293        $rm $output
     5294        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
    47985295
    47995296        $echo > $output "\
     
    48145311sed_quote_subst='$sed_quote_subst'
    48155312
     5313# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
     5314if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
     5315  emulate sh
     5316  NULLCMD=:
     5317  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
     5318  # is contrary to our usage.  Disable this feature.
     5319  alias -g '\${1+\"\$@\"}'='\"\$@\"'
     5320  setopt NO_GLOB_SUBST
     5321else
     5322  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
     5323fi
     5324BIN_SH=xpg4; export BIN_SH # for Tru64
     5325DUALCASE=1; export DUALCASE # for MKS sh
     5326
    48165327# The HP-UX ksh and POSIX shell print the target directory to stdout
    48175328# if CDPATH is set.
    4818 if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
     5329(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    48195330
    48205331relink_command=\"$relink_command\"
     
    49455456        *-*-mingw | *-*-os2*)
    49465457          $echo >> $output "\
    4947       exec \$progdir\\\\\$program \${1+\"\$@\"}
     5458      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
    49485459"
    49495460          ;;
     
    49515462        *)
    49525463          $echo >> $output "\
    4953       exec \$progdir/\$program \${1+\"\$@\"}
     5464      exec \"\$progdir/\$program\" \${1+\"\$@\"}
    49545465"
    49555466          ;;
    49565467        esac
    49575468        $echo >> $output "\
    4958       \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
     5469      \$echo \"\$0: cannot exec \$program \$*\"
    49595470      exit $EXIT_FAILURE
    49605471    fi
    49615472  else
    49625473    # The program doesn't exist.
    4963     \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
     5474    \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
    49645475    \$echo \"This script is just a wrapper for \$program.\" 1>&2
    49655476    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
     
    49935504      if test -n "$addlibs"; then
    49945505        gentop="$output_objdir/${outputname}x"
    4995         $show "${rm}r $gentop"
    4996         $run ${rm}r "$gentop"
    4997         $show "$mkdir $gentop"
    4998         $run $mkdir "$gentop"
    4999         status=$?
    5000         if test "$status" -ne 0 && test ! -d "$gentop"; then
    5001           exit $status
    5002         fi
    50035506        generated="$generated $gentop"
    50045507
    5005         # Add in members from convenience archives.
    5006         for xlib in $addlibs; do
    5007           # Extract the objects.
    5008           case $xlib in
    5009           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
    5010           *) xabs=`pwd`"/$xlib" ;;
    5011           esac
    5012           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
    5013           xdir="$gentop/$xlib"
    5014 
    5015           $show "${rm}r $xdir"
    5016           $run ${rm}r "$xdir"
    5017           $show "$mkdir $xdir"
    5018           $run $mkdir "$xdir"
    5019           status=$?
    5020           if test "$status" -ne 0 && test ! -d "$xdir"; then
    5021             exit $status
    5022           fi
    5023           # We will extract separately just the conflicting names and we will no
    5024           # longer touch any unique names. It is faster to leave these extract
    5025           # automatically by $AR in one run.
    5026           $show "(cd $xdir && $AR x $xabs)"
    5027           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
    5028           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
    5029             :
    5030           else
    5031             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
    5032             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
    5033             $AR t "$xabs" | sort | uniq -cd | while read -r count name
    5034             do
    5035               i=1
    5036               while test "$i" -le "$count"
    5037               do
    5038                # Put our $i before any first dot (extension)
    5039                # Never overwrite any file
    5040                name_to="$name"
    5041                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
    5042                do
    5043                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
    5044                done
    5045                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
    5046                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
    5047                i=`expr $i + 1`
    5048               done
    5049             done
    5050           fi
    5051 
    5052           oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
    5053         done
     5508        func_extract_archives $gentop $addlibs
     5509        oldobjs="$oldobjs $func_extract_archives_result"
    50545510      fi
    50555511
     
    50585514       cmds=$old_archive_from_new_cmds
    50595515      else
     5516        # POSIX demands no paths to be encoded in archives.  We have
     5517        # to avoid creating archives with duplicate basenames if we
     5518        # might have to extract them afterwards, e.g., when creating a
     5519        # static archive out of a convenience library, or when linking
     5520        # the entirety of a libtool archive into another (currently
     5521        # not supported by libtool).
     5522        if (for obj in $oldobjs
     5523            do
     5524              $echo "X$obj" | $Xsed -e 's%^.*/%%'
     5525            done | sort | sort -uc >/dev/null 2>&1); then
     5526          :
     5527        else
     5528          $echo "copying selected object files to avoid basename conflicts..."
     5529
     5530          if test -z "$gentop"; then
     5531            gentop="$output_objdir/${outputname}x"
     5532            generated="$generated $gentop"
     5533
     5534            $show "${rm}r $gentop"
     5535            $run ${rm}r "$gentop"
     5536            $show "$mkdir $gentop"
     5537            $run $mkdir "$gentop"
     5538            exit_status=$?
     5539            if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
     5540              exit $exit_status
     5541            fi
     5542          fi
     5543
     5544          save_oldobjs=$oldobjs
     5545          oldobjs=
     5546          counter=1
     5547          for obj in $save_oldobjs
     5548          do
     5549            objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
     5550            case " $oldobjs " in
     5551            " ") oldobjs=$obj ;;
     5552            *[\ /]"$objbase "*)
     5553              while :; do
     5554                # Make sure we don't pick an alternate name that also
     5555                # overlaps.
     5556                newobj=lt$counter-$objbase
     5557                counter=`expr $counter + 1`
     5558                case " $oldobjs " in
     5559                *[\ /]"$newobj "*) ;;
     5560                *) if test ! -f "$gentop/$newobj"; then break; fi ;;
     5561                esac
     5562              done
     5563              $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
     5564              $run ln "$obj" "$gentop/$newobj" ||
     5565              $run cp "$obj" "$gentop/$newobj"
     5566              oldobjs="$oldobjs $gentop/$newobj"
     5567              ;;
     5568            *) oldobjs="$oldobjs $obj" ;;
     5569            esac
     5570          done
     5571        fi
     5572
    50605573        eval cmds=\"$old_archive_cmds\"
    50615574
     
    50715584          concat_cmds=
    50725585          save_oldobjs=$oldobjs
    5073           # GNU ar 2.10+ was changed to match POSIX; thus no paths are
    5074           # encoded into archives.  This makes 'ar r' malfunction in
    5075           # this piecewise linking case whenever conflicting object
    5076           # names appear in distinct ar calls; check, warn and compensate.
    5077             if (for obj in $save_oldobjs
    5078             do
    5079               $echo "X$obj" | $Xsed -e 's%^.*/%%'
    5080             done | sort | sort -uc >/dev/null 2>&1); then
    5081             :
    5082           else
    5083             $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
    5084             $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
    5085             AR_FLAGS=cq
    5086           fi
     5586
    50875587          # Is there a better way of finding the last object in the list?
    50885588          for obj in $save_oldobjs
     
    50955595            objlist="$objlist $obj"
    50965596            eval test_cmds=\"$old_archive_cmds\"
    5097             if len=`expr "X$test_cmds" : ".*"` &&
     5597            if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
    50985598               test "$len" -le "$max_cmd_len"; then
    50995599              :
     
    51535653      # Quote the link command for shipping.
    51545654      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
    5155       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
     5655      relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
    51565656      if test "$hardcode_automatic" = yes ; then
    51575657        relink_command=
     
    52925792    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
    52935793       # Allow the use of GNU shtool's install command.
    5294        $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
     5794       $echo "X$nonopt" | grep shtool > /dev/null; then
    52955795      # Aesthetically quote it.
    52965796      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
    52975797      case $arg in
    5298       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*)
     5798      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    52995799        arg="\"$arg\""
    53005800        ;;
     
    53055805    else
    53065806      install_prog=
    5307       arg="$nonopt"
     5807      arg=$nonopt
    53085808    fi
    53095809
     
    53125812    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    53135813    case $arg in
    5314     *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*)
     5814    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
    53155815      arg="\"$arg\""
    53165816      ;;
     
    53305830      if test -n "$dest"; then
    53315831        files="$files $dest"
    5332         dest="$arg"
     5832        dest=$arg
    53335833        continue
    53345834      fi
     
    53365836      case $arg in
    53375837      -d) isdir=yes ;;
    5338       -f) prev="-f" ;;
    5339       -g) prev="-g" ;;
    5340       -m) prev="-m" ;;
    5341       -o) prev="-o" ;;
     5838      -f)
     5839        case " $install_prog " in
     5840        *[\\\ /]cp\ *) ;;
     5841        *) prev=$arg ;;
     5842        esac
     5843        ;;
     5844      -g | -m | -o) prev=$arg ;;
    53425845      -s)
    53435846        stripme=" -s"
    53445847        continue
    53455848        ;;
    5346       -*) ;;
    5347 
     5849      -*)
     5850        ;;
    53485851      *)
    53495852        # If the previous option needed an argument, then skip it.
     
    53515854          prev=
    53525855        else
    5353           dest="$arg"
     5856          dest=$arg
    53545857          continue
    53555858        fi
     
    53605863      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
    53615864      case $arg in
    5362       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*)
     5865      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
    53635866        arg="\"$arg\""
    53645867        ;;
     
    54955998          if test -n "$inst_prefix_dir"; then
    54965999            # Stick the inst_prefix_dir data into the link command.
    5497             relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
     6000            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
    54986001          else
    5499             relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
     6002            relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
    55006003          fi
    55016004
     
    55296032          if test "$#" -gt 0; then
    55306033            # Delete the old symlinks, and create new ones.
     6034            # Try `ln -sf' first, because the `ln' binary might depend on
     6035            # the symlink we replace!  Solaris /bin/ln does not understand -f,
     6036            # so we also need to try rm && ln -s.
    55316037            for linkname
    55326038            do
    55336039              if test "$linkname" != "$realname"; then
    5534                 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
    5535                 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
     6040                $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
     6041                $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
    55366042              fi
    55376043            done
     
    55466052            eval cmd=\"$cmd\"
    55476053            $show "$cmd"
    5548             $run eval "$cmd" || exit $?
     6054            $run eval "$cmd" || {
     6055              lt_exit=$?
     6056
     6057              # Restore the uninstalled library and exit
     6058              if test "$mode" = relink; then
     6059                $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
     6060              fi
     6061
     6062              exit $lt_exit
     6063            }
    55496064          done
    55506065          IFS="$save_ifs"
     
    56406155          relink_command=
    56416156
    5642           # To insure that "foo" is sourced, and not "foo.exe",
    5643           # finese the cygwin/MSYS system by explicitly sourcing "foo."
    5644           # which disallows the automatic-append-.exe behavior.
    5645           case $build in
    5646           *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
    5647           *) wrapperdot=${wrapper} ;;
    5648           esac
     6157          # Note that it is not necessary on cygwin/mingw to append a dot to
     6158          # foo even if both foo and FILE.exe exist: automatic-append-.exe
     6159          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
     6160          # `FILE.' does not work on cygwin managed mounts.
     6161          #
    56496162          # If there is no directory component, then add one.
    5650           case $file in
    5651           */* | *\\*) . ${wrapperdot} ;;
    5652           *) . ./${wrapperdot} ;;
     6163          case $wrapper in
     6164          */* | *\\*) . ${wrapper} ;;
     6165          *) . ./${wrapper} ;;
    56536166          esac
    56546167
     
    56786191
    56796192          relink_command=
    5680           # To insure that "foo" is sourced, and not "foo.exe",
    5681           # finese the cygwin/MSYS system by explicitly sourcing "foo."
    5682           # which disallows the automatic-append-.exe behavior.
    5683           case $build in
    5684           *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
    5685           *) wrapperdot=${wrapper} ;;
    5686           esac
     6193          # Note that it is not necessary on cygwin/mingw to append a dot to
     6194          # foo even if both foo and FILE.exe exist: automatic-append-.exe
     6195          # behavior happens only for exec(3), not for open(2)!  Also, sourcing
     6196          # `FILE.' does not work on cygwin managed mounts.
     6197          #
    56876198          # If there is no directory component, then add one.
    5688           case $file in
    5689           */* | *\\*) . ${wrapperdot} ;;
    5690           *) . ./${wrapperdot} ;;
     6199          case $wrapper in
     6200          */* | *\\*) . ${wrapper} ;;
     6201          *) . ./${wrapper} ;;
    56916202          esac
    56926203
     
    56946205          if test "$fast_install" = no && test -n "$relink_command"; then
    56956206            if test "$finalize" = yes && test -z "$run"; then
    5696               tmpdir="/tmp"
    5697               test -n "$TMPDIR" && tmpdir="$TMPDIR"
    5698               tmpdir="$tmpdir/libtool-$$"
    5699               save_umask=`umask`
    5700               umask 0077
    5701               if $mkdir "$tmpdir"; then
    5702                 umask $save_umask
    5703               else
    5704                 umask $save_umask
    5705                 $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
    5706                 continue
    5707               fi
     6207              tmpdir=`func_mktempdir`
    57086208              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
    57096209              outputname="$tmpdir/$file"
    57106210              # Replace the output file specification.
    5711               relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
     6211              relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
    57126212
    57136213              $show "$relink_command"
     
    57296229
    57306230        # remove .exe since cygwin /usr/bin/install will append another
    5731         # one anyways
     6231        # one anyway 
    57326232        case $install_prog,$host in
    57336233        */usr/bin/install*,*cygwin*)
     
    58296329    test "$show" = : && exit $EXIT_SUCCESS
    58306330
    5831     $echo "----------------------------------------------------------------------"
     6331    $echo "X----------------------------------------------------------------------" | $Xsed
    58326332    $echo "Libraries have been installed in:"
    58336333    for libdir in $libdirs; do
     
    58626362    $echo "See any operating system documentation about shared libraries for"
    58636363    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
    5864     $echo "----------------------------------------------------------------------"
     6364    $echo "X----------------------------------------------------------------------" | $Xsed
    58656365    exit $EXIT_SUCCESS
    58666366    ;;
     
    59206420          dir="$dir/$objdir"
    59216421        else
    5922           $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
    5923           exit $EXIT_FAILURE
     6422          if test ! -f "$dir/$dlname"; then
     6423            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
     6424            exit $EXIT_FAILURE
     6425          fi
    59246426        fi
    59256427        ;;
     
    59856487
    59866488      # Restore saved environment variables
    5987       if test "${save_LC_ALL+set}" = set; then
    5988         LC_ALL="$save_LC_ALL"; export LC_ALL
    5989       fi
    5990       if test "${save_LANG+set}" = set; then
    5991         LANG="$save_LANG"; export LANG
    5992       fi
     6489      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
     6490      do
     6491        eval "if test \"\${save_$lt_var+set}\" = set; then
     6492                $lt_var=\$save_$lt_var; export $lt_var
     6493              fi"
     6494      done
    59936495
    59946496      # Now prepare to actually exec the command.
     
    60796581          done
    60806582          test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
    6081           test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
    6082 
    6083           if test "$mode" = uninstall; then
     6583
     6584          case "$mode" in
     6585          clean)
     6586            case "  $library_names " in
     6587            # "  " in the beginning catches empty $dlname
     6588            *" $dlname "*) ;;
     6589            *) rmfiles="$rmfiles $objdir/$dlname" ;;
     6590            esac
     6591             test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
     6592            ;;
     6593          uninstall)
    60846594            if test -n "$library_names"; then
    60856595              # Do each command in the postuninstall commands.
     
    61146624            fi
    61156625            # FIXME: should reinstall the best remaining shared library.
    6116           fi
     6626            ;;
     6627          esac
    61176628        fi
    61186629        ;;
     
    63386849  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
    63396850  -export-symbols SYMFILE
    6340                     try to export only the symbols listed in SYMFILE
     6851                    try to export only the symbols listed in SYMFILE
    63416852  -export-symbols-regex REGEX
    6342                     try to export only the symbols matching REGEX
     6853                    try to export only the symbols matching REGEX
    63436854  -LLIBDIR          search LIBDIR for required installed libraries
    63446855  -lNAME            OUTPUT-FILE requires the installed library libNAME
     
    63546865  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
    63556866  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
    6356   -static           do not do any dynamic linking of libtool libraries
     6867  -static           do not do any dynamic linking of uninstalled libtool libraries
     6868  -static-libtool-libs
     6869                    do not do any dynamic linking of libtool libraries
    63576870  -version-info CURRENT[:REVISION[:AGE]]
    6358                     specify library version info [each variable defaults to 0]
     6871                    specify library version info [each variable defaults to 0]
    63596872
    63606873All other options (arguments beginning with \`-') are ignored.
     
    63996912$echo "Try \`$modename --help' for more information about other modes."
    64006913
    6401 exit $EXIT_SUCCESS
     6914exit $?
    64026915
    64036916# The TAGs below are defined such that we never get into a situation
     
    64136926
    64146927# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
    6415 build_libtool_libs=no
    6416 build_old_libs=yes
     6928disable_libs=shared
    64176929# ### END LIBTOOL TAG CONFIG: disable-shared
    64186930
    64196931# ### BEGIN LIBTOOL TAG CONFIG: disable-static
    6420 build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
     6932disable_libs=static
    64216933# ### END LIBTOOL TAG CONFIG: disable-static
    64226934
Note: See TracChangeset for help on using the changeset viewer.