[BACK]Return to ltmain.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / crypto / dist / ipsec-tools

Annotation of src/crypto/dist/ipsec-tools/ltmain.sh, Revision 1.1

1.1     ! manu        1: # ltmain.sh - Provide generalized library-building support services.
        !             2: # NOTE: Changing this file will not affect anything until you rerun configure.
        !             3: #
        !             4: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
        !             5: # Free Software Foundation, Inc.
        !             6: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
        !             7: #
        !             8: # This program is free software; you can redistribute it and/or modify
        !             9: # it under the terms of the GNU General Public License as published by
        !            10: # the Free Software Foundation; either version 2 of the License, or
        !            11: # (at your option) any later version.
        !            12: #
        !            13: # This program is distributed in the hope that it will be useful, but
        !            14: # WITHOUT ANY WARRANTY; without even the implied warranty of
        !            15: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
        !            16: # General Public License for more details.
        !            17: #
        !            18: # You should have received a copy of the GNU General Public License
        !            19: # along with this program; if not, write to the Free Software
        !            20: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
        !            21: #
        !            22: # As a special exception to the GNU General Public License, if you
        !            23: # distribute this file as part of a program that contains a
        !            24: # configuration script generated by Autoconf, you may include it under
        !            25: # the same distribution terms that you use for the rest of that program.
        !            26:
        !            27: basename="s,^.*/,,g"
        !            28:
        !            29: # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
        !            30: # is ksh but when the shell is invoked as "sh" and the current value of
        !            31: # the _XPG environment variable is not equal to 1 (one), the special
        !            32: # positional parameter $0, within a function call, is the name of the
        !            33: # function.
        !            34: progpath="$0"
        !            35:
        !            36: # The name of this program:
        !            37: progname=`echo "$progpath" | $SED $basename`
        !            38: modename="$progname"
        !            39:
        !            40: # Global variables:
        !            41: EXIT_SUCCESS=0
        !            42: EXIT_FAILURE=1
        !            43:
        !            44: PROGRAM=ltmain.sh
        !            45: PACKAGE=libtool
        !            46: VERSION=1.5.10
        !            47: TIMESTAMP=" (1.1220.2.130 2004/09/19 12:13:49)"
        !            48:
        !            49: # See if we are running on zsh, and set the options which allow our
        !            50: # commands through without removal of \ escapes.
        !            51: if test -n "${ZSH_VERSION+set}" ; then
        !            52:   setopt NO_GLOB_SUBST
        !            53: fi
        !            54:
        !            55: # Check that we have a working $echo.
        !            56: if test "X$1" = X--no-reexec; then
        !            57:   # Discard the --no-reexec flag, and continue.
        !            58:   shift
        !            59: elif test "X$1" = X--fallback-echo; then
        !            60:   # Avoid inline document here, it may be left over
        !            61:   :
        !            62: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
        !            63:   # Yippee, $echo works!
        !            64:   :
        !            65: else
        !            66:   # Restart under the correct shell, and then maybe $echo will work.
        !            67:   exec $SHELL "$progpath" --no-reexec ${1+"$@"}
        !            68: fi
        !            69:
        !            70: if test "X$1" = X--fallback-echo; then
        !            71:   # used as fallback echo
        !            72:   shift
        !            73:   cat <<EOF
        !            74: $*
        !            75: EOF
        !            76:   exit $EXIT_SUCCESS
        !            77: fi
        !            78:
        !            79: default_mode=
        !            80: help="Try \`$progname --help' for more information."
        !            81: magic="%%%MAGIC variable%%%"
        !            82: mkdir="mkdir"
        !            83: mv="mv -f"
        !            84: rm="rm -f"
        !            85:
        !            86: # Sed substitution that helps us do robust quoting.  It backslashifies
        !            87: # metacharacters that are still active within double-quoted strings.
        !            88: Xsed="${SED}"' -e 1s/^X//'
        !            89: sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
        !            90: # test EBCDIC or ASCII
        !            91: case `echo A|tr A '\301'` in
        !            92:  A) # EBCDIC based system
        !            93:   SP2NL="tr '\100' '\n'"
        !            94:   NL2SP="tr '\r\n' '\100\100'"
        !            95:   ;;
        !            96:  *) # Assume ASCII based system
        !            97:   SP2NL="tr '\040' '\012'"
        !            98:   NL2SP="tr '\015\012' '\040\040'"
        !            99:   ;;
        !           100: esac
        !           101:
        !           102: # NLS nuisances.
        !           103: # Only set LANG and LC_ALL to C if already set.
        !           104: # These must not be set unconditionally because not all systems understand
        !           105: # e.g. LANG=C (notably SCO).
        !           106: # We save the old values to restore during execute mode.
        !           107: if test "${LC_ALL+set}" = set; then
        !           108:   save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
        !           109: fi
        !           110: if test "${LANG+set}" = set; then
        !           111:   save_LANG="$LANG"; LANG=C; export LANG
        !           112: fi
        !           113:
        !           114: # Make sure IFS has a sensible default
        !           115: : ${IFS="
        !           116: "}
        !           117:
        !           118: if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
        !           119:   $echo "$modename: not configured to build any kind of library" 1>&2
        !           120:   $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
        !           121:   exit $EXIT_FAILURE
        !           122: fi
        !           123:
        !           124: # Global variables.
        !           125: mode=$default_mode
        !           126: nonopt=
        !           127: prev=
        !           128: prevopt=
        !           129: run=
        !           130: show="$echo"
        !           131: show_help=
        !           132: execute_dlfiles=
        !           133: lo2o="s/\\.lo\$/.${objext}/"
        !           134: o2lo="s/\\.${objext}\$/.lo/"
        !           135:
        !           136: #####################################
        !           137: # Shell function definitions:
        !           138: # This seems to be the best place for them
        !           139:
        !           140: # func_win32_libid arg
        !           141: # return the library type of file 'arg'
        !           142: #
        !           143: # Need a lot of goo to handle *both* DLLs and import libs
        !           144: # Has to be a shell function in order to 'eat' the argument
        !           145: # that is supplied when $file_magic_command is called.
        !           146: func_win32_libid () {
        !           147:   win32_libid_type="unknown"
        !           148:   win32_fileres=`file -L $1 2>/dev/null`
        !           149:   case $win32_fileres in
        !           150:   *ar\ archive\ import\ library*) # definitely import
        !           151:     win32_libid_type="x86 archive import"
        !           152:     ;;
        !           153:   *ar\ archive*) # could be an import, or static
        !           154:     if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
        !           155:       $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
        !           156:       win32_nmres=`eval $NM -f posix -A $1 | \
        !           157:        sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
        !           158:       if test "X$win32_nmres" = "Ximport" ; then
        !           159:         win32_libid_type="x86 archive import"
        !           160:       else
        !           161:         win32_libid_type="x86 archive static"
        !           162:       fi
        !           163:     fi
        !           164:     ;;
        !           165:   *DLL*)
        !           166:     win32_libid_type="x86 DLL"
        !           167:     ;;
        !           168:   *executable*) # but shell scripts are "executable" too...
        !           169:     case $win32_fileres in
        !           170:     *MS\ Windows\ PE\ Intel*)
        !           171:       win32_libid_type="x86 DLL"
        !           172:       ;;
        !           173:     esac
        !           174:     ;;
        !           175:   esac
        !           176:   $echo $win32_libid_type
        !           177: }
        !           178:
        !           179:
        !           180: # func_infer_tag arg
        !           181: # Infer tagged configuration to use if any are available and
        !           182: # if one wasn't chosen via the "--tag" command line option.
        !           183: # Only attempt this if the compiler in the base compile
        !           184: # command doesn't match the default compiler.
        !           185: # arg is usually of the form 'gcc ...'
        !           186: func_infer_tag () {
        !           187:     if test -n "$available_tags" && test -z "$tagname"; then
        !           188:       CC_quoted=
        !           189:       for arg in $CC; do
        !           190:        case $arg in
        !           191:          *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
        !           192:          arg="\"$arg\""
        !           193:          ;;
        !           194:        esac
        !           195:        CC_quoted="$CC_quoted $arg"
        !           196:       done
        !           197:       case $@ in
        !           198:       # Blanks in the command may have been stripped by the calling shell,
        !           199:       # but not from the CC environment variable when configure was run.
        !           200:       " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
        !           201:          tagname=CC
        !           202:          ;;
        !           203:       # Blanks at the start of $base_compile will cause this to fail
        !           204:       # if we don't check for them as well.
        !           205:       *)
        !           206:         base_compiler=`$echo $base_compile | awk '{ print $1 }'`
        !           207:         case $base_compiler in
        !           208:         *cc)
        !           209:           tagname=CC
        !           210:           ;;
        !           211:         *++)
        !           212:           tagname=CXX
        !           213:          eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
        !           214:           ;;
        !           215:         esac
        !           216:         ;;
        !           217:       esac
        !           218:     fi
        !           219:     if test -n "$available_tags" && test -z "$tagname"; then
        !           220:        for z in $available_tags; do
        !           221:          if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
        !           222:            # Evaluate the configuration.
        !           223:            eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
        !           224:            CC_quoted=
        !           225:            for arg in $CC; do
        !           226:            # Double-quote args containing other shell metacharacters.
        !           227:            case $arg in
        !           228:              *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
        !           229:              arg="\"$arg\""
        !           230:              ;;
        !           231:            esac
        !           232:            CC_quoted="$CC_quoted $arg"
        !           233:          done
        !           234:            case "$@ " in
        !           235:              " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
        !           236:              # The compiler in the base compile command matches
        !           237:              # the one in the tagged configuration.
        !           238:              # Assume this is the tagged configuration we want.
        !           239:              tagname=$z
        !           240:              break
        !           241:              ;;
        !           242:            esac
        !           243:          fi
        !           244:        done
        !           245:        # If $tagname still isn't set, then no tagged configuration
        !           246:        # was found and let the user know that the "--tag" command
        !           247:        # line option must be used.
        !           248:        if test -z "$tagname"; then
        !           249:          $echo "$modename: unable to infer tagged configuration"
        !           250:          $echo "$modename: specify a tag with \`--tag'" 1>&2
        !           251:          exit $EXIT_FAILURE
        !           252: #        else
        !           253: #          $echo "$modename: using $tagname tagged configuration"
        !           254:        fi
        !           255:     fi
        !           256: }
        !           257:
        !           258:
        !           259: # func_extract_archives gentop oldlib ...
        !           260: func_extract_archives () {
        !           261:     my_gentop="$1"; shift
        !           262:     my_oldlibs=${1+"$@"}
        !           263:     my_oldobjs=""
        !           264:     my_xlib=""
        !           265:     my_xabs=""
        !           266:     my_xdir=""
        !           267:     my_status=""
        !           268:
        !           269:     $show "${rm}r $my_gentop"
        !           270:     $run ${rm}r "$my_gentop"
        !           271:     $show "$mkdir $my_gentop"
        !           272:     $run $mkdir "$my_gentop"
        !           273:     my_status=$?
        !           274:     if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
        !           275:       exit $my_status
        !           276:     fi
        !           277:
        !           278:     for my_xlib in $my_oldlibs; do
        !           279:       # Extract the objects.
        !           280:       case $my_xlib in
        !           281:        [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
        !           282:        *) my_xabs=`pwd`"/$my_xlib" ;;
        !           283:       esac
        !           284:       my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
        !           285:       my_xdir="$my_gentop/$my_xlib"
        !           286:
        !           287:       $show "${rm}r $my_xdir"
        !           288:       $run ${rm}r "$my_xdir"
        !           289:       $show "$mkdir $my_xdir"
        !           290:       $run $mkdir "$my_xdir"
        !           291:       status=$?
        !           292:       if test "$status" -ne 0 && test ! -d "$my_xdir"; then
        !           293:        exit $status
        !           294:       fi
        !           295:       case $host in
        !           296:       *-darwin*)
        !           297:        $show "Extracting $my_xabs"
        !           298:        # Do not bother doing anything if just a dry run
        !           299:        if test -z "$run"; then
        !           300:          darwin_orig_dir=`pwd`
        !           301:          cd $my_xdir || exit $?
        !           302:          darwin_archive=$my_xabs
        !           303:          darwin_curdir=`pwd`
        !           304:          darwin_base_archive=`basename $darwin_archive`
        !           305:          darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
        !           306:          if test -n "$darwin_arches"; then
        !           307:            darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
        !           308:            darwin_arch=
        !           309:            $show "$darwin_base_archive has multiple architectures $darwin_arches"
        !           310:            for darwin_arch in  $darwin_arches ; do
        !           311:              mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
        !           312:              lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
        !           313:              # Remove the table of contents from the thin files.
        !           314:              $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF 2>/dev/null || true
        !           315:              $AR -d "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" __.SYMDEF\ SORTED 2>/dev/null || true
        !           316:              cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
        !           317:              $AR -xo "${darwin_base_archive}"
        !           318:              rm "${darwin_base_archive}"
        !           319:              cd "$darwin_curdir"
        !           320:            done # $darwin_arches
        !           321:       ## Okay now we have a bunch of thin objects, gotta fatten them up :)
        !           322:            darwin_filelist=`find unfat-$$ -type f | xargs basename | sort -u | $NL2SP`
        !           323:            darwin_file=
        !           324:            darwin_files=
        !           325:            for darwin_file in $darwin_filelist; do
        !           326:              darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
        !           327:              lipo -create -output "$darwin_file" $darwin_files
        !           328:            done # $darwin_filelist
        !           329:            rm -rf unfat-$$
        !           330:            cd "$darwin_orig_dir"
        !           331:          else
        !           332:            cd $darwin_orig_dir
        !           333:            (cd $my_xdir && $AR x $my_xabs) || exit $?
        !           334:          fi # $darwin_arches
        !           335:        fi # $run
        !           336:       ;;
        !           337:       *)
        !           338:        # We will extract separately just the conflicting names and we will
        !           339:        # no longer touch any unique names. It is faster to leave these
        !           340:        # extract automatically by $AR in one run.
        !           341:        $show "(cd $my_xdir && $AR x $my_xabs)"
        !           342:        $run eval "(cd \$my_xdir && $AR x \$my_xabs)" || exit $?
        !           343:        if ($AR t "$my_xabs" | sort | sort -uc >/dev/null 2>&1); then
        !           344:          :
        !           345:        else
        !           346:          $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
        !           347:          $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
        !           348:          $AR t "$my_xabs" | sort | uniq -cd | while read -r count name
        !           349:          do
        !           350:            i=1
        !           351:            while test "$i" -le "$count"
        !           352:            do
        !           353:              # Put our $i before any first dot (extension)
        !           354:              # Never overwrite any file
        !           355:              name_to="$name"
        !           356:              while test "X$name_to" = "X$name" || test -f "$my_xdir/$name_to"
        !           357:              do
        !           358:                name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
        !           359:              done
        !           360:              $show "(cd $my_xdir && $AR xN $i $my_xabs '$name' && $mv '$name' '$name_to')"
        !           361:              $run eval "(cd \$my_xdir && $AR xN $i \$my_xabs '$name' && $mv '$name' '$name_to')" || exit $?
        !           362:              i=`expr $i + 1`
        !           363:            done
        !           364:          done
        !           365:        fi
        !           366:        ;;
        !           367:       esac
        !           368:       my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
        !           369:     done
        !           370:
        !           371:     func_extract_archives_result="$my_oldobjs"
        !           372: }
        !           373: # End of Shell function definitions
        !           374: #####################################
        !           375:
        !           376: # Darwin sucks
        !           377: eval std_shrext=\"$shrext_cmds\"
        !           378:
        !           379: # Parse our command line options once, thoroughly.
        !           380: while test "$#" -gt 0
        !           381: do
        !           382:   arg="$1"
        !           383:   shift
        !           384:
        !           385:   case $arg in
        !           386:   -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
        !           387:   *) optarg= ;;
        !           388:   esac
        !           389:
        !           390:   # If the previous option needs an argument, assign it.
        !           391:   if test -n "$prev"; then
        !           392:     case $prev in
        !           393:     execute_dlfiles)
        !           394:       execute_dlfiles="$execute_dlfiles $arg"
        !           395:       ;;
        !           396:     tag)
        !           397:       tagname="$arg"
        !           398:       preserve_args="${preserve_args}=$arg"
        !           399:
        !           400:       # Check whether tagname contains only valid characters
        !           401:       case $tagname in
        !           402:       *[!-_A-Za-z0-9,/]*)
        !           403:        $echo "$progname: invalid tag name: $tagname" 1>&2
        !           404:        exit $EXIT_FAILURE
        !           405:        ;;
        !           406:       esac
        !           407:
        !           408:       case $tagname in
        !           409:       CC)
        !           410:        # Don't test for the "default" C tag, as we know, it's there, but
        !           411:        # not specially marked.
        !           412:        ;;
        !           413:       *)
        !           414:        if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
        !           415:          taglist="$taglist $tagname"
        !           416:          # Evaluate the configuration.
        !           417:          eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
        !           418:        else
        !           419:          $echo "$progname: ignoring unknown tag $tagname" 1>&2
        !           420:        fi
        !           421:        ;;
        !           422:       esac
        !           423:       ;;
        !           424:     *)
        !           425:       eval "$prev=\$arg"
        !           426:       ;;
        !           427:     esac
        !           428:
        !           429:     prev=
        !           430:     prevopt=
        !           431:     continue
        !           432:   fi
        !           433:
        !           434:   # Have we seen a non-optional argument yet?
        !           435:   case $arg in
        !           436:   --help)
        !           437:     show_help=yes
        !           438:     ;;
        !           439:
        !           440:   --version)
        !           441:     $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
        !           442:     $echo
        !           443:     $echo "Copyright (C) 2003  Free Software Foundation, Inc."
        !           444:     $echo "This is free software; see the source for copying conditions.  There is NO"
        !           445:     $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
        !           446:     exit $EXIT_SUCCESS
        !           447:     ;;
        !           448:
        !           449:   --config)
        !           450:     ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
        !           451:     # Now print the configurations for the tags.
        !           452:     for tagname in $taglist; do
        !           453:       ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
        !           454:     done
        !           455:     exit $EXIT_SUCCESS
        !           456:     ;;
        !           457:
        !           458:   --debug)
        !           459:     $echo "$progname: enabling shell trace mode"
        !           460:     set -x
        !           461:     preserve_args="$preserve_args $arg"
        !           462:     ;;
        !           463:
        !           464:   --dry-run | -n)
        !           465:     run=:
        !           466:     ;;
        !           467:
        !           468:   --features)
        !           469:     $echo "host: $host"
        !           470:     if test "$build_libtool_libs" = yes; then
        !           471:       $echo "enable shared libraries"
        !           472:     else
        !           473:       $echo "disable shared libraries"
        !           474:     fi
        !           475:     if test "$build_old_libs" = yes; then
        !           476:       $echo "enable static libraries"
        !           477:     else
        !           478:       $echo "disable static libraries"
        !           479:     fi
        !           480:     exit $EXIT_SUCCESS
        !           481:     ;;
        !           482:
        !           483:   --finish) mode="finish" ;;
        !           484:
        !           485:   --mode) prevopt="--mode" prev=mode ;;
        !           486:   --mode=*) mode="$optarg" ;;
        !           487:
        !           488:   --preserve-dup-deps) duplicate_deps="yes" ;;
        !           489:
        !           490:   --quiet | --silent)
        !           491:     show=:
        !           492:     preserve_args="$preserve_args $arg"
        !           493:     ;;
        !           494:
        !           495:   --tag) prevopt="--tag" prev=tag ;;
        !           496:   --tag=*)
        !           497:     set tag "$optarg" ${1+"$@"}
        !           498:     shift
        !           499:     prev=tag
        !           500:     preserve_args="$preserve_args --tag"
        !           501:     ;;
        !           502:
        !           503:   -dlopen)
        !           504:     prevopt="-dlopen"
        !           505:     prev=execute_dlfiles
        !           506:     ;;
        !           507:
        !           508:   -*)
        !           509:     $echo "$modename: unrecognized option \`$arg'" 1>&2
        !           510:     $echo "$help" 1>&2
        !           511:     exit $EXIT_FAILURE
        !           512:     ;;
        !           513:
        !           514:   *)
        !           515:     nonopt="$arg"
        !           516:     break
        !           517:     ;;
        !           518:   esac
        !           519: done
        !           520:
        !           521: if test -n "$prevopt"; then
        !           522:   $echo "$modename: option \`$prevopt' requires an argument" 1>&2
        !           523:   $echo "$help" 1>&2
        !           524:   exit $EXIT_FAILURE
        !           525: fi
        !           526:
        !           527: # If this variable is set in any of the actions, the command in it
        !           528: # will be execed at the end.  This prevents here-documents from being
        !           529: # left over by shells.
        !           530: exec_cmd=
        !           531:
        !           532: if test -z "$show_help"; then
        !           533:
        !           534:   # Infer the operation mode.
        !           535:   if test -z "$mode"; then
        !           536:     $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
        !           537:     $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
        !           538:     case $nonopt in
        !           539:     *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc* | *CC)
        !           540:       mode=link
        !           541:       for arg
        !           542:       do
        !           543:        case $arg in
        !           544:        -c)
        !           545:           mode=compile
        !           546:           break
        !           547:           ;;
        !           548:        esac
        !           549:       done
        !           550:       ;;
        !           551:     *db | *dbx | *strace | *truss)
        !           552:       mode=execute
        !           553:       ;;
        !           554:     *install*|cp|mv)
        !           555:       mode=install
        !           556:       ;;
        !           557:     *rm)
        !           558:       mode=uninstall
        !           559:       ;;
        !           560:     *)
        !           561:       # If we have no mode, but dlfiles were specified, then do execute mode.
        !           562:       test -n "$execute_dlfiles" && mode=execute
        !           563:
        !           564:       # Just use the default operation mode.
        !           565:       if test -z "$mode"; then
        !           566:        if test -n "$nonopt"; then
        !           567:          $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
        !           568:        else
        !           569:          $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
        !           570:        fi
        !           571:       fi
        !           572:       ;;
        !           573:     esac
        !           574:   fi
        !           575:
        !           576:   # Only execute mode is allowed to have -dlopen flags.
        !           577:   if test -n "$execute_dlfiles" && test "$mode" != execute; then
        !           578:     $echo "$modename: unrecognized option \`-dlopen'" 1>&2
        !           579:     $echo "$help" 1>&2
        !           580:     exit $EXIT_FAILURE
        !           581:   fi
        !           582:
        !           583:   # Change the help message to a mode-specific one.
        !           584:   generic_help="$help"
        !           585:   help="Try \`$modename --help --mode=$mode' for more information."
        !           586:
        !           587:   # These modes are in order of execution frequency so that they run quickly.
        !           588:   case $mode in
        !           589:   # libtool compile mode
        !           590:   compile)
        !           591:     modename="$modename: compile"
        !           592:     # Get the compilation command and the source file.
        !           593:     base_compile=
        !           594:     srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
        !           595:     suppress_opt=yes
        !           596:     suppress_output=
        !           597:     arg_mode=normal
        !           598:     libobj=
        !           599:     later=
        !           600:
        !           601:     for arg
        !           602:     do
        !           603:       case "$arg_mode" in
        !           604:       arg  )
        !           605:        # do not "continue".  Instead, add this to base_compile
        !           606:        lastarg="$arg"
        !           607:        arg_mode=normal
        !           608:        ;;
        !           609:
        !           610:       target )
        !           611:        libobj="$arg"
        !           612:        arg_mode=normal
        !           613:        continue
        !           614:        ;;
        !           615:
        !           616:       normal )
        !           617:        # Accept any command-line options.
        !           618:        case $arg in
        !           619:        -o)
        !           620:          if test -n "$libobj" ; then
        !           621:            $echo "$modename: you cannot specify \`-o' more than once" 1>&2
        !           622:            exit $EXIT_FAILURE
        !           623:          fi
        !           624:          arg_mode=target
        !           625:          continue
        !           626:          ;;
        !           627:
        !           628:        -static | -prefer-pic | -prefer-non-pic)
        !           629:          later="$later $arg"
        !           630:          continue
        !           631:          ;;
        !           632:
        !           633:        -no-suppress)
        !           634:          suppress_opt=no
        !           635:          continue
        !           636:          ;;
        !           637:
        !           638:        -Xcompiler)
        !           639:          arg_mode=arg  #  the next one goes into the "base_compile" arg list
        !           640:          continue      #  The current "srcfile" will either be retained or
        !           641:          ;;            #  replaced later.  I would guess that would be a bug.
        !           642:
        !           643:        -Wc,*)
        !           644:          args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
        !           645:          lastarg=
        !           646:          save_ifs="$IFS"; IFS=','
        !           647:          for arg in $args; do
        !           648:            IFS="$save_ifs"
        !           649:
        !           650:            # Double-quote args containing other shell metacharacters.
        !           651:            # Many Bourne shells cannot handle close brackets correctly
        !           652:            # in scan sets, so we specify it separately.
        !           653:            case $arg in
        !           654:              *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
        !           655:              arg="\"$arg\""
        !           656:              ;;
        !           657:            esac
        !           658:            lastarg="$lastarg $arg"
        !           659:          done
        !           660:          IFS="$save_ifs"
        !           661:          lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
        !           662:
        !           663:          # Add the arguments to base_compile.
        !           664:          base_compile="$base_compile $lastarg"
        !           665:          continue
        !           666:          ;;
        !           667:
        !           668:        * )
        !           669:          # Accept the current argument as the source file.
        !           670:          # The previous "srcfile" becomes the current argument.
        !           671:          #
        !           672:          lastarg="$srcfile"
        !           673:          srcfile="$arg"
        !           674:          ;;
        !           675:        esac  #  case $arg
        !           676:        ;;
        !           677:       esac    #  case $arg_mode
        !           678:
        !           679:       # Aesthetically quote the previous argument.
        !           680:       lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
        !           681:
        !           682:       case $lastarg in
        !           683:       # Double-quote args containing other shell metacharacters.
        !           684:       # Many Bourne shells cannot handle close brackets correctly
        !           685:       # in scan sets, so we specify it separately.
        !           686:       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
        !           687:        lastarg="\"$lastarg\""
        !           688:        ;;
        !           689:       esac
        !           690:
        !           691:       base_compile="$base_compile $lastarg"
        !           692:     done # for arg
        !           693:
        !           694:     case $arg_mode in
        !           695:     arg)
        !           696:       $echo "$modename: you must specify an argument for -Xcompile"
        !           697:       exit $EXIT_FAILURE
        !           698:       ;;
        !           699:     target)
        !           700:       $echo "$modename: you must specify a target with \`-o'" 1>&2
        !           701:       exit $EXIT_FAILURE
        !           702:       ;;
        !           703:     *)
        !           704:       # Get the name of the library object.
        !           705:       [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
        !           706:       ;;
        !           707:     esac
        !           708:
        !           709:     # Recognize several different file suffixes.
        !           710:     # If the user specifies -o file.o, it is replaced with file.lo
        !           711:     xform='[cCFSifmso]'
        !           712:     case $libobj in
        !           713:     *.ada) xform=ada ;;
        !           714:     *.adb) xform=adb ;;
        !           715:     *.ads) xform=ads ;;
        !           716:     *.asm) xform=asm ;;
        !           717:     *.c++) xform=c++ ;;
        !           718:     *.cc) xform=cc ;;
        !           719:     *.ii) xform=ii ;;
        !           720:     *.class) xform=class ;;
        !           721:     *.cpp) xform=cpp ;;
        !           722:     *.cxx) xform=cxx ;;
        !           723:     *.f90) xform=f90 ;;
        !           724:     *.for) xform=for ;;
        !           725:     *.java) xform=java ;;
        !           726:     esac
        !           727:
        !           728:     libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
        !           729:
        !           730:     case $libobj in
        !           731:     *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
        !           732:     *)
        !           733:       $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
        !           734:       exit $EXIT_FAILURE
        !           735:       ;;
        !           736:     esac
        !           737:
        !           738:     func_infer_tag $base_compile
        !           739:
        !           740:     for arg in $later; do
        !           741:       case $arg in
        !           742:       -static)
        !           743:        build_old_libs=yes
        !           744:        continue
        !           745:        ;;
        !           746:
        !           747:       -prefer-pic)
        !           748:        pic_mode=yes
        !           749:        continue
        !           750:        ;;
        !           751:
        !           752:       -prefer-non-pic)
        !           753:        pic_mode=no
        !           754:        continue
        !           755:        ;;
        !           756:       esac
        !           757:     done
        !           758:
        !           759:     objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
        !           760:     xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
        !           761:     if test "X$xdir" = "X$obj"; then
        !           762:       xdir=
        !           763:     else
        !           764:       xdir=$xdir/
        !           765:     fi
        !           766:     lobj=${xdir}$objdir/$objname
        !           767:
        !           768:     if test -z "$base_compile"; then
        !           769:       $echo "$modename: you must specify a compilation command" 1>&2
        !           770:       $echo "$help" 1>&2
        !           771:       exit $EXIT_FAILURE
        !           772:     fi
        !           773:
        !           774:     # Delete any leftover library objects.
        !           775:     if test "$build_old_libs" = yes; then
        !           776:       removelist="$obj $lobj $libobj ${libobj}T"
        !           777:     else
        !           778:       removelist="$lobj $libobj ${libobj}T"
        !           779:     fi
        !           780:
        !           781:     $run $rm $removelist
        !           782:     trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
        !           783:
        !           784:     # On Cygwin there's no "real" PIC flag so we must build both object types
        !           785:     case $host_os in
        !           786:     cygwin* | mingw* | pw32* | os2*)
        !           787:       pic_mode=default
        !           788:       ;;
        !           789:     esac
        !           790:     if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
        !           791:       # non-PIC code in shared libraries is not supported
        !           792:       pic_mode=default
        !           793:     fi
        !           794:
        !           795:     # Calculate the filename of the output object if compiler does
        !           796:     # not support -o with -c
        !           797:     if test "$compiler_c_o" = no; then
        !           798:       output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
        !           799:       lockfile="$output_obj.lock"
        !           800:       removelist="$removelist $output_obj $lockfile"
        !           801:       trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
        !           802:     else
        !           803:       output_obj=
        !           804:       need_locks=no
        !           805:       lockfile=
        !           806:     fi
        !           807:
        !           808:     # Lock this critical section if it is needed
        !           809:     # We use this script file to make the link, it avoids creating a new file
        !           810:     if test "$need_locks" = yes; then
        !           811:       until $run ln "$progpath" "$lockfile" 2>/dev/null; do
        !           812:        $show "Waiting for $lockfile to be removed"
        !           813:        sleep 2
        !           814:       done
        !           815:     elif test "$need_locks" = warn; then
        !           816:       if test -f "$lockfile"; then
        !           817:        $echo "\
        !           818: *** ERROR, $lockfile exists and contains:
        !           819: `cat $lockfile 2>/dev/null`
        !           820:
        !           821: This indicates that another process is trying to use the same
        !           822: temporary object file, and libtool could not work around it because
        !           823: your compiler does not support \`-c' and \`-o' together.  If you
        !           824: repeat this compilation, it may succeed, by chance, but you had better
        !           825: avoid parallel builds (make -j) in this platform, or get a better
        !           826: compiler."
        !           827:
        !           828:        $run $rm $removelist
        !           829:        exit $EXIT_FAILURE
        !           830:       fi
        !           831:       $echo $srcfile > "$lockfile"
        !           832:     fi
        !           833:
        !           834:     if test -n "$fix_srcfile_path"; then
        !           835:       eval srcfile=\"$fix_srcfile_path\"
        !           836:     fi
        !           837:
        !           838:     $run $rm "$libobj" "${libobj}T"
        !           839:
        !           840:     # Create a libtool object file (analogous to a ".la" file),
        !           841:     # but don't create it if we're doing a dry run.
        !           842:     test -z "$run" && cat > ${libobj}T <<EOF
        !           843: # $libobj - a libtool object file
        !           844: # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
        !           845: #
        !           846: # Please DO NOT delete this file!
        !           847: # It is necessary for linking the library.
        !           848:
        !           849: # Name of the PIC object.
        !           850: EOF
        !           851:
        !           852:     # Only build a PIC object if we are building libtool libraries.
        !           853:     if test "$build_libtool_libs" = yes; then
        !           854:       # Without this assignment, base_compile gets emptied.
        !           855:       fbsd_hideous_sh_bug=$base_compile
        !           856:
        !           857:       if test "$pic_mode" != no; then
        !           858:        command="$base_compile $srcfile $pic_flag"
        !           859:       else
        !           860:        # Don't build PIC code
        !           861:        command="$base_compile $srcfile"
        !           862:       fi
        !           863:
        !           864:       if test ! -d "${xdir}$objdir"; then
        !           865:        $show "$mkdir ${xdir}$objdir"
        !           866:        $run $mkdir ${xdir}$objdir
        !           867:        status=$?
        !           868:        if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
        !           869:          exit $status
        !           870:        fi
        !           871:       fi
        !           872:
        !           873:       if test -z "$output_obj"; then
        !           874:        # Place PIC objects in $objdir
        !           875:        command="$command -o $lobj"
        !           876:       fi
        !           877:
        !           878:       $run $rm "$lobj" "$output_obj"
        !           879:
        !           880:       $show "$command"
        !           881:       if $run eval "$command"; then :
        !           882:       else
        !           883:        test -n "$output_obj" && $run $rm $removelist
        !           884:        exit $EXIT_FAILURE
        !           885:       fi
        !           886:
        !           887:       if test "$need_locks" = warn &&
        !           888:         test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
        !           889:        $echo "\
        !           890: *** ERROR, $lockfile contains:
        !           891: `cat $lockfile 2>/dev/null`
        !           892:
        !           893: but it should contain:
        !           894: $srcfile
        !           895:
        !           896: This indicates that another process is trying to use the same
        !           897: temporary object file, and libtool could not work around it because
        !           898: your compiler does not support \`-c' and \`-o' together.  If you
        !           899: repeat this compilation, it may succeed, by chance, but you had better
        !           900: avoid parallel builds (make -j) in this platform, or get a better
        !           901: compiler."
        !           902:
        !           903:        $run $rm $removelist
        !           904:        exit $EXIT_FAILURE
        !           905:       fi
        !           906:
        !           907:       # Just move the object if needed, then go on to compile the next one
        !           908:       if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
        !           909:        $show "$mv $output_obj $lobj"
        !           910:        if $run $mv $output_obj $lobj; then :
        !           911:        else
        !           912:          error=$?
        !           913:          $run $rm $removelist
        !           914:          exit $error
        !           915:        fi
        !           916:       fi
        !           917:
        !           918:       # Append the name of the PIC object to the libtool object file.
        !           919:       test -z "$run" && cat >> ${libobj}T <<EOF
        !           920: pic_object='$objdir/$objname'
        !           921:
        !           922: EOF
        !           923:
        !           924:       # Allow error messages only from the first compilation.
        !           925:       if test "$suppress_opt" = yes; then
        !           926:         suppress_output=' >/dev/null 2>&1'
        !           927:       fi
        !           928:     else
        !           929:       # No PIC object so indicate it doesn't exist in the libtool
        !           930:       # object file.
        !           931:       test -z "$run" && cat >> ${libobj}T <<EOF
        !           932: pic_object=none
        !           933:
        !           934: EOF
        !           935:     fi
        !           936:
        !           937:     # Only build a position-dependent object if we build old libraries.
        !           938:     if test "$build_old_libs" = yes; then
        !           939:       if test "$pic_mode" != yes; then
        !           940:        # Don't build PIC code
        !           941:        command="$base_compile $srcfile"
        !           942:       else
        !           943:        command="$base_compile $srcfile $pic_flag"
        !           944:       fi
        !           945:       if test "$compiler_c_o" = yes; then
        !           946:        command="$command -o $obj"
        !           947:       fi
        !           948:
        !           949:       # Suppress compiler output if we already did a PIC compilation.
        !           950:       command="$command$suppress_output"
        !           951:       $run $rm "$obj" "$output_obj"
        !           952:       $show "$command"
        !           953:       if $run eval "$command"; then :
        !           954:       else
        !           955:        $run $rm $removelist
        !           956:        exit $EXIT_FAILURE
        !           957:       fi
        !           958:
        !           959:       if test "$need_locks" = warn &&
        !           960:         test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
        !           961:        $echo "\
        !           962: *** ERROR, $lockfile contains:
        !           963: `cat $lockfile 2>/dev/null`
        !           964:
        !           965: but it should contain:
        !           966: $srcfile
        !           967:
        !           968: This indicates that another process is trying to use the same
        !           969: temporary object file, and libtool could not work around it because
        !           970: your compiler does not support \`-c' and \`-o' together.  If you
        !           971: repeat this compilation, it may succeed, by chance, but you had better
        !           972: avoid parallel builds (make -j) in this platform, or get a better
        !           973: compiler."
        !           974:
        !           975:        $run $rm $removelist
        !           976:        exit $EXIT_FAILURE
        !           977:       fi
        !           978:
        !           979:       # Just move the object if needed
        !           980:       if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
        !           981:        $show "$mv $output_obj $obj"
        !           982:        if $run $mv $output_obj $obj; then :
        !           983:        else
        !           984:          error=$?
        !           985:          $run $rm $removelist
        !           986:          exit $error
        !           987:        fi
        !           988:       fi
        !           989:
        !           990:       # Append the name of the non-PIC object the libtool object file.
        !           991:       # Only append if the libtool object file exists.
        !           992:       test -z "$run" && cat >> ${libobj}T <<EOF
        !           993: # Name of the non-PIC object.
        !           994: non_pic_object='$objname'
        !           995:
        !           996: EOF
        !           997:     else
        !           998:       # Append the name of the non-PIC object the libtool object file.
        !           999:       # Only append if the libtool object file exists.
        !          1000:       test -z "$run" && cat >> ${libobj}T <<EOF
        !          1001: # Name of the non-PIC object.
        !          1002: non_pic_object=none
        !          1003:
        !          1004: EOF
        !          1005:     fi
        !          1006:
        !          1007:     $run $mv "${libobj}T" "${libobj}"
        !          1008:
        !          1009:     # Unlock the critical section if it was locked
        !          1010:     if test "$need_locks" != no; then
        !          1011:       $run $rm "$lockfile"
        !          1012:     fi
        !          1013:
        !          1014:     exit $EXIT_SUCCESS
        !          1015:     ;;
        !          1016:
        !          1017:   # libtool link mode
        !          1018:   link | relink)
        !          1019:     modename="$modename: link"
        !          1020:     case $host in
        !          1021:     *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
        !          1022:       # It is impossible to link a dll without this setting, and
        !          1023:       # we shouldn't force the makefile maintainer to figure out
        !          1024:       # which system we are compiling for in order to pass an extra
        !          1025:       # flag for every libtool invocation.
        !          1026:       # allow_undefined=no
        !          1027:
        !          1028:       # FIXME: Unfortunately, there are problems with the above when trying
        !          1029:       # to make a dll which has undefined symbols, in which case not
        !          1030:       # even a static library is built.  For now, we need to specify
        !          1031:       # -no-undefined on the libtool link line when we can be certain
        !          1032:       # that all symbols are satisfied, otherwise we get a static library.
        !          1033:       allow_undefined=yes
        !          1034:       ;;
        !          1035:     *)
        !          1036:       allow_undefined=yes
        !          1037:       ;;
        !          1038:     esac
        !          1039:     libtool_args="$nonopt"
        !          1040:     base_compile="$nonopt $@"
        !          1041:     compile_command="$nonopt"
        !          1042:     finalize_command="$nonopt"
        !          1043:
        !          1044:     compile_rpath=
        !          1045:     finalize_rpath=
        !          1046:     compile_shlibpath=
        !          1047:     finalize_shlibpath=
        !          1048:     convenience=
        !          1049:     old_convenience=
        !          1050:     deplibs=
        !          1051:     old_deplibs=
        !          1052:     compiler_flags=
        !          1053:     linker_flags=
        !          1054:     dllsearchpath=
        !          1055:     lib_search_path=`pwd`
        !          1056:     inst_prefix_dir=
        !          1057:
        !          1058:     avoid_version=no
        !          1059:     dlfiles=
        !          1060:     dlprefiles=
        !          1061:     dlself=no
        !          1062:     export_dynamic=no
        !          1063:     export_symbols=
        !          1064:     export_symbols_regex=
        !          1065:     generated=
        !          1066:     libobjs=
        !          1067:     ltlibs=
        !          1068:     module=no
        !          1069:     no_install=no
        !          1070:     objs=
        !          1071:     non_pic_objects=
        !          1072:     precious_files_regex=
        !          1073:     prefer_static_libs=no
        !          1074:     preload=no
        !          1075:     prev=
        !          1076:     prevarg=
        !          1077:     release=
        !          1078:     rpath=
        !          1079:     xrpath=
        !          1080:     perm_rpath=
        !          1081:     temp_rpath=
        !          1082:     thread_safe=no
        !          1083:     vinfo=
        !          1084:     vinfo_number=no
        !          1085:
        !          1086:     func_infer_tag $base_compile
        !          1087:
        !          1088:     # We need to know -static, to get the right output filenames.
        !          1089:     for arg
        !          1090:     do
        !          1091:       case $arg in
        !          1092:       -all-static | -static)
        !          1093:        if test "X$arg" = "X-all-static"; then
        !          1094:          if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
        !          1095:            $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
        !          1096:          fi
        !          1097:          if test -n "$link_static_flag"; then
        !          1098:            dlopen_self=$dlopen_self_static
        !          1099:          fi
        !          1100:        else
        !          1101:          if test -z "$pic_flag" && test -n "$link_static_flag"; then
        !          1102:            dlopen_self=$dlopen_self_static
        !          1103:          fi
        !          1104:        fi
        !          1105:        build_libtool_libs=no
        !          1106:        build_old_libs=yes
        !          1107:        prefer_static_libs=yes
        !          1108:        break
        !          1109:        ;;
        !          1110:       esac
        !          1111:     done
        !          1112:
        !          1113:     # See if our shared archives depend on static archives.
        !          1114:     test -n "$old_archive_from_new_cmds" && build_old_libs=yes
        !          1115:
        !          1116:     # Go through the arguments, transforming them on the way.
        !          1117:     while test "$#" -gt 0; do
        !          1118:       arg="$1"
        !          1119:       shift
        !          1120:       case $arg in
        !          1121:       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
        !          1122:        qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
        !          1123:        ;;
        !          1124:       *) qarg=$arg ;;
        !          1125:       esac
        !          1126:       libtool_args="$libtool_args $qarg"
        !          1127:
        !          1128:       # If the previous option needs an argument, assign it.
        !          1129:       if test -n "$prev"; then
        !          1130:        case $prev in
        !          1131:        output)
        !          1132:          compile_command="$compile_command @OUTPUT@"
        !          1133:          finalize_command="$finalize_command @OUTPUT@"
        !          1134:          ;;
        !          1135:        esac
        !          1136:
        !          1137:        case $prev in
        !          1138:        dlfiles|dlprefiles)
        !          1139:          if test "$preload" = no; then
        !          1140:            # Add the symbol object into the linking commands.
        !          1141:            compile_command="$compile_command @SYMFILE@"
        !          1142:            finalize_command="$finalize_command @SYMFILE@"
        !          1143:            preload=yes
        !          1144:          fi
        !          1145:          case $arg in
        !          1146:          *.la | *.lo) ;;  # We handle these cases below.
        !          1147:          force)
        !          1148:            if test "$dlself" = no; then
        !          1149:              dlself=needless
        !          1150:              export_dynamic=yes
        !          1151:            fi
        !          1152:            prev=
        !          1153:            continue
        !          1154:            ;;
        !          1155:          self)
        !          1156:            if test "$prev" = dlprefiles; then
        !          1157:              dlself=yes
        !          1158:            elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
        !          1159:              dlself=yes
        !          1160:            else
        !          1161:              dlself=needless
        !          1162:              export_dynamic=yes
        !          1163:            fi
        !          1164:            prev=
        !          1165:            continue
        !          1166:            ;;
        !          1167:          *)
        !          1168:            if test "$prev" = dlfiles; then
        !          1169:              dlfiles="$dlfiles $arg"
        !          1170:            else
        !          1171:              dlprefiles="$dlprefiles $arg"
        !          1172:            fi
        !          1173:            prev=
        !          1174:            continue
        !          1175:            ;;
        !          1176:          esac
        !          1177:          ;;
        !          1178:        expsyms)
        !          1179:          export_symbols="$arg"
        !          1180:          if test ! -f "$arg"; then
        !          1181:            $echo "$modename: symbol file \`$arg' does not exist"
        !          1182:            exit $EXIT_FAILURE
        !          1183:          fi
        !          1184:          prev=
        !          1185:          continue
        !          1186:          ;;
        !          1187:        expsyms_regex)
        !          1188:          export_symbols_regex="$arg"
        !          1189:          prev=
        !          1190:          continue
        !          1191:          ;;
        !          1192:        inst_prefix)
        !          1193:          inst_prefix_dir="$arg"
        !          1194:          prev=
        !          1195:          continue
        !          1196:          ;;
        !          1197:        precious_regex)
        !          1198:          precious_files_regex="$arg"
        !          1199:          prev=
        !          1200:          continue
        !          1201:          ;;
        !          1202:        release)
        !          1203:          release="-$arg"
        !          1204:          prev=
        !          1205:          continue
        !          1206:          ;;
        !          1207:        objectlist)
        !          1208:          if test -f "$arg"; then
        !          1209:            save_arg=$arg
        !          1210:            moreargs=
        !          1211:            for fil in `cat $save_arg`
        !          1212:            do
        !          1213: #            moreargs="$moreargs $fil"
        !          1214:              arg=$fil
        !          1215:              # A libtool-controlled object.
        !          1216:
        !          1217:              # Check to see that this really is a libtool object.
        !          1218:              if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          1219:                pic_object=
        !          1220:                non_pic_object=
        !          1221:
        !          1222:                # Read the .lo file
        !          1223:                # If there is no directory component, then add one.
        !          1224:                case $arg in
        !          1225:                */* | *\\*) . $arg ;;
        !          1226:                *) . ./$arg ;;
        !          1227:                esac
        !          1228:
        !          1229:                if test -z "$pic_object" || \
        !          1230:                   test -z "$non_pic_object" ||
        !          1231:                   test "$pic_object" = none && \
        !          1232:                   test "$non_pic_object" = none; then
        !          1233:                  $echo "$modename: cannot find name of object for \`$arg'" 1>&2
        !          1234:                  exit $EXIT_FAILURE
        !          1235:                fi
        !          1236:
        !          1237:                # Extract subdirectory from the argument.
        !          1238:                xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
        !          1239:                if test "X$xdir" = "X$arg"; then
        !          1240:                  xdir=
        !          1241:                else
        !          1242:                  xdir="$xdir/"
        !          1243:                fi
        !          1244:
        !          1245:                if test "$pic_object" != none; then
        !          1246:                  # Prepend the subdirectory the object is found in.
        !          1247:                  pic_object="$xdir$pic_object"
        !          1248:
        !          1249:                  if test "$prev" = dlfiles; then
        !          1250:                    if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
        !          1251:                      dlfiles="$dlfiles $pic_object"
        !          1252:                      prev=
        !          1253:                      continue
        !          1254:                    else
        !          1255:                      # If libtool objects are unsupported, then we need to preload.
        !          1256:                      prev=dlprefiles
        !          1257:                    fi
        !          1258:                  fi
        !          1259:
        !          1260:                  # CHECK ME:  I think I busted this.  -Ossama
        !          1261:                  if test "$prev" = dlprefiles; then
        !          1262:                    # Preload the old-style object.
        !          1263:                    dlprefiles="$dlprefiles $pic_object"
        !          1264:                    prev=
        !          1265:                  fi
        !          1266:
        !          1267:                  # A PIC object.
        !          1268:                  libobjs="$libobjs $pic_object"
        !          1269:                  arg="$pic_object"
        !          1270:                fi
        !          1271:
        !          1272:                # Non-PIC object.
        !          1273:                if test "$non_pic_object" != none; then
        !          1274:                  # Prepend the subdirectory the object is found in.
        !          1275:                  non_pic_object="$xdir$non_pic_object"
        !          1276:
        !          1277:                  # A standard non-PIC object
        !          1278:                  non_pic_objects="$non_pic_objects $non_pic_object"
        !          1279:                  if test -z "$pic_object" || test "$pic_object" = none ; then
        !          1280:                    arg="$non_pic_object"
        !          1281:                  fi
        !          1282:                fi
        !          1283:              else
        !          1284:                # Only an error if not doing a dry-run.
        !          1285:                if test -z "$run"; then
        !          1286:                  $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
        !          1287:                  exit $EXIT_FAILURE
        !          1288:                else
        !          1289:                  # Dry-run case.
        !          1290:
        !          1291:                  # Extract subdirectory from the argument.
        !          1292:                  xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
        !          1293:                  if test "X$xdir" = "X$arg"; then
        !          1294:                    xdir=
        !          1295:                  else
        !          1296:                    xdir="$xdir/"
        !          1297:                  fi
        !          1298:
        !          1299:                  pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
        !          1300:                  non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
        !          1301:                  libobjs="$libobjs $pic_object"
        !          1302:                  non_pic_objects="$non_pic_objects $non_pic_object"
        !          1303:                fi
        !          1304:              fi
        !          1305:            done
        !          1306:          else
        !          1307:            $echo "$modename: link input file \`$save_arg' does not exist"
        !          1308:            exit $EXIT_FAILURE
        !          1309:          fi
        !          1310:          arg=$save_arg
        !          1311:          prev=
        !          1312:          continue
        !          1313:          ;;
        !          1314:        rpath | xrpath)
        !          1315:          # We need an absolute path.
        !          1316:          case $arg in
        !          1317:          [\\/]* | [A-Za-z]:[\\/]*) ;;
        !          1318:          *)
        !          1319:            $echo "$modename: only absolute run-paths are allowed" 1>&2
        !          1320:            exit $EXIT_FAILURE
        !          1321:            ;;
        !          1322:          esac
        !          1323:          # Canonicalise the pathname
        !          1324:          tmp=""
        !          1325:          while test "$arg" != "$tmp"
        !          1326:           do
        !          1327:             tmp=$arg
        !          1328:             arg=`$echo "X$arg" | $Xsed -e 's%[^/.][^/.]*/\.\.%%g' -e 's%/\./%/%g' -e 's%//*%/%g' -e 's%/$%%g'`
        !          1329:           done
        !          1330:          if test "$prev" = rpath; then
        !          1331:            case "$rpath " in
        !          1332:            *" $arg "*) ;;
        !          1333:            *) rpath="$rpath $arg" ;;
        !          1334:            esac
        !          1335:          else
        !          1336:            case "$xrpath " in
        !          1337:            *" $arg "*) ;;
        !          1338:            *) xrpath="$xrpath $arg" ;;
        !          1339:            esac
        !          1340:          fi
        !          1341:          prev=
        !          1342:          continue
        !          1343:          ;;
        !          1344:        xcompiler)
        !          1345:          compiler_flags="$compiler_flags $qarg"
        !          1346:          prev=
        !          1347:          compile_command="$compile_command $qarg"
        !          1348:          finalize_command="$finalize_command $qarg"
        !          1349:          continue
        !          1350:          ;;
        !          1351:        xlinker)
        !          1352:          linker_flags="$linker_flags $qarg"
        !          1353:          compiler_flags="$compiler_flags $wl$qarg"
        !          1354:          prev=
        !          1355:          compile_command="$compile_command $wl$qarg"
        !          1356:          finalize_command="$finalize_command $wl$qarg"
        !          1357:          continue
        !          1358:          ;;
        !          1359:        xcclinker)
        !          1360:          linker_flags="$linker_flags $qarg"
        !          1361:          compiler_flags="$compiler_flags $qarg"
        !          1362:          prev=
        !          1363:          compile_command="$compile_command $qarg"
        !          1364:          finalize_command="$finalize_command $qarg"
        !          1365:          continue
        !          1366:          ;;
        !          1367:        shrext)
        !          1368:          shrext_cmds="$arg"
        !          1369:          prev=
        !          1370:          continue
        !          1371:          ;;
        !          1372:        *)
        !          1373:          eval "$prev=\"\$arg\""
        !          1374:          prev=
        !          1375:          continue
        !          1376:          ;;
        !          1377:        esac
        !          1378:       fi # test -n "$prev"
        !          1379:
        !          1380:       prevarg="$arg"
        !          1381:
        !          1382:       case $arg in
        !          1383:       -all-static)
        !          1384:        if test -n "$link_static_flag"; then
        !          1385:          compile_command="$compile_command $link_static_flag"
        !          1386:          finalize_command="$finalize_command $link_static_flag"
        !          1387:        fi
        !          1388:        continue
        !          1389:        ;;
        !          1390:
        !          1391:       -allow-undefined)
        !          1392:        # FIXME: remove this flag sometime in the future.
        !          1393:        $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
        !          1394:        continue
        !          1395:        ;;
        !          1396:
        !          1397:       -avoid-version)
        !          1398:        avoid_version=yes
        !          1399:        continue
        !          1400:        ;;
        !          1401:
        !          1402:       -dlopen)
        !          1403:        prev=dlfiles
        !          1404:        continue
        !          1405:        ;;
        !          1406:
        !          1407:       -dlpreopen)
        !          1408:        prev=dlprefiles
        !          1409:        continue
        !          1410:        ;;
        !          1411:
        !          1412:       -export-dynamic)
        !          1413:        export_dynamic=yes
        !          1414:        continue
        !          1415:        ;;
        !          1416:
        !          1417:       -export-symbols | -export-symbols-regex)
        !          1418:        if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
        !          1419:          $echo "$modename: more than one -exported-symbols argument is not allowed"
        !          1420:          exit $EXIT_FAILURE
        !          1421:        fi
        !          1422:        if test "X$arg" = "X-export-symbols"; then
        !          1423:          prev=expsyms
        !          1424:        else
        !          1425:          prev=expsyms_regex
        !          1426:        fi
        !          1427:        continue
        !          1428:        ;;
        !          1429:
        !          1430:       -inst-prefix-dir)
        !          1431:        prev=inst_prefix
        !          1432:        continue
        !          1433:        ;;
        !          1434:
        !          1435:       # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
        !          1436:       # so, if we see these flags be careful not to treat them like -L
        !          1437:       -L[A-Z][A-Z]*:*)
        !          1438:        case $with_gcc/$host in
        !          1439:        no/*-*-irix* | /*-*-irix*)
        !          1440:          compile_command="$compile_command $arg"
        !          1441:          finalize_command="$finalize_command $arg"
        !          1442:          ;;
        !          1443:        esac
        !          1444:        continue
        !          1445:        ;;
        !          1446:
        !          1447:       -L*)
        !          1448:        dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
        !          1449:        # We need an absolute path.
        !          1450:        case $dir in
        !          1451:        [\\/]* | [A-Za-z]:[\\/]*) ;;
        !          1452:        *)
        !          1453:          absdir=`cd "$dir" && pwd`
        !          1454:          if test -z "$absdir"; then
        !          1455:            $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
        !          1456:            exit $EXIT_FAILURE
        !          1457:          fi
        !          1458:          dir="$absdir"
        !          1459:          ;;
        !          1460:        esac
        !          1461:        case "$deplibs " in
        !          1462:        *" -L$dir "*) ;;
        !          1463:        *)
        !          1464:          deplibs="$deplibs -L$dir"
        !          1465:          lib_search_path="$lib_search_path $dir"
        !          1466:          ;;
        !          1467:        esac
        !          1468:        case $host in
        !          1469:        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
        !          1470:          case :$dllsearchpath: in
        !          1471:          *":$dir:"*) ;;
        !          1472:          *) dllsearchpath="$dllsearchpath:$dir";;
        !          1473:          esac
        !          1474:          ;;
        !          1475:        esac
        !          1476:        continue
        !          1477:        ;;
        !          1478:
        !          1479:       -l*)
        !          1480:        if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
        !          1481:          case $host in
        !          1482:          *-*-cygwin* | *-*-pw32* | *-*-beos*)
        !          1483:            # These systems don't actually have a C or math library (as such)
        !          1484:            continue
        !          1485:            ;;
        !          1486:          *-*-mingw* | *-*-os2*)
        !          1487:            # These systems don't actually have a C library (as such)
        !          1488:            test "X$arg" = "X-lc" && continue
        !          1489:            ;;
        !          1490:          *-*-openbsd* | *-*-freebsd*)
        !          1491:            # Do not include libc due to us having libc/libc_r.
        !          1492:            test "X$arg" = "X-lc" && continue
        !          1493:            ;;
        !          1494:          *-*-rhapsody* | *-*-darwin1.[012])
        !          1495:            # Rhapsody C and math libraries are in the System framework
        !          1496:            deplibs="$deplibs -framework System"
        !          1497:            continue
        !          1498:          esac
        !          1499:        elif test "X$arg" = "X-lc_r"; then
        !          1500:         case $host in
        !          1501:         *-*-openbsd* | *-*-freebsd*)
        !          1502:           # Do not include libc_r directly, use -pthread flag.
        !          1503:           continue
        !          1504:           ;;
        !          1505:         esac
        !          1506:        fi
        !          1507:        deplibs="$deplibs $arg"
        !          1508:        continue
        !          1509:        ;;
        !          1510:
        !          1511:      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
        !          1512:        deplibs="$deplibs $arg"
        !          1513:        continue
        !          1514:        ;;
        !          1515:
        !          1516:       -module)
        !          1517:        module=yes
        !          1518:        continue
        !          1519:        ;;
        !          1520:
        !          1521:       # gcc -m* arguments should be passed to the linker via $compiler_flags
        !          1522:       # in order to pass architecture information to the linker
        !          1523:       # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
        !          1524:       # but this is not reliable with gcc because gcc may use -mfoo to
        !          1525:       # select a different linker, different libraries, etc, while
        !          1526:       # -Wl,-mfoo simply passes -mfoo to the linker.
        !          1527:       -m*)
        !          1528:        # Unknown arguments in both finalize_command and compile_command need
        !          1529:        # to be aesthetically quoted because they are evaled later.
        !          1530:        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
        !          1531:        case $arg in
        !          1532:        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
        !          1533:          arg="\"$arg\""
        !          1534:          ;;
        !          1535:        esac
        !          1536:         compile_command="$compile_command $arg"
        !          1537:         finalize_command="$finalize_command $arg"
        !          1538:         if test "$with_gcc" = "yes" ; then
        !          1539:           compiler_flags="$compiler_flags $arg"
        !          1540:         fi
        !          1541:         continue
        !          1542:         ;;
        !          1543:
        !          1544:       -shrext)
        !          1545:        prev=shrext
        !          1546:        continue
        !          1547:        ;;
        !          1548:
        !          1549:       -no-fast-install)
        !          1550:        fast_install=no
        !          1551:        continue
        !          1552:        ;;
        !          1553:
        !          1554:       -no-install)
        !          1555:        case $host in
        !          1556:        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
        !          1557:          # The PATH hackery in wrapper scripts is required on Windows
        !          1558:          # in order for the loader to find any dlls it needs.
        !          1559:          $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
        !          1560:          $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
        !          1561:          fast_install=no
        !          1562:          ;;
        !          1563:        *) no_install=yes ;;
        !          1564:        esac
        !          1565:        continue
        !          1566:        ;;
        !          1567:
        !          1568:       -no-undefined)
        !          1569:        allow_undefined=no
        !          1570:        continue
        !          1571:        ;;
        !          1572:
        !          1573:       -objectlist)
        !          1574:        prev=objectlist
        !          1575:        continue
        !          1576:        ;;
        !          1577:
        !          1578:       -o) prev=output ;;
        !          1579:
        !          1580:       -precious-files-regex)
        !          1581:        prev=precious_regex
        !          1582:        continue
        !          1583:        ;;
        !          1584:
        !          1585:       -release)
        !          1586:        prev=release
        !          1587:        continue
        !          1588:        ;;
        !          1589:
        !          1590:       -rpath)
        !          1591:        prev=rpath
        !          1592:        continue
        !          1593:        ;;
        !          1594:
        !          1595:       -R)
        !          1596:        prev=xrpath
        !          1597:        continue
        !          1598:        ;;
        !          1599:
        !          1600:       -R*)
        !          1601:        dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
        !          1602:        # We need an absolute path.
        !          1603:        case $dir in
        !          1604:        [\\/]* | [A-Za-z]:[\\/]*) ;;
        !          1605:        *)
        !          1606:          $echo "$modename: only absolute run-paths are allowed" 1>&2
        !          1607:          exit $EXIT_FAILURE
        !          1608:          ;;
        !          1609:        esac
        !          1610:        case "$xrpath " in
        !          1611:        *" $dir "*) ;;
        !          1612:        *) xrpath="$xrpath $dir" ;;
        !          1613:        esac
        !          1614:        continue
        !          1615:        ;;
        !          1616:
        !          1617:       -static)
        !          1618:        # The effects of -static are defined in a previous loop.
        !          1619:        # We used to do the same as -all-static on platforms that
        !          1620:        # didn't have a PIC flag, but the assumption that the effects
        !          1621:        # would be equivalent was wrong.  It would break on at least
        !          1622:        # Digital Unix and AIX.
        !          1623:        continue
        !          1624:        ;;
        !          1625:
        !          1626:       -thread-safe)
        !          1627:        thread_safe=yes
        !          1628:        continue
        !          1629:        ;;
        !          1630:
        !          1631:       -version-info)
        !          1632:        prev=vinfo
        !          1633:        continue
        !          1634:        ;;
        !          1635:       -version-number)
        !          1636:        prev=vinfo
        !          1637:        vinfo_number=yes
        !          1638:        continue
        !          1639:        ;;
        !          1640:
        !          1641:       -Wc,*)
        !          1642:        args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
        !          1643:        arg=
        !          1644:        save_ifs="$IFS"; IFS=','
        !          1645:        for flag in $args; do
        !          1646:          IFS="$save_ifs"
        !          1647:          case $flag in
        !          1648:            *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
        !          1649:            flag="\"$flag\""
        !          1650:            ;;
        !          1651:          esac
        !          1652:          arg="$arg $wl$flag"
        !          1653:          compiler_flags="$compiler_flags $flag"
        !          1654:        done
        !          1655:        IFS="$save_ifs"
        !          1656:        arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
        !          1657:        ;;
        !          1658:
        !          1659:       -Wl,*)
        !          1660:        args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
        !          1661:        arg=
        !          1662:        save_ifs="$IFS"; IFS=','
        !          1663:        for flag in $args; do
        !          1664:          IFS="$save_ifs"
        !          1665:          case $flag in
        !          1666:            *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
        !          1667:            flag="\"$flag\""
        !          1668:            ;;
        !          1669:          esac
        !          1670:          arg="$arg $wl$flag"
        !          1671:          compiler_flags="$compiler_flags $wl$flag"
        !          1672:          linker_flags="$linker_flags $flag"
        !          1673:        done
        !          1674:        IFS="$save_ifs"
        !          1675:        arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
        !          1676:        ;;
        !          1677:
        !          1678:       -Xcompiler)
        !          1679:        prev=xcompiler
        !          1680:        continue
        !          1681:        ;;
        !          1682:
        !          1683:       -Xlinker)
        !          1684:        prev=xlinker
        !          1685:        continue
        !          1686:        ;;
        !          1687:
        !          1688:       -XCClinker)
        !          1689:        prev=xcclinker
        !          1690:        continue
        !          1691:        ;;
        !          1692:
        !          1693:       # Some other compiler flag.
        !          1694:       -* | +*)
        !          1695:        # Unknown arguments in both finalize_command and compile_command need
        !          1696:        # to be aesthetically quoted because they are evaled later.
        !          1697:        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
        !          1698:        case $arg in
        !          1699:        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
        !          1700:          arg="\"$arg\""
        !          1701:          ;;
        !          1702:        esac
        !          1703:        ;;
        !          1704:
        !          1705:       *.$objext)
        !          1706:        # A standard object.
        !          1707:        objs="$objs $arg"
        !          1708:        ;;
        !          1709:
        !          1710:       *.lo)
        !          1711:        # A libtool-controlled object.
        !          1712:
        !          1713:        # Check to see that this really is a libtool object.
        !          1714:        if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          1715:          pic_object=
        !          1716:          non_pic_object=
        !          1717:
        !          1718:          # Read the .lo file
        !          1719:          # If there is no directory component, then add one.
        !          1720:          case $arg in
        !          1721:          */* | *\\*) . $arg ;;
        !          1722:          *) . ./$arg ;;
        !          1723:          esac
        !          1724:
        !          1725:          if test -z "$pic_object" || \
        !          1726:             test -z "$non_pic_object" ||
        !          1727:             test "$pic_object" = none && \
        !          1728:             test "$non_pic_object" = none; then
        !          1729:            $echo "$modename: cannot find name of object for \`$arg'" 1>&2
        !          1730:            exit $EXIT_FAILURE
        !          1731:          fi
        !          1732:
        !          1733:          # Extract subdirectory from the argument.
        !          1734:          xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
        !          1735:          if test "X$xdir" = "X$arg"; then
        !          1736:            xdir=
        !          1737:          else
        !          1738:            xdir="$xdir/"
        !          1739:          fi
        !          1740:
        !          1741:          if test "$pic_object" != none; then
        !          1742:            # Prepend the subdirectory the object is found in.
        !          1743:            pic_object="$xdir$pic_object"
        !          1744:
        !          1745:            if test "$prev" = dlfiles; then
        !          1746:              if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
        !          1747:                dlfiles="$dlfiles $pic_object"
        !          1748:                prev=
        !          1749:                continue
        !          1750:              else
        !          1751:                # If libtool objects are unsupported, then we need to preload.
        !          1752:                prev=dlprefiles
        !          1753:              fi
        !          1754:            fi
        !          1755:
        !          1756:            # CHECK ME:  I think I busted this.  -Ossama
        !          1757:            if test "$prev" = dlprefiles; then
        !          1758:              # Preload the old-style object.
        !          1759:              dlprefiles="$dlprefiles $pic_object"
        !          1760:              prev=
        !          1761:            fi
        !          1762:
        !          1763:            # A PIC object.
        !          1764:            libobjs="$libobjs $pic_object"
        !          1765:            arg="$pic_object"
        !          1766:          fi
        !          1767:
        !          1768:          # Non-PIC object.
        !          1769:          if test "$non_pic_object" != none; then
        !          1770:            # Prepend the subdirectory the object is found in.
        !          1771:            non_pic_object="$xdir$non_pic_object"
        !          1772:
        !          1773:            # A standard non-PIC object
        !          1774:            non_pic_objects="$non_pic_objects $non_pic_object"
        !          1775:            if test -z "$pic_object" || test "$pic_object" = none ; then
        !          1776:              arg="$non_pic_object"
        !          1777:            fi
        !          1778:          fi
        !          1779:        else
        !          1780:          # Only an error if not doing a dry-run.
        !          1781:          if test -z "$run"; then
        !          1782:            $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
        !          1783:            exit $EXIT_FAILURE
        !          1784:          else
        !          1785:            # Dry-run case.
        !          1786:
        !          1787:            # Extract subdirectory from the argument.
        !          1788:            xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
        !          1789:            if test "X$xdir" = "X$arg"; then
        !          1790:              xdir=
        !          1791:            else
        !          1792:              xdir="$xdir/"
        !          1793:            fi
        !          1794:
        !          1795:            pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
        !          1796:            non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
        !          1797:            libobjs="$libobjs $pic_object"
        !          1798:            non_pic_objects="$non_pic_objects $non_pic_object"
        !          1799:          fi
        !          1800:        fi
        !          1801:        ;;
        !          1802:
        !          1803:       *.$libext)
        !          1804:        # An archive.
        !          1805:        deplibs="$deplibs $arg"
        !          1806:        old_deplibs="$old_deplibs $arg"
        !          1807:        continue
        !          1808:        ;;
        !          1809:
        !          1810:       *.la)
        !          1811:        # A libtool-controlled library.
        !          1812:
        !          1813:        if test "$prev" = dlfiles; then
        !          1814:          # This library was specified with -dlopen.
        !          1815:          dlfiles="$dlfiles $arg"
        !          1816:          prev=
        !          1817:        elif test "$prev" = dlprefiles; then
        !          1818:          # The library was specified with -dlpreopen.
        !          1819:          dlprefiles="$dlprefiles $arg"
        !          1820:          prev=
        !          1821:        else
        !          1822:          deplibs="$deplibs $arg"
        !          1823:        fi
        !          1824:        continue
        !          1825:        ;;
        !          1826:
        !          1827:       # Some other compiler argument.
        !          1828:       *)
        !          1829:        # Unknown arguments in both finalize_command and compile_command need
        !          1830:        # to be aesthetically quoted because they are evaled later.
        !          1831:        arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
        !          1832:        case $arg in
        !          1833:        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
        !          1834:          arg="\"$arg\""
        !          1835:          ;;
        !          1836:        esac
        !          1837:        ;;
        !          1838:       esac # arg
        !          1839:
        !          1840:       # Now actually substitute the argument into the commands.
        !          1841:       if test -n "$arg"; then
        !          1842:        compile_command="$compile_command $arg"
        !          1843:        finalize_command="$finalize_command $arg"
        !          1844:       fi
        !          1845:     done # argument parsing loop
        !          1846:
        !          1847:     if test -n "$prev"; then
        !          1848:       $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
        !          1849:       $echo "$help" 1>&2
        !          1850:       exit $EXIT_FAILURE
        !          1851:     fi
        !          1852:
        !          1853:     if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
        !          1854:       eval arg=\"$export_dynamic_flag_spec\"
        !          1855:       compile_command="$compile_command $arg"
        !          1856:       finalize_command="$finalize_command $arg"
        !          1857:     fi
        !          1858:
        !          1859:     oldlibs=
        !          1860:     # calculate the name of the file, without its directory
        !          1861:     outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
        !          1862:     libobjs_save="$libobjs"
        !          1863:
        !          1864:     if test -n "$shlibpath_var"; then
        !          1865:       # get the directories listed in $shlibpath_var
        !          1866:       eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
        !          1867:     else
        !          1868:       shlib_search_path=
        !          1869:     fi
        !          1870:     eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
        !          1871:     eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
        !          1872:
        !          1873:     output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
        !          1874:     if test "X$output_objdir" = "X$output"; then
        !          1875:       output_objdir="$objdir"
        !          1876:     else
        !          1877:       output_objdir="$output_objdir/$objdir"
        !          1878:     fi
        !          1879:     # Create the object directory.
        !          1880:     if test ! -d "$output_objdir"; then
        !          1881:       $show "$mkdir $output_objdir"
        !          1882:       $run $mkdir $output_objdir
        !          1883:       status=$?
        !          1884:       if test "$status" -ne 0 && test ! -d "$output_objdir"; then
        !          1885:        exit $status
        !          1886:       fi
        !          1887:     fi
        !          1888:
        !          1889:     # Determine the type of output
        !          1890:     case $output in
        !          1891:     "")
        !          1892:       $echo "$modename: you must specify an output file" 1>&2
        !          1893:       $echo "$help" 1>&2
        !          1894:       exit $EXIT_FAILURE
        !          1895:       ;;
        !          1896:     *.$libext) linkmode=oldlib ;;
        !          1897:     *.lo | *.$objext) linkmode=obj ;;
        !          1898:     *.la) linkmode=lib ;;
        !          1899:     *) linkmode=prog ;; # Anything else should be a program.
        !          1900:     esac
        !          1901:
        !          1902:     case $host in
        !          1903:     *cygwin* | *mingw* | *pw32*)
        !          1904:       # don't eliminate duplications in $postdeps and $predeps
        !          1905:       duplicate_compiler_generated_deps=yes
        !          1906:       ;;
        !          1907:     *)
        !          1908:       duplicate_compiler_generated_deps=$duplicate_deps
        !          1909:       ;;
        !          1910:     esac
        !          1911:     specialdeplibs=
        !          1912:
        !          1913:     libs=
        !          1914:     # Find all interdependent deplibs by searching for libraries
        !          1915:     # that are linked more than once (e.g. -la -lb -la)
        !          1916:     for deplib in $deplibs; do
        !          1917:       if test "X$duplicate_deps" = "Xyes" ; then
        !          1918:        case "$libs " in
        !          1919:        *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
        !          1920:        esac
        !          1921:       fi
        !          1922:       libs="$libs $deplib"
        !          1923:     done
        !          1924:
        !          1925:     if test "$linkmode" = lib; then
        !          1926:       libs="$predeps $libs $compiler_lib_search_path $postdeps"
        !          1927:
        !          1928:       # Compute libraries that are listed more than once in $predeps
        !          1929:       # $postdeps and mark them as special (i.e., whose duplicates are
        !          1930:       # not to be eliminated).
        !          1931:       pre_post_deps=
        !          1932:       if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
        !          1933:        for pre_post_dep in $predeps $postdeps; do
        !          1934:          case "$pre_post_deps " in
        !          1935:          *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
        !          1936:          esac
        !          1937:          pre_post_deps="$pre_post_deps $pre_post_dep"
        !          1938:        done
        !          1939:       fi
        !          1940:       pre_post_deps=
        !          1941:     fi
        !          1942:
        !          1943:     deplibs=
        !          1944:     newdependency_libs=
        !          1945:     newlib_search_path=
        !          1946:     need_relink=no # whether we're linking any uninstalled libtool libraries
        !          1947:     notinst_deplibs= # not-installed libtool libraries
        !          1948:     notinst_path= # paths that contain not-installed libtool libraries
        !          1949:     case $linkmode in
        !          1950:     lib)
        !          1951:        passes="conv link"
        !          1952:        for file in $dlfiles $dlprefiles; do
        !          1953:          case $file in
        !          1954:          *.la) ;;
        !          1955:          *)
        !          1956:            $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
        !          1957:            exit $EXIT_FAILURE
        !          1958:            ;;
        !          1959:          esac
        !          1960:        done
        !          1961:        ;;
        !          1962:     prog)
        !          1963:        compile_deplibs=
        !          1964:        finalize_deplibs=
        !          1965:        alldeplibs=no
        !          1966:        newdlfiles=
        !          1967:        newdlprefiles=
        !          1968:        passes="conv scan dlopen dlpreopen link"
        !          1969:        ;;
        !          1970:     *)  passes="conv"
        !          1971:        ;;
        !          1972:     esac
        !          1973:     for pass in $passes; do
        !          1974:       if test "$linkmode,$pass" = "lib,link" ||
        !          1975:         test "$linkmode,$pass" = "prog,scan"; then
        !          1976:        libs="$deplibs"
        !          1977:        deplibs=
        !          1978:       fi
        !          1979:       if test "$linkmode" = prog; then
        !          1980:        case $pass in
        !          1981:        dlopen) libs="$dlfiles" ;;
        !          1982:        dlpreopen) libs="$dlprefiles" ;;
        !          1983:        link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
        !          1984:        esac
        !          1985:       fi
        !          1986:       if test "$pass" = dlopen; then
        !          1987:        # Collect dlpreopened libraries
        !          1988:        save_deplibs="$deplibs"
        !          1989:        deplibs=
        !          1990:       fi
        !          1991:       for deplib in $libs; do
        !          1992:        lib=
        !          1993:        found=no
        !          1994:        case $deplib in
        !          1995:        -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
        !          1996:          if test "$linkmode,$pass" = "prog,link"; then
        !          1997:            compile_deplibs="$deplib $compile_deplibs"
        !          1998:            finalize_deplibs="$deplib $finalize_deplibs"
        !          1999:          else
        !          2000:            deplibs="$deplib $deplibs"
        !          2001:          fi
        !          2002:          continue
        !          2003:          ;;
        !          2004:        -l*)
        !          2005:          if test "$linkmode" != lib && test "$linkmode" != prog; then
        !          2006:            $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
        !          2007:            continue
        !          2008:          fi
        !          2009:          if test "$pass" = conv; then
        !          2010:            deplibs="$deplib $deplibs"
        !          2011:            continue
        !          2012:          fi
        !          2013:          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
        !          2014:          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
        !          2015:            for search_ext in .la $std_shrext .so .a; do
        !          2016:              # Search the libtool library
        !          2017:              lib="$searchdir/lib${name}${search_ext}"
        !          2018:              if test -f "$lib"; then
        !          2019:                if test "$search_ext" = ".la"; then
        !          2020:                  found=yes
        !          2021:                else
        !          2022:                  found=no
        !          2023:                fi
        !          2024:                break 2
        !          2025:              fi
        !          2026:            done
        !          2027:          done
        !          2028:          if test "$found" != yes; then
        !          2029:            # deplib doesn't seem to be a libtool library
        !          2030:            if test "$linkmode,$pass" = "prog,link"; then
        !          2031:              compile_deplibs="$deplib $compile_deplibs"
        !          2032:              finalize_deplibs="$deplib $finalize_deplibs"
        !          2033:            else
        !          2034:              deplibs="$deplib $deplibs"
        !          2035:              test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
        !          2036:            fi
        !          2037:            continue
        !          2038:          else # deplib is a libtool library
        !          2039:            # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
        !          2040:            # We need to do some special things here, and not later.
        !          2041:            if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
        !          2042:              case " $predeps $postdeps " in
        !          2043:              *" $deplib "*)
        !          2044:                if (${SED} -e '2q' $lib |
        !          2045:                     grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          2046:                  library_names=
        !          2047:                  old_library=
        !          2048:                  case $lib in
        !          2049:                  */* | *\\*) . $lib ;;
        !          2050:                  *) . ./$lib ;;
        !          2051:                  esac
        !          2052:                  for l in $old_library $library_names; do
        !          2053:                    ll="$l"
        !          2054:                  done
        !          2055:                  if test "X$ll" = "X$old_library" ; then # only static version available
        !          2056:                    found=no
        !          2057:                    ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
        !          2058:                    test "X$ladir" = "X$lib" && ladir="."
        !          2059:                    lib=$ladir/$old_library
        !          2060:                    if test "$linkmode,$pass" = "prog,link"; then
        !          2061:                      compile_deplibs="$deplib $compile_deplibs"
        !          2062:                      finalize_deplibs="$deplib $finalize_deplibs"
        !          2063:                    else
        !          2064:                      deplibs="$deplib $deplibs"
        !          2065:                      test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
        !          2066:                    fi
        !          2067:                    continue
        !          2068:                  fi
        !          2069:                fi
        !          2070:                ;;
        !          2071:              *) ;;
        !          2072:              esac
        !          2073:            fi
        !          2074:          fi
        !          2075:          ;; # -l
        !          2076:        -L*)
        !          2077:          case $linkmode in
        !          2078:          lib)
        !          2079:            deplibs="$deplib $deplibs"
        !          2080:            test "$pass" = conv && continue
        !          2081:            newdependency_libs="$deplib $newdependency_libs"
        !          2082:            newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
        !          2083:            ;;
        !          2084:          prog)
        !          2085:            if test "$pass" = conv; then
        !          2086:              deplibs="$deplib $deplibs"
        !          2087:              continue
        !          2088:            fi
        !          2089:            if test "$pass" = scan; then
        !          2090:              deplibs="$deplib $deplibs"
        !          2091:            else
        !          2092:              compile_deplibs="$deplib $compile_deplibs"
        !          2093:              finalize_deplibs="$deplib $finalize_deplibs"
        !          2094:            fi
        !          2095:            newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
        !          2096:            ;;
        !          2097:          *)
        !          2098:            $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
        !          2099:            ;;
        !          2100:          esac # linkmode
        !          2101:          continue
        !          2102:          ;; # -L
        !          2103:        -R*)
        !          2104:          if test "$pass" = link; then
        !          2105:            dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
        !          2106:            # Make sure the xrpath contains only unique directories.
        !          2107:            case "$xrpath " in
        !          2108:            *" $dir "*) ;;
        !          2109:            *) xrpath="$xrpath $dir" ;;
        !          2110:            esac
        !          2111:          fi
        !          2112:          deplibs="$deplib $deplibs"
        !          2113:          continue
        !          2114:          ;;
        !          2115:        *.la) lib="$deplib" ;;
        !          2116:        *.$libext)
        !          2117:          if test "$pass" = conv; then
        !          2118:            deplibs="$deplib $deplibs"
        !          2119:            continue
        !          2120:          fi
        !          2121:          case $linkmode in
        !          2122:          lib)
        !          2123:            valid_a_lib=no
        !          2124:            case $deplibs_check_method in
        !          2125:              match_pattern*)
        !          2126:                set dummy $deplibs_check_method
        !          2127:                match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
        !          2128:                if eval $echo \"$deplib\" 2>/dev/null \
        !          2129:                    | $SED 10q \
        !          2130:                    | $EGREP "$match_pattern_regex" > /dev/null; then
        !          2131:                  valid_a_lib=yes
        !          2132:                fi
        !          2133:                ;;
        !          2134:              pass_all)
        !          2135:                valid_a_lib=yes
        !          2136:                ;;
        !          2137:             esac
        !          2138:            if test "$valid_a_lib" != yes; then
        !          2139:              $echo
        !          2140:              $echo "*** Warning: Trying to link with static lib archive $deplib."
        !          2141:              $echo "*** I have the capability to make that library automatically link in when"
        !          2142:              $echo "*** you link to this library.  But I can only do this if you have a"
        !          2143:              $echo "*** shared version of the library, which you do not appear to have"
        !          2144:              $echo "*** because the file extensions .$libext of this argument makes me believe"
        !          2145:              $echo "*** that it is just a static archive that I should not used here."
        !          2146:            else
        !          2147:              $echo
        !          2148:              $echo "*** Warning: Linking the shared library $output against the"
        !          2149:              $echo "*** static library $deplib is not portable!"
        !          2150:              deplibs="$deplib $deplibs"
        !          2151:            fi
        !          2152:            continue
        !          2153:            ;;
        !          2154:          prog)
        !          2155:            if test "$pass" != link; then
        !          2156:              deplibs="$deplib $deplibs"
        !          2157:            else
        !          2158:              compile_deplibs="$deplib $compile_deplibs"
        !          2159:              finalize_deplibs="$deplib $finalize_deplibs"
        !          2160:            fi
        !          2161:            continue
        !          2162:            ;;
        !          2163:          esac # linkmode
        !          2164:          ;; # *.$libext
        !          2165:        *.lo | *.$objext)
        !          2166:          if test "$pass" = conv; then
        !          2167:            deplibs="$deplib $deplibs"
        !          2168:          elif test "$linkmode" = prog; then
        !          2169:            if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
        !          2170:              # If there is no dlopen support or we're linking statically,
        !          2171:              # we need to preload.
        !          2172:              newdlprefiles="$newdlprefiles $deplib"
        !          2173:              compile_deplibs="$deplib $compile_deplibs"
        !          2174:              finalize_deplibs="$deplib $finalize_deplibs"
        !          2175:            else
        !          2176:              newdlfiles="$newdlfiles $deplib"
        !          2177:            fi
        !          2178:          fi
        !          2179:          continue
        !          2180:          ;;
        !          2181:        %DEPLIBS%)
        !          2182:          alldeplibs=yes
        !          2183:          continue
        !          2184:          ;;
        !          2185:        esac # case $deplib
        !          2186:        if test "$found" = yes || test -f "$lib"; then :
        !          2187:        else
        !          2188:          $echo "$modename: cannot find the library \`$lib'" 1>&2
        !          2189:          exit $EXIT_FAILURE
        !          2190:        fi
        !          2191:
        !          2192:        # Check to see that this really is a libtool archive.
        !          2193:        if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
        !          2194:        else
        !          2195:          $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
        !          2196:          exit $EXIT_FAILURE
        !          2197:        fi
        !          2198:
        !          2199:        ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
        !          2200:        test "X$ladir" = "X$lib" && ladir="."
        !          2201:
        !          2202:        dlname=
        !          2203:        dlopen=
        !          2204:        dlpreopen=
        !          2205:        libdir=
        !          2206:        library_names=
        !          2207:        old_library=
        !          2208:        # If the library was installed with an old release of libtool,
        !          2209:        # it will not redefine variables installed, or shouldnotlink
        !          2210:        installed=yes
        !          2211:        shouldnotlink=no
        !          2212:
        !          2213:        # Read the .la file
        !          2214:        case $lib in
        !          2215:        */* | *\\*) . $lib ;;
        !          2216:        *) . ./$lib ;;
        !          2217:        esac
        !          2218:
        !          2219:        if test "$linkmode,$pass" = "lib,link" ||
        !          2220:           test "$linkmode,$pass" = "prog,scan" ||
        !          2221:           { test "$linkmode" != prog && test "$linkmode" != lib; }; then
        !          2222:          test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
        !          2223:          test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
        !          2224:        fi
        !          2225:
        !          2226:        if test "$pass" = conv; then
        !          2227:          # Only check for convenience libraries
        !          2228:          deplibs="$lib $deplibs"
        !          2229:          if test -z "$libdir"; then
        !          2230:            if test -z "$old_library"; then
        !          2231:              $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
        !          2232:              exit $EXIT_FAILURE
        !          2233:            fi
        !          2234:            # It is a libtool convenience library, so add in its objects.
        !          2235:            convenience="$convenience $ladir/$objdir/$old_library"
        !          2236:            old_convenience="$old_convenience $ladir/$objdir/$old_library"
        !          2237:            tmp_libs=
        !          2238:            for deplib in $dependency_libs; do
        !          2239:              deplibs="$deplib $deplibs"
        !          2240:               if test "X$duplicate_deps" = "Xyes" ; then
        !          2241:                case "$tmp_libs " in
        !          2242:                *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
        !          2243:                esac
        !          2244:               fi
        !          2245:              tmp_libs="$tmp_libs $deplib"
        !          2246:            done
        !          2247:          elif test "$linkmode" != prog && test "$linkmode" != lib; then
        !          2248:            $echo "$modename: \`$lib' is not a convenience library" 1>&2
        !          2249:            exit $EXIT_FAILURE
        !          2250:          fi
        !          2251:          continue
        !          2252:        fi # $pass = conv
        !          2253:
        !          2254:
        !          2255:        # Get the name of the library we link against.
        !          2256:        linklib=
        !          2257:        for l in $old_library $library_names; do
        !          2258:          linklib="$l"
        !          2259:        done
        !          2260:        if test -z "$linklib"; then
        !          2261:          $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
        !          2262:          exit $EXIT_FAILURE
        !          2263:        fi
        !          2264:
        !          2265:        # This library was specified with -dlopen.
        !          2266:        if test "$pass" = dlopen; then
        !          2267:          if test -z "$libdir"; then
        !          2268:            $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
        !          2269:            exit $EXIT_FAILURE
        !          2270:          fi
        !          2271:          if test -z "$dlname" ||
        !          2272:             test "$dlopen_support" != yes ||
        !          2273:             test "$build_libtool_libs" = no; then
        !          2274:            # If there is no dlname, no dlopen support or we're linking
        !          2275:            # statically, we need to preload.  We also need to preload any
        !          2276:            # dependent libraries so libltdl's deplib preloader doesn't
        !          2277:            # bomb out in the load deplibs phase.
        !          2278:            dlprefiles="$dlprefiles $lib $dependency_libs"
        !          2279:          else
        !          2280:            newdlfiles="$newdlfiles $lib"
        !          2281:          fi
        !          2282:          continue
        !          2283:        fi # $pass = dlopen
        !          2284:
        !          2285:        # We need an absolute path.
        !          2286:        case $ladir in
        !          2287:        [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
        !          2288:        *)
        !          2289:          abs_ladir=`cd "$ladir" && pwd`
        !          2290:          if test -z "$abs_ladir"; then
        !          2291:            $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
        !          2292:            $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
        !          2293:            abs_ladir="$ladir"
        !          2294:          fi
        !          2295:          ;;
        !          2296:        esac
        !          2297:        laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
        !          2298:
        !          2299:        # Find the relevant object directory and library name.
        !          2300:        if test "X$installed" = Xyes; then
        !          2301:          if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
        !          2302:            $echo "$modename: warning: library \`$lib' was moved." 1>&2
        !          2303:            dir="$ladir"
        !          2304:            absdir="$abs_ladir"
        !          2305:            libdir="$abs_ladir"
        !          2306:          else
        !          2307:            dir="$libdir"
        !          2308:            absdir="$libdir"
        !          2309:          fi
        !          2310:        else
        !          2311:          if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
        !          2312:            dir="$ladir"
        !          2313:            absdir="$abs_ladir"
        !          2314:            # Remove this search path later
        !          2315:            notinst_path="$notinst_path $abs_ladir"
        !          2316:          else
        !          2317:            dir="$ladir/$objdir"
        !          2318:            absdir="$abs_ladir/$objdir"
        !          2319:            # Remove this search path later
        !          2320:            notinst_path="$notinst_path $abs_ladir"
        !          2321:          fi
        !          2322:        fi # $installed = yes
        !          2323:        name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
        !          2324:
        !          2325:        # This library was specified with -dlpreopen.
        !          2326:        if test "$pass" = dlpreopen; then
        !          2327:          if test -z "$libdir"; then
        !          2328:            $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
        !          2329:            exit $EXIT_FAILURE
        !          2330:          fi
        !          2331:          # Prefer using a static library (so that no silly _DYNAMIC symbols
        !          2332:          # are required to link).
        !          2333:          if test -n "$old_library"; then
        !          2334:            newdlprefiles="$newdlprefiles $dir/$old_library"
        !          2335:          # Otherwise, use the dlname, so that lt_dlopen finds it.
        !          2336:          elif test -n "$dlname"; then
        !          2337:            newdlprefiles="$newdlprefiles $dir/$dlname"
        !          2338:          else
        !          2339:            newdlprefiles="$newdlprefiles $dir/$linklib"
        !          2340:          fi
        !          2341:        fi # $pass = dlpreopen
        !          2342:
        !          2343:        if test -z "$libdir"; then
        !          2344:          # Link the convenience library
        !          2345:          if test "$linkmode" = lib; then
        !          2346:            deplibs="$dir/$old_library $deplibs"
        !          2347:          elif test "$linkmode,$pass" = "prog,link"; then
        !          2348:            compile_deplibs="$dir/$old_library $compile_deplibs"
        !          2349:            finalize_deplibs="$dir/$old_library $finalize_deplibs"
        !          2350:          else
        !          2351:            deplibs="$lib $deplibs" # used for prog,scan pass
        !          2352:          fi
        !          2353:          continue
        !          2354:        fi
        !          2355:
        !          2356:
        !          2357:        if test "$linkmode" = prog && test "$pass" != link; then
        !          2358:          newlib_search_path="$newlib_search_path $ladir"
        !          2359:          deplibs="$lib $deplibs"
        !          2360:
        !          2361:          linkalldeplibs=no
        !          2362:          if test "$link_all_deplibs" != no || test -z "$library_names" ||
        !          2363:             test "$build_libtool_libs" = no; then
        !          2364:            linkalldeplibs=yes
        !          2365:          fi
        !          2366:
        !          2367:          tmp_libs=
        !          2368:          for deplib in $dependency_libs; do
        !          2369:            case $deplib in
        !          2370:            -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
        !          2371:            esac
        !          2372:            # Need to link against all dependency_libs?
        !          2373:            if test "$linkalldeplibs" = yes; then
        !          2374:              deplibs="$deplib $deplibs"
        !          2375:            else
        !          2376:              # Need to hardcode shared library paths
        !          2377:              # or/and link against static libraries
        !          2378:              newdependency_libs="$deplib $newdependency_libs"
        !          2379:            fi
        !          2380:            if test "X$duplicate_deps" = "Xyes" ; then
        !          2381:              case "$tmp_libs " in
        !          2382:              *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
        !          2383:              esac
        !          2384:            fi
        !          2385:            tmp_libs="$tmp_libs $deplib"
        !          2386:          done # for deplib
        !          2387:          continue
        !          2388:        fi # $linkmode = prog...
        !          2389:
        !          2390:        if test "$linkmode,$pass" = "prog,link"; then
        !          2391:          if test -n "$library_names" &&
        !          2392:             { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
        !          2393:            # We need to hardcode the library path
        !          2394:            if test -n "$shlibpath_var"; then
        !          2395:              # Make sure the rpath contains only unique directories.
        !          2396:              case "$temp_rpath " in
        !          2397:              *" $dir "*) ;;
        !          2398:              *" $absdir "*) ;;
        !          2399:              *) temp_rpath="$temp_rpath $dir" ;;
        !          2400:              esac
        !          2401:            fi
        !          2402:
        !          2403:            # Hardcode the library path.
        !          2404:            # Skip directories that are in the system default run-time
        !          2405:            # search path.
        !          2406:            case " $sys_lib_dlsearch_path " in
        !          2407:            *" $absdir "*) ;;
        !          2408:            *)
        !          2409:              case "$compile_rpath " in
        !          2410:              *" $absdir "*) ;;
        !          2411:              *) compile_rpath="$compile_rpath $absdir"
        !          2412:              esac
        !          2413:              ;;
        !          2414:            esac
        !          2415:            case " $sys_lib_dlsearch_path " in
        !          2416:            *" $libdir "*) ;;
        !          2417:            *)
        !          2418:              case "$finalize_rpath " in
        !          2419:              *" $libdir "*) ;;
        !          2420:              *) finalize_rpath="$finalize_rpath $libdir"
        !          2421:              esac
        !          2422:              ;;
        !          2423:            esac
        !          2424:          fi # $linkmode,$pass = prog,link...
        !          2425:
        !          2426:          if test "$alldeplibs" = yes &&
        !          2427:             { test "$deplibs_check_method" = pass_all ||
        !          2428:               { test "$build_libtool_libs" = yes &&
        !          2429:                 test -n "$library_names"; }; }; then
        !          2430:            # We only need to search for static libraries
        !          2431:            continue
        !          2432:          fi
        !          2433:        fi
        !          2434:
        !          2435:        link_static=no # Whether the deplib will be linked statically
        !          2436:        if test -n "$library_names" &&
        !          2437:           { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
        !          2438:          if test "$installed" = no; then
        !          2439:            notinst_deplibs="$notinst_deplibs $lib"
        !          2440:            need_relink=yes
        !          2441:          fi
        !          2442:          # This is a shared library
        !          2443:
        !          2444:          # Warn about portability, can't link against -module's on
        !          2445:          # some systems (darwin)
        !          2446:          if test "$shouldnotlink" = yes && test "$pass" = link ; then
        !          2447:            $echo
        !          2448:            if test "$linkmode" = prog; then
        !          2449:              $echo "*** Warning: Linking the executable $output against the loadable module"
        !          2450:            else
        !          2451:              $echo "*** Warning: Linking the shared library $output against the loadable module"
        !          2452:            fi
        !          2453:            $echo "*** $linklib is not portable!"
        !          2454:          fi
        !          2455:          if test "$linkmode" = lib &&
        !          2456:             test "$hardcode_into_libs" = yes; then
        !          2457:            # Hardcode the library path.
        !          2458:            # Skip directories that are in the system default run-time
        !          2459:            # search path.
        !          2460:            case " $sys_lib_dlsearch_path " in
        !          2461:            *" $absdir "*) ;;
        !          2462:            *)
        !          2463:              case "$compile_rpath " in
        !          2464:              *" $absdir "*) ;;
        !          2465:              *) compile_rpath="$compile_rpath $absdir"
        !          2466:              esac
        !          2467:              ;;
        !          2468:            esac
        !          2469:            case " $sys_lib_dlsearch_path " in
        !          2470:            *" $libdir "*) ;;
        !          2471:            *)
        !          2472:              case "$finalize_rpath " in
        !          2473:              *" $libdir "*) ;;
        !          2474:              *) finalize_rpath="$finalize_rpath $libdir"
        !          2475:              esac
        !          2476:              ;;
        !          2477:            esac
        !          2478:          fi
        !          2479:
        !          2480:          if test -n "$old_archive_from_expsyms_cmds"; then
        !          2481:            # figure out the soname
        !          2482:            set dummy $library_names
        !          2483:            realname="$2"
        !          2484:            shift; shift
        !          2485:            libname=`eval \\$echo \"$libname_spec\"`
        !          2486:            # use dlname if we got it. it's perfectly good, no?
        !          2487:            if test -n "$dlname"; then
        !          2488:              soname="$dlname"
        !          2489:            elif test -n "$soname_spec"; then
        !          2490:              # bleh windows
        !          2491:              case $host in
        !          2492:              *cygwin* | mingw*)
        !          2493:                major=`expr $current - $age`
        !          2494:                versuffix="-$major"
        !          2495:                ;;
        !          2496:              esac
        !          2497:              eval soname=\"$soname_spec\"
        !          2498:            else
        !          2499:              soname="$realname"
        !          2500:            fi
        !          2501:
        !          2502:            # Make a new name for the extract_expsyms_cmds to use
        !          2503:            soroot="$soname"
        !          2504:            soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
        !          2505:            newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
        !          2506:
        !          2507:            # If the library has no export list, then create one now
        !          2508:            if test -f "$output_objdir/$soname-def"; then :
        !          2509:            else
        !          2510:              $show "extracting exported symbol list from \`$soname'"
        !          2511:              save_ifs="$IFS"; IFS='~'
        !          2512:              cmds=$extract_expsyms_cmds
        !          2513:              for cmd in $cmds; do
        !          2514:                IFS="$save_ifs"
        !          2515:                eval cmd=\"$cmd\"
        !          2516:                $show "$cmd"
        !          2517:                $run eval "$cmd" || exit $?
        !          2518:              done
        !          2519:              IFS="$save_ifs"
        !          2520:            fi
        !          2521:
        !          2522:            # Create $newlib
        !          2523:            if test -f "$output_objdir/$newlib"; then :; else
        !          2524:              $show "generating import library for \`$soname'"
        !          2525:              save_ifs="$IFS"; IFS='~'
        !          2526:              cmds=$old_archive_from_expsyms_cmds
        !          2527:              for cmd in $cmds; do
        !          2528:                IFS="$save_ifs"
        !          2529:                eval cmd=\"$cmd\"
        !          2530:                $show "$cmd"
        !          2531:                $run eval "$cmd" || exit $?
        !          2532:              done
        !          2533:              IFS="$save_ifs"
        !          2534:            fi
        !          2535:            # make sure the library variables are pointing to the new library
        !          2536:            dir=$output_objdir
        !          2537:            linklib=$newlib
        !          2538:          fi # test -n "$old_archive_from_expsyms_cmds"
        !          2539:
        !          2540:          if test "$linkmode" = prog || test "$mode" != relink; then
        !          2541:            add_shlibpath=
        !          2542:            add_dir=
        !          2543:            add=
        !          2544:            lib_linked=yes
        !          2545:            case $hardcode_action in
        !          2546:            immediate | unsupported)
        !          2547:              if test "$hardcode_direct" = no; then
        !          2548:                add="$dir/$linklib"
        !          2549:                case $host in
        !          2550:                  *-*-sco3.2v5* ) add_dir="-L$dir" ;;
        !          2551:                  *-*-darwin* )
        !          2552:                    # if the lib is a module then we can not link against
        !          2553:                    # it, someone is ignoring the new warnings I added
        !          2554:                    if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
        !          2555:                      $echo "** Warning, lib $linklib is a module, not a shared library"
        !          2556:                      if test -z "$old_library" ; then
        !          2557:                        $echo
        !          2558:                        $echo "** And there doesn't seem to be a static archive available"
        !          2559:                        $echo "** The link will probably fail, sorry"
        !          2560:                      else
        !          2561:                        add="$dir/$old_library"
        !          2562:                      fi
        !          2563:                    fi
        !          2564:                esac
        !          2565:              elif test "$hardcode_minus_L" = no; then
        !          2566:                case $host in
        !          2567:                *-*-sunos*) add_shlibpath="$dir" ;;
        !          2568:                esac
        !          2569:                add_dir="-L$dir"
        !          2570:                add="-l$name"
        !          2571:              elif test "$hardcode_shlibpath_var" = no; then
        !          2572:                add_shlibpath="$dir"
        !          2573:                add="-l$name"
        !          2574:              else
        !          2575:                lib_linked=no
        !          2576:              fi
        !          2577:              ;;
        !          2578:            relink)
        !          2579:              if test "$hardcode_direct" = yes; then
        !          2580:                add="$dir/$linklib"
        !          2581:              elif test "$hardcode_minus_L" = yes; then
        !          2582:                add_dir="-L$dir"
        !          2583:                # Try looking first in the location we're being installed to.
        !          2584:                if test -n "$inst_prefix_dir"; then
        !          2585:                  case "$libdir" in
        !          2586:                    [\\/]*)
        !          2587:                      add_dir="$add_dir -L$inst_prefix_dir$libdir"
        !          2588:                      ;;
        !          2589:                  esac
        !          2590:                fi
        !          2591:                add="-l$name"
        !          2592:              elif test "$hardcode_shlibpath_var" = yes; then
        !          2593:                add_shlibpath="$dir"
        !          2594:                add="-l$name"
        !          2595:              else
        !          2596:                lib_linked=no
        !          2597:              fi
        !          2598:              ;;
        !          2599:            *) lib_linked=no ;;
        !          2600:            esac
        !          2601:
        !          2602:            if test "$lib_linked" != yes; then
        !          2603:              $echo "$modename: configuration error: unsupported hardcode properties"
        !          2604:              exit $EXIT_FAILURE
        !          2605:            fi
        !          2606:
        !          2607:            if test -n "$add_shlibpath"; then
        !          2608:              case :$compile_shlibpath: in
        !          2609:              *":$add_shlibpath:"*) ;;
        !          2610:              *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
        !          2611:              esac
        !          2612:            fi
        !          2613:            if test "$linkmode" = prog; then
        !          2614:              test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
        !          2615:              test -n "$add" && compile_deplibs="$add $compile_deplibs"
        !          2616:            else
        !          2617:              test -n "$add_dir" && deplibs="$add_dir $deplibs"
        !          2618:              test -n "$add" && deplibs="$add $deplibs"
        !          2619:              if test "$hardcode_direct" != yes && \
        !          2620:                 test "$hardcode_minus_L" != yes && \
        !          2621:                 test "$hardcode_shlibpath_var" = yes; then
        !          2622:                case :$finalize_shlibpath: in
        !          2623:                *":$libdir:"*) ;;
        !          2624:                *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
        !          2625:                esac
        !          2626:              fi
        !          2627:            fi
        !          2628:          fi
        !          2629:
        !          2630:          if test "$linkmode" = prog || test "$mode" = relink; then
        !          2631:            add_shlibpath=
        !          2632:            add_dir=
        !          2633:            add=
        !          2634:            # Finalize command for both is simple: just hardcode it.
        !          2635:            if test "$hardcode_direct" = yes; then
        !          2636:              add="$libdir/$linklib"
        !          2637:            elif test "$hardcode_minus_L" = yes; then
        !          2638:              add_dir="-L$libdir"
        !          2639:              add="-l$name"
        !          2640:            elif test "$hardcode_shlibpath_var" = yes; then
        !          2641:              case :$finalize_shlibpath: in
        !          2642:              *":$libdir:"*) ;;
        !          2643:              *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
        !          2644:              esac
        !          2645:              add="-l$name"
        !          2646:            elif test "$hardcode_automatic" = yes; then
        !          2647:              if test -n "$inst_prefix_dir" &&
        !          2648:                 test -f "$inst_prefix_dir$libdir/$linklib" ; then
        !          2649:                add="$inst_prefix_dir$libdir/$linklib"
        !          2650:              else
        !          2651:                add="$libdir/$linklib"
        !          2652:              fi
        !          2653:            else
        !          2654:              # We cannot seem to hardcode it, guess we'll fake it.
        !          2655:              add_dir="-L$libdir"
        !          2656:              # Try looking first in the location we're being installed to.
        !          2657:              if test -n "$inst_prefix_dir"; then
        !          2658:                case "$libdir" in
        !          2659:                  [\\/]*)
        !          2660:                    add_dir="$add_dir -L$inst_prefix_dir$libdir"
        !          2661:                    ;;
        !          2662:                esac
        !          2663:              fi
        !          2664:              add="-l$name"
        !          2665:            fi
        !          2666:
        !          2667:            if test "$linkmode" = prog; then
        !          2668:              test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
        !          2669:              test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
        !          2670:            else
        !          2671:              test -n "$add_dir" && deplibs="$add_dir $deplibs"
        !          2672:              test -n "$add" && deplibs="$add $deplibs"
        !          2673:            fi
        !          2674:          fi
        !          2675:        elif test "$linkmode" = prog; then
        !          2676:          # Here we assume that one of hardcode_direct or hardcode_minus_L
        !          2677:          # is not unsupported.  This is valid on all known static and
        !          2678:          # shared platforms.
        !          2679:          if test "$hardcode_direct" != unsupported; then
        !          2680:            test -n "$old_library" && linklib="$old_library"
        !          2681:            compile_deplibs="$dir/$linklib $compile_deplibs"
        !          2682:            finalize_deplibs="$dir/$linklib $finalize_deplibs"
        !          2683:          else
        !          2684:            compile_deplibs="-l$name -L$dir $compile_deplibs"
        !          2685:            finalize_deplibs="-l$name -L$dir $finalize_deplibs"
        !          2686:          fi
        !          2687:        elif test "$build_libtool_libs" = yes; then
        !          2688:          # Not a shared library
        !          2689:          if test "$deplibs_check_method" != pass_all; then
        !          2690:            # We're trying link a shared library against a static one
        !          2691:            # but the system doesn't support it.
        !          2692:
        !          2693:            # Just print a warning and add the library to dependency_libs so
        !          2694:            # that the program can be linked against the static library.
        !          2695:            $echo
        !          2696:            $echo "*** Warning: This system can not link to static lib archive $lib."
        !          2697:            $echo "*** I have the capability to make that library automatically link in when"
        !          2698:            $echo "*** you link to this library.  But I can only do this if you have a"
        !          2699:            $echo "*** shared version of the library, which you do not appear to have."
        !          2700:            if test "$module" = yes; then
        !          2701:              $echo "*** But as you try to build a module library, libtool will still create "
        !          2702:              $echo "*** a static module, that should work as long as the dlopening application"
        !          2703:              $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
        !          2704:              if test -z "$global_symbol_pipe"; then
        !          2705:                $echo
        !          2706:                $echo "*** However, this would only work if libtool was able to extract symbol"
        !          2707:                $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
        !          2708:                $echo "*** not find such a program.  So, this module is probably useless."
        !          2709:                $echo "*** \`nm' from GNU binutils and a full rebuild may help."
        !          2710:              fi
        !          2711:              if test "$build_old_libs" = no; then
        !          2712:                build_libtool_libs=module
        !          2713:                build_old_libs=yes
        !          2714:              else
        !          2715:                build_libtool_libs=no
        !          2716:              fi
        !          2717:            fi
        !          2718:          else
        !          2719:            convenience="$convenience $dir/$old_library"
        !          2720:            old_convenience="$old_convenience $dir/$old_library"
        !          2721:            deplibs="$dir/$old_library $deplibs"
        !          2722:            link_static=yes
        !          2723:          fi
        !          2724:        fi # link shared/static library?
        !          2725:
        !          2726:        if test "$linkmode" = lib; then
        !          2727:          if test -n "$dependency_libs" &&
        !          2728:             { test "$hardcode_into_libs" != yes ||
        !          2729:               test "$build_old_libs" = yes ||
        !          2730:               test "$link_static" = yes; }; then
        !          2731:            # Extract -R from dependency_libs
        !          2732:            temp_deplibs=
        !          2733:            for libdir in $dependency_libs; do
        !          2734:              case $libdir in
        !          2735:              -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
        !          2736:                   case " $xrpath " in
        !          2737:                   *" $temp_xrpath "*) ;;
        !          2738:                   *) xrpath="$xrpath $temp_xrpath";;
        !          2739:                   esac;;
        !          2740:              *) temp_deplibs="$temp_deplibs $libdir";;
        !          2741:              esac
        !          2742:            done
        !          2743:            dependency_libs="$temp_deplibs"
        !          2744:          fi
        !          2745:
        !          2746:          newlib_search_path="$newlib_search_path $absdir"
        !          2747:          # Link against this library
        !          2748:          test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
        !          2749:          # ... and its dependency_libs
        !          2750:          tmp_libs=
        !          2751:          for deplib in $dependency_libs; do
        !          2752:            newdependency_libs="$deplib $newdependency_libs"
        !          2753:            if test "X$duplicate_deps" = "Xyes" ; then
        !          2754:              case "$tmp_libs " in
        !          2755:              *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
        !          2756:              esac
        !          2757:            fi
        !          2758:            tmp_libs="$tmp_libs $deplib"
        !          2759:          done
        !          2760:
        !          2761:          if test "$link_all_deplibs" != no; then
        !          2762:            # Add the search paths of all dependency libraries
        !          2763:            for deplib in $dependency_libs; do
        !          2764:              case $deplib in
        !          2765:              -L*) path="$deplib" ;;
        !          2766:              *.la)
        !          2767:                dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
        !          2768:                test "X$dir" = "X$deplib" && dir="."
        !          2769:                # We need an absolute path.
        !          2770:                case $dir in
        !          2771:                [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
        !          2772:                *)
        !          2773:                  absdir=`cd "$dir" && pwd`
        !          2774:                  if test -z "$absdir"; then
        !          2775:                    $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
        !          2776:                    absdir="$dir"
        !          2777:                  fi
        !          2778:                  ;;
        !          2779:                esac
        !          2780:                if grep "^installed=no" $deplib > /dev/null; then
        !          2781:                  path="$absdir/$objdir"
        !          2782:                else
        !          2783:                  eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
        !          2784:                  if test -z "$libdir"; then
        !          2785:                    $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
        !          2786:                    exit $EXIT_FAILURE
        !          2787:                  fi
        !          2788:                  if test "$absdir" != "$libdir"; then
        !          2789:                    $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
        !          2790:                  fi
        !          2791:                  path="$absdir"
        !          2792:                fi
        !          2793:                depdepl=
        !          2794:                case $host in
        !          2795:                *-*-darwin*)
        !          2796:                  # we do not want to link against static libs,
        !          2797:                  # but need to link against shared
        !          2798:                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
        !          2799:                  if test -n "$deplibrary_names" ; then
        !          2800:                    for tmp in $deplibrary_names ; do
        !          2801:                      depdepl=$tmp
        !          2802:                    done
        !          2803:                    if test -f "$path/$depdepl" ; then
        !          2804:                      depdepl="$path/$depdepl"
        !          2805:                    fi
        !          2806:                    # do not add paths which are already there
        !          2807:                    case " $newlib_search_path " in
        !          2808:                    *" $path "*) ;;
        !          2809:                    *) newlib_search_path="$newlib_search_path $path";;
        !          2810:                    esac
        !          2811:                  fi
        !          2812:                  path=""
        !          2813:                  ;;
        !          2814:                *)
        !          2815:                  path="-L$path"
        !          2816:                  ;;
        !          2817:                esac
        !          2818:                ;;
        !          2819:              -l*)
        !          2820:                case $host in
        !          2821:                *-*-darwin*)
        !          2822:                  # Again, we only want to link against shared libraries
        !          2823:                  eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
        !          2824:                  for tmp in $newlib_search_path ; do
        !          2825:                    if test -f "$tmp/lib$tmp_libs.dylib" ; then
        !          2826:                      eval depdepl="$tmp/lib$tmp_libs.dylib"
        !          2827:                      break
        !          2828:                    fi
        !          2829:                  done
        !          2830:                  path=""
        !          2831:                  ;;
        !          2832:                *) continue ;;
        !          2833:                esac
        !          2834:                ;;
        !          2835:              *) continue ;;
        !          2836:              esac
        !          2837:              case " $deplibs " in
        !          2838:              *" $depdepl "*) ;;
        !          2839:              *) deplibs="$depdepl $deplibs" ;;
        !          2840:              esac
        !          2841:              case " $deplibs " in
        !          2842:              *" $path "*) ;;
        !          2843:              *) deplibs="$deplibs $path" ;;
        !          2844:              esac
        !          2845:            done
        !          2846:          fi # link_all_deplibs != no
        !          2847:        fi # linkmode = lib
        !          2848:       done # for deplib in $libs
        !          2849:       dependency_libs="$newdependency_libs"
        !          2850:       if test "$pass" = dlpreopen; then
        !          2851:        # Link the dlpreopened libraries before other libraries
        !          2852:        for deplib in $save_deplibs; do
        !          2853:          deplibs="$deplib $deplibs"
        !          2854:        done
        !          2855:       fi
        !          2856:       if test "$pass" != dlopen; then
        !          2857:        if test "$pass" != conv; then
        !          2858:          # Make sure lib_search_path contains only unique directories.
        !          2859:          lib_search_path=
        !          2860:          for dir in $newlib_search_path; do
        !          2861:            case "$lib_search_path " in
        !          2862:            *" $dir "*) ;;
        !          2863:            *) lib_search_path="$lib_search_path $dir" ;;
        !          2864:            esac
        !          2865:          done
        !          2866:          newlib_search_path=
        !          2867:        fi
        !          2868:
        !          2869:        if test "$linkmode,$pass" != "prog,link"; then
        !          2870:          vars="deplibs"
        !          2871:        else
        !          2872:          vars="compile_deplibs finalize_deplibs"
        !          2873:        fi
        !          2874:        for var in $vars dependency_libs; do
        !          2875:          # Add libraries to $var in reverse order
        !          2876:          eval tmp_libs=\"\$$var\"
        !          2877:          new_libs=
        !          2878:          for deplib in $tmp_libs; do
        !          2879:            # FIXME: Pedantically, this is the right thing to do, so
        !          2880:            #        that some nasty dependency loop isn't accidentally
        !          2881:            #        broken:
        !          2882:            #new_libs="$deplib $new_libs"
        !          2883:            # Pragmatically, this seems to cause very few problems in
        !          2884:            # practice:
        !          2885:            case $deplib in
        !          2886:            -L*) new_libs="$deplib $new_libs" ;;
        !          2887:            -R*) ;;
        !          2888:            *)
        !          2889:              # And here is the reason: when a library appears more
        !          2890:              # than once as an explicit dependence of a library, or
        !          2891:              # is implicitly linked in more than once by the
        !          2892:              # compiler, it is considered special, and multiple
        !          2893:              # occurrences thereof are not removed.  Compare this
        !          2894:              # with having the same library being listed as a
        !          2895:              # dependency of multiple other libraries: in this case,
        !          2896:              # we know (pedantically, we assume) the library does not
        !          2897:              # need to be listed more than once, so we keep only the
        !          2898:              # last copy.  This is not always right, but it is rare
        !          2899:              # enough that we require users that really mean to play
        !          2900:              # such unportable linking tricks to link the library
        !          2901:              # using -Wl,-lname, so that libtool does not consider it
        !          2902:              # for duplicate removal.
        !          2903:              case " $specialdeplibs " in
        !          2904:              *" $deplib "*) new_libs="$deplib $new_libs" ;;
        !          2905:              *)
        !          2906:                case " $new_libs " in
        !          2907:                *" $deplib "*) ;;
        !          2908:                *) new_libs="$deplib $new_libs" ;;
        !          2909:                esac
        !          2910:                ;;
        !          2911:              esac
        !          2912:              ;;
        !          2913:            esac
        !          2914:          done
        !          2915:          tmp_libs=
        !          2916:          for deplib in $new_libs; do
        !          2917:            case $deplib in
        !          2918:            -L*)
        !          2919:              case " $tmp_libs " in
        !          2920:              *" $deplib "*) ;;
        !          2921:              *) tmp_libs="$tmp_libs $deplib" ;;
        !          2922:              esac
        !          2923:              ;;
        !          2924:            *) tmp_libs="$tmp_libs $deplib" ;;
        !          2925:            esac
        !          2926:          done
        !          2927:          eval $var=\"$tmp_libs\"
        !          2928:        done # for var
        !          2929:       fi
        !          2930:       # Last step: remove runtime libs from dependency_libs
        !          2931:       # (they stay in deplibs)
        !          2932:       tmp_libs=
        !          2933:       for i in $dependency_libs ; do
        !          2934:        case " $predeps $postdeps $compiler_lib_search_path " in
        !          2935:        *" $i "*)
        !          2936:          i=""
        !          2937:          ;;
        !          2938:        esac
        !          2939:        if test -n "$i" ; then
        !          2940:          tmp_libs="$tmp_libs $i"
        !          2941:        fi
        !          2942:       done
        !          2943:       dependency_libs=$tmp_libs
        !          2944:     done # for pass
        !          2945:     if test "$linkmode" = prog; then
        !          2946:       dlfiles="$newdlfiles"
        !          2947:       dlprefiles="$newdlprefiles"
        !          2948:     fi
        !          2949:
        !          2950:     case $linkmode in
        !          2951:     oldlib)
        !          2952:       if test -n "$deplibs"; then
        !          2953:        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
        !          2954:       fi
        !          2955:
        !          2956:       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
        !          2957:        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
        !          2958:       fi
        !          2959:
        !          2960:       if test -n "$rpath"; then
        !          2961:        $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
        !          2962:       fi
        !          2963:
        !          2964:       if test -n "$xrpath"; then
        !          2965:        $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
        !          2966:       fi
        !          2967:
        !          2968:       if test -n "$vinfo"; then
        !          2969:        $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
        !          2970:       fi
        !          2971:
        !          2972:       if test -n "$release"; then
        !          2973:        $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
        !          2974:       fi
        !          2975:
        !          2976:       if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
        !          2977:        $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
        !          2978:       fi
        !          2979:
        !          2980:       # Now set the variables for building old libraries.
        !          2981:       build_libtool_libs=no
        !          2982:       oldlibs="$output"
        !          2983:       objs="$objs$old_deplibs"
        !          2984:       ;;
        !          2985:
        !          2986:     lib)
        !          2987:       # Make sure we only generate libraries of the form `libNAME.la'.
        !          2988:       case $outputname in
        !          2989:       lib*)
        !          2990:        name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
        !          2991:        eval shared_ext=\"$shrext_cmds\"
        !          2992:        eval libname=\"$libname_spec\"
        !          2993:        ;;
        !          2994:       *)
        !          2995:        if test "$module" = no; then
        !          2996:          $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
        !          2997:          $echo "$help" 1>&2
        !          2998:          exit $EXIT_FAILURE
        !          2999:        fi
        !          3000:        if test "$need_lib_prefix" != no; then
        !          3001:          # Add the "lib" prefix for modules if required
        !          3002:          name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
        !          3003:          eval shared_ext=\"$shrext_cmds\"
        !          3004:          eval libname=\"$libname_spec\"
        !          3005:        else
        !          3006:          libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
        !          3007:        fi
        !          3008:        ;;
        !          3009:       esac
        !          3010:
        !          3011:       if test -n "$objs"; then
        !          3012:        if test "$deplibs_check_method" != pass_all; then
        !          3013:          $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
        !          3014:          exit $EXIT_FAILURE
        !          3015:        else
        !          3016:          $echo
        !          3017:          $echo "*** Warning: Linking the shared library $output against the non-libtool"
        !          3018:          $echo "*** objects $objs is not portable!"
        !          3019:          libobjs="$libobjs $objs"
        !          3020:        fi
        !          3021:       fi
        !          3022:
        !          3023:       if test "$dlself" != no; then
        !          3024:        $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
        !          3025:       fi
        !          3026:
        !          3027:       set dummy $rpath
        !          3028:       if test "$#" -gt 2; then
        !          3029:        $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
        !          3030:       fi
        !          3031:       install_libdir="$2"
        !          3032:
        !          3033:       oldlibs=
        !          3034:       if test -z "$rpath"; then
        !          3035:        if test "$build_libtool_libs" = yes; then
        !          3036:          # Building a libtool convenience library.
        !          3037:          # Some compilers have problems with a `.al' extension so
        !          3038:          # convenience libraries should have the same extension an
        !          3039:          # archive normally would.
        !          3040:          oldlibs="$output_objdir/$libname.$libext $oldlibs"
        !          3041:          build_libtool_libs=convenience
        !          3042:          build_old_libs=yes
        !          3043:        fi
        !          3044:
        !          3045:        if test -n "$vinfo"; then
        !          3046:          $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
        !          3047:        fi
        !          3048:
        !          3049:        if test -n "$release"; then
        !          3050:          $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
        !          3051:        fi
        !          3052:       else
        !          3053:
        !          3054:        # Parse the version information argument.
        !          3055:        save_ifs="$IFS"; IFS=':'
        !          3056:        set dummy $vinfo 0 0 0
        !          3057:        IFS="$save_ifs"
        !          3058:
        !          3059:        if test -n "$8"; then
        !          3060:          $echo "$modename: too many parameters to \`-version-info'" 1>&2
        !          3061:          $echo "$help" 1>&2
        !          3062:          exit $EXIT_FAILURE
        !          3063:        fi
        !          3064:
        !          3065:        # convert absolute version numbers to libtool ages
        !          3066:        # this retains compatibility with .la files and attempts
        !          3067:        # to make the code below a bit more comprehensible
        !          3068:
        !          3069:        case $vinfo_number in
        !          3070:        yes)
        !          3071:          number_major="$2"
        !          3072:          number_minor="$3"
        !          3073:          number_revision="$4"
        !          3074:          #
        !          3075:          # There are really only two kinds -- those that
        !          3076:          # use the current revision as the major version
        !          3077:          # and those that subtract age and use age as
        !          3078:          # a minor version.  But, then there is irix
        !          3079:          # which has an extra 1 added just for fun
        !          3080:          #
        !          3081:          case $version_type in
        !          3082:          darwin|linux|osf|windows)
        !          3083:            current=`expr $number_major + $number_minor`
        !          3084:            age="$number_minor"
        !          3085:            revision="$number_revision"
        !          3086:            ;;
        !          3087:          freebsd-aout|freebsd-elf|sunos)
        !          3088:            current="$number_major"
        !          3089:            revision="$number_minor"
        !          3090:            age="0"
        !          3091:            ;;
        !          3092:          irix|nonstopux)
        !          3093:            current=`expr $number_major + $number_minor - 1`
        !          3094:            age="$number_minor"
        !          3095:            revision="$number_minor"
        !          3096:            ;;
        !          3097:          esac
        !          3098:          ;;
        !          3099:        no)
        !          3100:          current="$2"
        !          3101:          revision="$3"
        !          3102:          age="$4"
        !          3103:          ;;
        !          3104:        esac
        !          3105:
        !          3106:        # Check that each of the things are valid numbers.
        !          3107:        case $current in
        !          3108:        0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
        !          3109:        *)
        !          3110:          $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
        !          3111:          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
        !          3112:          exit $EXIT_FAILURE
        !          3113:          ;;
        !          3114:        esac
        !          3115:
        !          3116:        case $revision in
        !          3117:        0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
        !          3118:        *)
        !          3119:          $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
        !          3120:          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
        !          3121:          exit $EXIT_FAILURE
        !          3122:          ;;
        !          3123:        esac
        !          3124:
        !          3125:        case $age in
        !          3126:        0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
        !          3127:        *)
        !          3128:          $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
        !          3129:          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
        !          3130:          exit $EXIT_FAILURE
        !          3131:          ;;
        !          3132:        esac
        !          3133:
        !          3134:        if test "$age" -gt "$current"; then
        !          3135:          $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
        !          3136:          $echo "$modename: \`$vinfo' is not valid version information" 1>&2
        !          3137:          exit $EXIT_FAILURE
        !          3138:        fi
        !          3139:
        !          3140:        # Calculate the version variables.
        !          3141:        major=
        !          3142:        versuffix=
        !          3143:        verstring=
        !          3144:        case $version_type in
        !          3145:        none) ;;
        !          3146:
        !          3147:        darwin)
        !          3148:          # Like Linux, but with the current version available in
        !          3149:          # verstring for coding it into the library header
        !          3150:          major=.`expr $current - $age`
        !          3151:          versuffix="$major.$age.$revision"
        !          3152:          # Darwin ld doesn't like 0 for these options...
        !          3153:          minor_current=`expr $current + 1`
        !          3154:          verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
        !          3155:          ;;
        !          3156:
        !          3157:        freebsd-aout)
        !          3158:          major=".$current"
        !          3159:          versuffix=".$current.$revision";
        !          3160:          ;;
        !          3161:
        !          3162:        freebsd-elf)
        !          3163:          major=".$current"
        !          3164:          versuffix=".$current";
        !          3165:          ;;
        !          3166:
        !          3167:        irix | nonstopux)
        !          3168:          major=`expr $current - $age + 1`
        !          3169:
        !          3170:          case $version_type in
        !          3171:            nonstopux) verstring_prefix=nonstopux ;;
        !          3172:            *)         verstring_prefix=sgi ;;
        !          3173:          esac
        !          3174:          verstring="$verstring_prefix$major.$revision"
        !          3175:
        !          3176:          # Add in all the interfaces that we are compatible with.
        !          3177:          loop=$revision
        !          3178:          while test "$loop" -ne 0; do
        !          3179:            iface=`expr $revision - $loop`
        !          3180:            loop=`expr $loop - 1`
        !          3181:            verstring="$verstring_prefix$major.$iface:$verstring"
        !          3182:          done
        !          3183:
        !          3184:          # Before this point, $major must not contain `.'.
        !          3185:          major=.$major
        !          3186:          versuffix="$major.$revision"
        !          3187:          ;;
        !          3188:
        !          3189:        linux)
        !          3190:          major=.`expr $current - $age`
        !          3191:          versuffix="$major.$age.$revision"
        !          3192:          versuffix2="$major.$age"
        !          3193:          ;;
        !          3194:
        !          3195:        osf)
        !          3196:          major=.`expr $current - $age`
        !          3197:          versuffix=".$current.$age.$revision"
        !          3198:          verstring="$current.$age.$revision"
        !          3199:
        !          3200:          # Add in all the interfaces that we are compatible with.
        !          3201:          loop=$age
        !          3202:          while test "$loop" -ne 0; do
        !          3203:            iface=`expr $current - $loop`
        !          3204:            loop=`expr $loop - 1`
        !          3205:            verstring="$verstring:${iface}.0"
        !          3206:          done
        !          3207:
        !          3208:          # Make executables depend on our current version.
        !          3209:          verstring="$verstring:${current}.0"
        !          3210:          ;;
        !          3211:
        !          3212:        sunos)
        !          3213:          major=".$current"
        !          3214:          versuffix=".$current.$revision"
        !          3215:          ;;
        !          3216:
        !          3217:        windows)
        !          3218:          # Use '-' rather than '.', since we only want one
        !          3219:          # extension on DOS 8.3 filesystems.
        !          3220:          major=`expr $current - $age`
        !          3221:          versuffix="-$major"
        !          3222:          ;;
        !          3223:
        !          3224:        *)
        !          3225:          $echo "$modename: unknown library version type \`$version_type'" 1>&2
        !          3226:          $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
        !          3227:          exit $EXIT_FAILURE
        !          3228:          ;;
        !          3229:        esac
        !          3230:
        !          3231:        # Clear the version info if we defaulted, and they specified a release.
        !          3232:        if test -z "$vinfo" && test -n "$release"; then
        !          3233:          major=
        !          3234:          case $version_type in
        !          3235:          darwin)
        !          3236:            # we can't check for "0.0" in archive_cmds due to quoting
        !          3237:            # problems, so we reset it completely
        !          3238:            verstring=
        !          3239:            ;;
        !          3240:          *)
        !          3241:            verstring="0.0"
        !          3242:            ;;
        !          3243:          esac
        !          3244:          if test "$need_version" = no; then
        !          3245:            versuffix=
        !          3246:          else
        !          3247:            versuffix=".0.0"
        !          3248:          fi
        !          3249:        fi
        !          3250:
        !          3251:        # Remove version info from name if versioning should be avoided
        !          3252:        if test "$avoid_version" = yes && test "$need_version" = no; then
        !          3253:          major=
        !          3254:          versuffix=
        !          3255:          verstring=""
        !          3256:        fi
        !          3257:
        !          3258:        # Check to see if the archive will have undefined symbols.
        !          3259:        if test "$allow_undefined" = yes; then
        !          3260:          if test "$allow_undefined_flag" = unsupported; then
        !          3261:            $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
        !          3262:            build_libtool_libs=no
        !          3263:            build_old_libs=yes
        !          3264:          fi
        !          3265:        else
        !          3266:          # Don't allow undefined symbols.
        !          3267:          allow_undefined_flag="$no_undefined_flag"
        !          3268:        fi
        !          3269:       fi
        !          3270:
        !          3271:       if test "$mode" != relink; then
        !          3272:        # Remove our outputs, but don't remove object files since they
        !          3273:        # may have been created when compiling PIC objects.
        !          3274:        removelist=
        !          3275:        tempremovelist=`$echo "$output_objdir/*"`
        !          3276:        for p in $tempremovelist; do
        !          3277:          case $p in
        !          3278:            *.$objext)
        !          3279:               ;;
        !          3280:            $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
        !          3281:               if test "X$precious_files_regex" != "X"; then
        !          3282:                 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
        !          3283:                 then
        !          3284:                   continue
        !          3285:                 fi
        !          3286:               fi
        !          3287:               removelist="$removelist $p"
        !          3288:               ;;
        !          3289:            *) ;;
        !          3290:          esac
        !          3291:        done
        !          3292:        if test -n "$removelist"; then
        !          3293:          $show "${rm}r $removelist"
        !          3294:          $run ${rm}r $removelist
        !          3295:        fi
        !          3296:       fi
        !          3297:
        !          3298:       # Now set the variables for building old libraries.
        !          3299:       if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
        !          3300:        oldlibs="$oldlibs $output_objdir/$libname.$libext"
        !          3301:
        !          3302:        # Transform .lo files to .o files.
        !          3303:        oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
        !          3304:       fi
        !          3305:
        !          3306:       # Eliminate all temporary directories.
        !          3307:       for path in $notinst_path; do
        !          3308:        lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
        !          3309:        deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
        !          3310:        dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
        !          3311:       done
        !          3312:
        !          3313:       if test -n "$xrpath"; then
        !          3314:        # If the user specified any rpath flags, then add them.
        !          3315:        temp_xrpath=
        !          3316:        for libdir in $xrpath; do
        !          3317:          temp_xrpath="$temp_xrpath -R$libdir"
        !          3318:          case "$finalize_rpath " in
        !          3319:          *" $libdir "*) ;;
        !          3320:          *) finalize_rpath="$finalize_rpath $libdir" ;;
        !          3321:          esac
        !          3322:        done
        !          3323:        if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
        !          3324:          dependency_libs="$temp_xrpath $dependency_libs"
        !          3325:        fi
        !          3326:       fi
        !          3327:
        !          3328:       # Make sure dlfiles contains only unique files that won't be dlpreopened
        !          3329:       old_dlfiles="$dlfiles"
        !          3330:       dlfiles=
        !          3331:       for lib in $old_dlfiles; do
        !          3332:        case " $dlprefiles $dlfiles " in
        !          3333:        *" $lib "*) ;;
        !          3334:        *) dlfiles="$dlfiles $lib" ;;
        !          3335:        esac
        !          3336:       done
        !          3337:
        !          3338:       # Make sure dlprefiles contains only unique files
        !          3339:       old_dlprefiles="$dlprefiles"
        !          3340:       dlprefiles=
        !          3341:       for lib in $old_dlprefiles; do
        !          3342:        case "$dlprefiles " in
        !          3343:        *" $lib "*) ;;
        !          3344:        *) dlprefiles="$dlprefiles $lib" ;;
        !          3345:        esac
        !          3346:       done
        !          3347:
        !          3348:       if test "$build_libtool_libs" = yes; then
        !          3349:        if test -n "$rpath"; then
        !          3350:          case $host in
        !          3351:          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
        !          3352:            # these systems don't actually have a c library (as such)!
        !          3353:            ;;
        !          3354:          *-*-rhapsody* | *-*-darwin1.[012])
        !          3355:            # Rhapsody C library is in the System framework
        !          3356:            deplibs="$deplibs -framework System"
        !          3357:            ;;
        !          3358:          *-*-netbsd*)
        !          3359:            # Don't link with libc until the a.out ld.so is fixed.
        !          3360:            ;;
        !          3361:          *-*-openbsd* | *-*-freebsd*)
        !          3362:            # Do not include libc due to us having libc/libc_r.
        !          3363:            test "X$arg" = "X-lc" && continue
        !          3364:            ;;
        !          3365:          *)
        !          3366:            # Add libc to deplibs on all other systems if necessary.
        !          3367:            if test "$build_libtool_need_lc" = "yes"; then
        !          3368:              deplibs="$deplibs -lc"
        !          3369:            fi
        !          3370:            ;;
        !          3371:          esac
        !          3372:        fi
        !          3373:
        !          3374:        # Transform deplibs into only deplibs that can be linked in shared.
        !          3375:        name_save=$name
        !          3376:        libname_save=$libname
        !          3377:        release_save=$release
        !          3378:        versuffix_save=$versuffix
        !          3379:        major_save=$major
        !          3380:        # I'm not sure if I'm treating the release correctly.  I think
        !          3381:        # release should show up in the -l (ie -lgmp5) so we don't want to
        !          3382:        # add it in twice.  Is that correct?
        !          3383:        release=""
        !          3384:        versuffix=""
        !          3385:        major=""
        !          3386:        newdeplibs=
        !          3387:        droppeddeps=no
        !          3388:        case $deplibs_check_method in
        !          3389:        pass_all)
        !          3390:          # Don't check for shared/static.  Everything works.
        !          3391:          # This might be a little naive.  We might want to check
        !          3392:          # whether the library exists or not.  But this is on
        !          3393:          # osf3 & osf4 and I'm not really sure... Just
        !          3394:          # implementing what was already the behavior.
        !          3395:          newdeplibs=$deplibs
        !          3396:          ;;
        !          3397:        test_compile)
        !          3398:          # This code stresses the "libraries are programs" paradigm to its
        !          3399:          # limits. Maybe even breaks it.  We compile a program, linking it
        !          3400:          # against the deplibs as a proxy for the library.  Then we can check
        !          3401:          # whether they linked in statically or dynamically with ldd.
        !          3402:          $rm conftest.c
        !          3403:          cat > conftest.c <<EOF
        !          3404:          int main() { return 0; }
        !          3405: EOF
        !          3406:          $rm conftest
        !          3407:          $LTCC -o conftest conftest.c $deplibs
        !          3408:          if test "$?" -eq 0 ; then
        !          3409:            ldd_output=`ldd conftest`
        !          3410:            for i in $deplibs; do
        !          3411:              name="`expr $i : '-l\(.*\)'`"
        !          3412:              # If $name is empty we are operating on a -L argument.
        !          3413:               if test "$name" != "" && test "$name" -ne "0"; then
        !          3414:                if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
        !          3415:                  case " $predeps $postdeps " in
        !          3416:                  *" $i "*)
        !          3417:                    newdeplibs="$newdeplibs $i"
        !          3418:                    i=""
        !          3419:                    ;;
        !          3420:                  esac
        !          3421:                fi
        !          3422:                if test -n "$i" ; then
        !          3423:                  libname=`eval \\$echo \"$libname_spec\"`
        !          3424:                  deplib_matches=`eval \\$echo \"$library_names_spec\"`
        !          3425:                  set dummy $deplib_matches
        !          3426:                  deplib_match=$2
        !          3427:                  if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
        !          3428:                    newdeplibs="$newdeplibs $i"
        !          3429:                  else
        !          3430:                    droppeddeps=yes
        !          3431:                    $echo
        !          3432:                    $echo "*** Warning: dynamic linker does not accept needed library $i."
        !          3433:                    $echo "*** I have the capability to make that library automatically link in when"
        !          3434:                    $echo "*** you link to this library.  But I can only do this if you have a"
        !          3435:                    $echo "*** shared version of the library, which I believe you do not have"
        !          3436:                    $echo "*** because a test_compile did reveal that the linker did not use it for"
        !          3437:                    $echo "*** its dynamic dependency list that programs get resolved with at runtime."
        !          3438:                  fi
        !          3439:                fi
        !          3440:              else
        !          3441:                newdeplibs="$newdeplibs $i"
        !          3442:              fi
        !          3443:            done
        !          3444:          else
        !          3445:            # Error occurred in the first compile.  Let's try to salvage
        !          3446:            # the situation: Compile a separate program for each library.
        !          3447:            for i in $deplibs; do
        !          3448:              name="`expr $i : '-l\(.*\)'`"
        !          3449:              # If $name is empty we are operating on a -L argument.
        !          3450:               if test "$name" != "" && test "$name" != "0"; then
        !          3451:                $rm conftest
        !          3452:                $LTCC -o conftest conftest.c $i
        !          3453:                # Did it work?
        !          3454:                if test "$?" -eq 0 ; then
        !          3455:                  ldd_output=`ldd conftest`
        !          3456:                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
        !          3457:                    case " $predeps $postdeps " in
        !          3458:                    *" $i "*)
        !          3459:                      newdeplibs="$newdeplibs $i"
        !          3460:                      i=""
        !          3461:                      ;;
        !          3462:                    esac
        !          3463:                  fi
        !          3464:                  if test -n "$i" ; then
        !          3465:                    libname=`eval \\$echo \"$libname_spec\"`
        !          3466:                    deplib_matches=`eval \\$echo \"$library_names_spec\"`
        !          3467:                    set dummy $deplib_matches
        !          3468:                    deplib_match=$2
        !          3469:                    if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
        !          3470:                      newdeplibs="$newdeplibs $i"
        !          3471:                    else
        !          3472:                      droppeddeps=yes
        !          3473:                      $echo
        !          3474:                      $echo "*** Warning: dynamic linker does not accept needed library $i."
        !          3475:                      $echo "*** I have the capability to make that library automatically link in when"
        !          3476:                      $echo "*** you link to this library.  But I can only do this if you have a"
        !          3477:                      $echo "*** shared version of the library, which you do not appear to have"
        !          3478:                      $echo "*** because a test_compile did reveal that the linker did not use this one"
        !          3479:                      $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
        !          3480:                    fi
        !          3481:                  fi
        !          3482:                else
        !          3483:                  droppeddeps=yes
        !          3484:                  $echo
        !          3485:                  $echo "*** Warning!  Library $i is needed by this library but I was not able to"
        !          3486:                  $echo "***  make it link in!  You will probably need to install it or some"
        !          3487:                  $echo "*** library that it depends on before this library will be fully"
        !          3488:                  $echo "*** functional.  Installing it before continuing would be even better."
        !          3489:                fi
        !          3490:              else
        !          3491:                newdeplibs="$newdeplibs $i"
        !          3492:              fi
        !          3493:            done
        !          3494:          fi
        !          3495:          ;;
        !          3496:        file_magic*)
        !          3497:          set dummy $deplibs_check_method
        !          3498:          file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
        !          3499:          for a_deplib in $deplibs; do
        !          3500:            name="`expr $a_deplib : '-l\(.*\)'`"
        !          3501:            # If $name is empty we are operating on a -L argument.
        !          3502:             if test "$name" != "" && test  "$name" != "0"; then
        !          3503:              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
        !          3504:                case " $predeps $postdeps " in
        !          3505:                *" $a_deplib "*)
        !          3506:                  newdeplibs="$newdeplibs $a_deplib"
        !          3507:                  a_deplib=""
        !          3508:                  ;;
        !          3509:                esac
        !          3510:              fi
        !          3511:              if test -n "$a_deplib" ; then
        !          3512:                libname=`eval \\$echo \"$libname_spec\"`
        !          3513:                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
        !          3514:                  potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
        !          3515:                  for potent_lib in $potential_libs; do
        !          3516:                      # Follow soft links.
        !          3517:                      if ls -lLd "$potent_lib" 2>/dev/null \
        !          3518:                         | grep " -> " >/dev/null; then
        !          3519:                        continue
        !          3520:                      fi
        !          3521:                      # The statement above tries to avoid entering an
        !          3522:                      # endless loop below, in case of cyclic links.
        !          3523:                      # We might still enter an endless loop, since a link
        !          3524:                      # loop can be closed while we follow links,
        !          3525:                      # but so what?
        !          3526:                      potlib="$potent_lib"
        !          3527:                      while test -h "$potlib" 2>/dev/null; do
        !          3528:                        potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
        !          3529:                        case $potliblink in
        !          3530:                        [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
        !          3531:                        *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
        !          3532:                        esac
        !          3533:                      done
        !          3534:                      if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
        !          3535:                         | ${SED} 10q \
        !          3536:                         | $EGREP "$file_magic_regex" > /dev/null; then
        !          3537:                        newdeplibs="$newdeplibs $a_deplib"
        !          3538:                        a_deplib=""
        !          3539:                        break 2
        !          3540:                      fi
        !          3541:                  done
        !          3542:                done
        !          3543:              fi
        !          3544:              if test -n "$a_deplib" ; then
        !          3545:                droppeddeps=yes
        !          3546:                $echo
        !          3547:                $echo "*** Warning: linker path does not have real file for library $a_deplib."
        !          3548:                $echo "*** I have the capability to make that library automatically link in when"
        !          3549:                $echo "*** you link to this library.  But I can only do this if you have a"
        !          3550:                $echo "*** shared version of the library, which you do not appear to have"
        !          3551:                $echo "*** because I did check the linker path looking for a file starting"
        !          3552:                if test -z "$potlib" ; then
        !          3553:                  $echo "*** with $libname but no candidates were found. (...for file magic test)"
        !          3554:                else
        !          3555:                  $echo "*** with $libname and none of the candidates passed a file format test"
        !          3556:                  $echo "*** using a file magic. Last file checked: $potlib"
        !          3557:                fi
        !          3558:              fi
        !          3559:            else
        !          3560:              # Add a -L argument.
        !          3561:              newdeplibs="$newdeplibs $a_deplib"
        !          3562:            fi
        !          3563:          done # Gone through all deplibs.
        !          3564:          ;;
        !          3565:        match_pattern*)
        !          3566:          set dummy $deplibs_check_method
        !          3567:          match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
        !          3568:          for a_deplib in $deplibs; do
        !          3569:            name="`expr $a_deplib : '-l\(.*\)'`"
        !          3570:            # If $name is empty we are operating on a -L argument.
        !          3571:            if test -n "$name" && test "$name" != "0"; then
        !          3572:              if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
        !          3573:                case " $predeps $postdeps " in
        !          3574:                *" $a_deplib "*)
        !          3575:                  newdeplibs="$newdeplibs $a_deplib"
        !          3576:                  a_deplib=""
        !          3577:                  ;;
        !          3578:                esac
        !          3579:              fi
        !          3580:              if test -n "$a_deplib" ; then
        !          3581:                libname=`eval \\$echo \"$libname_spec\"`
        !          3582:                for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
        !          3583:                  potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
        !          3584:                  for potent_lib in $potential_libs; do
        !          3585:                    potlib="$potent_lib" # see symlink-check above in file_magic test
        !          3586:                    if eval $echo \"$potent_lib\" 2>/dev/null \
        !          3587:                        | ${SED} 10q \
        !          3588:                        | $EGREP "$match_pattern_regex" > /dev/null; then
        !          3589:                      newdeplibs="$newdeplibs $a_deplib"
        !          3590:                      a_deplib=""
        !          3591:                      break 2
        !          3592:                    fi
        !          3593:                  done
        !          3594:                done
        !          3595:              fi
        !          3596:              if test -n "$a_deplib" ; then
        !          3597:                droppeddeps=yes
        !          3598:                $echo
        !          3599:                $echo "*** Warning: linker path does not have real file for library $a_deplib."
        !          3600:                $echo "*** I have the capability to make that library automatically link in when"
        !          3601:                $echo "*** you link to this library.  But I can only do this if you have a"
        !          3602:                $echo "*** shared version of the library, which you do not appear to have"
        !          3603:                $echo "*** because I did check the linker path looking for a file starting"
        !          3604:                if test -z "$potlib" ; then
        !          3605:                  $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
        !          3606:                else
        !          3607:                  $echo "*** with $libname and none of the candidates passed a file format test"
        !          3608:                  $echo "*** using a regex pattern. Last file checked: $potlib"
        !          3609:                fi
        !          3610:              fi
        !          3611:            else
        !          3612:              # Add a -L argument.
        !          3613:              newdeplibs="$newdeplibs $a_deplib"
        !          3614:            fi
        !          3615:          done # Gone through all deplibs.
        !          3616:          ;;
        !          3617:        none | unknown | *)
        !          3618:          newdeplibs=""
        !          3619:          tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
        !          3620:            -e 's/ -[LR][^ ]*//g'`
        !          3621:          if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
        !          3622:            for i in $predeps $postdeps ; do
        !          3623:              # can't use Xsed below, because $i might contain '/'
        !          3624:              tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
        !          3625:            done
        !          3626:          fi
        !          3627:          if $echo "X $tmp_deplibs" | $Xsed -e 's/[     ]//g' \
        !          3628:            | grep . >/dev/null; then
        !          3629:            $echo
        !          3630:            if test "X$deplibs_check_method" = "Xnone"; then
        !          3631:              $echo "*** Warning: inter-library dependencies are not supported in this platform."
        !          3632:            else
        !          3633:              $echo "*** Warning: inter-library dependencies are not known to be supported."
        !          3634:            fi
        !          3635:            $echo "*** All declared inter-library dependencies are being dropped."
        !          3636:            droppeddeps=yes
        !          3637:          fi
        !          3638:          ;;
        !          3639:        esac
        !          3640:        versuffix=$versuffix_save
        !          3641:        major=$major_save
        !          3642:        release=$release_save
        !          3643:        libname=$libname_save
        !          3644:        name=$name_save
        !          3645:
        !          3646:        case $host in
        !          3647:        *-*-rhapsody* | *-*-darwin1.[012])
        !          3648:          # On Rhapsody replace the C library is the System framework
        !          3649:          newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
        !          3650:          ;;
        !          3651:        esac
        !          3652:
        !          3653:        if test "$droppeddeps" = yes; then
        !          3654:          if test "$module" = yes; then
        !          3655:            $echo
        !          3656:            $echo "*** Warning: libtool could not satisfy all declared inter-library"
        !          3657:            $echo "*** dependencies of module $libname.  Therefore, libtool will create"
        !          3658:            $echo "*** a static module, that should work as long as the dlopening"
        !          3659:            $echo "*** application is linked with the -dlopen flag."
        !          3660:            if test -z "$global_symbol_pipe"; then
        !          3661:              $echo
        !          3662:              $echo "*** However, this would only work if libtool was able to extract symbol"
        !          3663:              $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
        !          3664:              $echo "*** not find such a program.  So, this module is probably useless."
        !          3665:              $echo "*** \`nm' from GNU binutils and a full rebuild may help."
        !          3666:            fi
        !          3667:            if test "$build_old_libs" = no; then
        !          3668:              oldlibs="$output_objdir/$libname.$libext"
        !          3669:              build_libtool_libs=module
        !          3670:              build_old_libs=yes
        !          3671:            else
        !          3672:              build_libtool_libs=no
        !          3673:            fi
        !          3674:          else
        !          3675:            $echo "*** The inter-library dependencies that have been dropped here will be"
        !          3676:            $echo "*** automatically added whenever a program is linked with this library"
        !          3677:            $echo "*** or is declared to -dlopen it."
        !          3678:
        !          3679:            if test "$allow_undefined" = no; then
        !          3680:              $echo
        !          3681:              $echo "*** Since this library must not contain undefined symbols,"
        !          3682:              $echo "*** because either the platform does not support them or"
        !          3683:              $echo "*** it was explicitly requested with -no-undefined,"
        !          3684:              $echo "*** libtool will only create a static version of it."
        !          3685:              if test "$build_old_libs" = no; then
        !          3686:                oldlibs="$output_objdir/$libname.$libext"
        !          3687:                build_libtool_libs=module
        !          3688:                build_old_libs=yes
        !          3689:              else
        !          3690:                build_libtool_libs=no
        !          3691:              fi
        !          3692:            fi
        !          3693:          fi
        !          3694:        fi
        !          3695:        # Done checking deplibs!
        !          3696:        deplibs=$newdeplibs
        !          3697:       fi
        !          3698:
        !          3699:       # All the library-specific variables (install_libdir is set above).
        !          3700:       library_names=
        !          3701:       old_library=
        !          3702:       dlname=
        !          3703:
        !          3704:       # Test again, we may have decided not to build it any more
        !          3705:       if test "$build_libtool_libs" = yes; then
        !          3706:        if test "$hardcode_into_libs" = yes; then
        !          3707:          # Hardcode the library paths
        !          3708:          hardcode_libdirs=
        !          3709:          dep_rpath=
        !          3710:          rpath="$finalize_rpath"
        !          3711:          test "$mode" != relink && rpath="$compile_rpath$rpath"
        !          3712:          for libdir in $rpath; do
        !          3713:            if test -n "$hardcode_libdir_flag_spec"; then
        !          3714:              if test -n "$hardcode_libdir_separator"; then
        !          3715:                if test -z "$hardcode_libdirs"; then
        !          3716:                  hardcode_libdirs="$libdir"
        !          3717:                else
        !          3718:                  # Just accumulate the unique libdirs.
        !          3719:                  case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
        !          3720:                  *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
        !          3721:                    ;;
        !          3722:                  *)
        !          3723:                    hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
        !          3724:                    ;;
        !          3725:                  esac
        !          3726:                fi
        !          3727:              else
        !          3728:                eval flag=\"$hardcode_libdir_flag_spec\"
        !          3729:                dep_rpath="$dep_rpath $flag"
        !          3730:              fi
        !          3731:            elif test -n "$runpath_var"; then
        !          3732:              case "$perm_rpath " in
        !          3733:              *" $libdir "*) ;;
        !          3734:              *) perm_rpath="$perm_rpath $libdir" ;;
        !          3735:              esac
        !          3736:            fi
        !          3737:          done
        !          3738:          # Substitute the hardcoded libdirs into the rpath.
        !          3739:          if test -n "$hardcode_libdir_separator" &&
        !          3740:             test -n "$hardcode_libdirs"; then
        !          3741:            libdir="$hardcode_libdirs"
        !          3742:            if test -n "$hardcode_libdir_flag_spec_ld"; then
        !          3743:              eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
        !          3744:            else
        !          3745:              eval dep_rpath=\"$hardcode_libdir_flag_spec\"
        !          3746:            fi
        !          3747:          fi
        !          3748:          if test -n "$runpath_var" && test -n "$perm_rpath"; then
        !          3749:            # We should set the runpath_var.
        !          3750:            rpath=
        !          3751:            for dir in $perm_rpath; do
        !          3752:              rpath="$rpath$dir:"
        !          3753:            done
        !          3754:            eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
        !          3755:          fi
        !          3756:          test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
        !          3757:        fi
        !          3758:
        !          3759:        shlibpath="$finalize_shlibpath"
        !          3760:        test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
        !          3761:        if test -n "$shlibpath"; then
        !          3762:          eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
        !          3763:        fi
        !          3764:
        !          3765:        # Get the real and link names of the library.
        !          3766:        eval shared_ext=\"$shrext_cmds\"
        !          3767:        eval library_names=\"$library_names_spec\"
        !          3768:        set dummy $library_names
        !          3769:        realname="$2"
        !          3770:        shift; shift
        !          3771:
        !          3772:        if test -n "$soname_spec"; then
        !          3773:          eval soname=\"$soname_spec\"
        !          3774:        else
        !          3775:          soname="$realname"
        !          3776:        fi
        !          3777:        if test -z "$dlname"; then
        !          3778:          dlname=$soname
        !          3779:        fi
        !          3780:
        !          3781:        lib="$output_objdir/$realname"
        !          3782:        for link
        !          3783:        do
        !          3784:          linknames="$linknames $link"
        !          3785:        done
        !          3786:
        !          3787:        # Use standard objects if they are pic
        !          3788:        test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
        !          3789:
        !          3790:        # Prepare the list of exported symbols
        !          3791:        if test -z "$export_symbols"; then
        !          3792:          if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
        !          3793:            $show "generating symbol list for \`$libname.la'"
        !          3794:            export_symbols="$output_objdir/$libname.exp"
        !          3795:            $run $rm $export_symbols
        !          3796:            cmds=$export_symbols_cmds
        !          3797:            save_ifs="$IFS"; IFS='~'
        !          3798:            for cmd in $cmds; do
        !          3799:              IFS="$save_ifs"
        !          3800:              eval cmd=\"$cmd\"
        !          3801:              if len=`expr "X$cmd" : ".*"` &&
        !          3802:               test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
        !          3803:                $show "$cmd"
        !          3804:                $run eval "$cmd" || exit $?
        !          3805:                skipped_export=false
        !          3806:              else
        !          3807:                # The command line is too long to execute in one step.
        !          3808:                $show "using reloadable object file for export list..."
        !          3809:                skipped_export=:
        !          3810:              fi
        !          3811:            done
        !          3812:            IFS="$save_ifs"
        !          3813:            if test -n "$export_symbols_regex"; then
        !          3814:              $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
        !          3815:              $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
        !          3816:              $show "$mv \"${export_symbols}T\" \"$export_symbols\""
        !          3817:              $run eval '$mv "${export_symbols}T" "$export_symbols"'
        !          3818:            fi
        !          3819:          fi
        !          3820:        fi
        !          3821:
        !          3822:        if test -n "$export_symbols" && test -n "$include_expsyms"; then
        !          3823:          $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
        !          3824:        fi
        !          3825:
        !          3826:        tmp_deplibs=
        !          3827:        for test_deplib in $deplibs; do
        !          3828:                case " $convenience " in
        !          3829:                *" $test_deplib "*) ;;
        !          3830:                *)
        !          3831:                        tmp_deplibs="$tmp_deplibs $test_deplib"
        !          3832:                        ;;
        !          3833:                esac
        !          3834:        done
        !          3835:        deplibs="$tmp_deplibs"
        !          3836:
        !          3837:        if test -n "$convenience"; then
        !          3838:          if test -n "$whole_archive_flag_spec"; then
        !          3839:            save_libobjs=$libobjs
        !          3840:            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
        !          3841:          else
        !          3842:            gentop="$output_objdir/${outputname}x"
        !          3843:            generated="$generated $gentop"
        !          3844:
        !          3845:            func_extract_archives $gentop $convenience
        !          3846:            libobjs="$libobjs $func_extract_archives_result"
        !          3847:          fi
        !          3848:        fi
        !          3849:
        !          3850:        if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
        !          3851:          eval flag=\"$thread_safe_flag_spec\"
        !          3852:          linker_flags="$linker_flags $flag"
        !          3853:        fi
        !          3854:
        !          3855:        # Make a backup of the uninstalled library when relinking
        !          3856:        if test "$mode" = relink; then
        !          3857:          $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
        !          3858:        fi
        !          3859:
        !          3860:        # Do each of the archive commands.
        !          3861:        if test "$module" = yes && test -n "$module_cmds" ; then
        !          3862:          if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
        !          3863:            eval test_cmds=\"$module_expsym_cmds\"
        !          3864:            cmds=$module_expsym_cmds
        !          3865:          else
        !          3866:            eval test_cmds=\"$module_cmds\"
        !          3867:            cmds=$module_cmds
        !          3868:          fi
        !          3869:        else
        !          3870:        if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
        !          3871:          eval test_cmds=\"$archive_expsym_cmds\"
        !          3872:          cmds=$archive_expsym_cmds
        !          3873:        else
        !          3874:          eval test_cmds=\"$archive_cmds\"
        !          3875:          cmds=$archive_cmds
        !          3876:          fi
        !          3877:        fi
        !          3878:
        !          3879:        if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
        !          3880:           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
        !          3881:          :
        !          3882:        else
        !          3883:          # The command line is too long to link in one step, link piecewise.
        !          3884:          $echo "creating reloadable object files..."
        !          3885:
        !          3886:          # Save the value of $output and $libobjs because we want to
        !          3887:          # use them later.  If we have whole_archive_flag_spec, we
        !          3888:          # want to use save_libobjs as it was before
        !          3889:          # whole_archive_flag_spec was expanded, because we can't
        !          3890:          # assume the linker understands whole_archive_flag_spec.
        !          3891:          # This may have to be revisited, in case too many
        !          3892:          # convenience libraries get linked in and end up exceeding
        !          3893:          # the spec.
        !          3894:          if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
        !          3895:            save_libobjs=$libobjs
        !          3896:          fi
        !          3897:          save_output=$output
        !          3898:
        !          3899:          # Clear the reloadable object creation command queue and
        !          3900:          # initialize k to one.
        !          3901:          test_cmds=
        !          3902:          concat_cmds=
        !          3903:          objlist=
        !          3904:          delfiles=
        !          3905:          last_robj=
        !          3906:          k=1
        !          3907:          output=$output_objdir/$save_output-${k}.$objext
        !          3908:          # Loop over the list of objects to be linked.
        !          3909:          for obj in $save_libobjs
        !          3910:          do
        !          3911:            eval test_cmds=\"$reload_cmds $objlist $last_robj\"
        !          3912:            if test "X$objlist" = X ||
        !          3913:               { len=`expr "X$test_cmds" : ".*"` &&
        !          3914:                 test "$len" -le "$max_cmd_len"; }; then
        !          3915:              objlist="$objlist $obj"
        !          3916:            else
        !          3917:              # The command $test_cmds is almost too long, add a
        !          3918:              # command to the queue.
        !          3919:              if test "$k" -eq 1 ; then
        !          3920:                # The first file doesn't have a previous command to add.
        !          3921:                eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
        !          3922:              else
        !          3923:                # All subsequent reloadable object files will link in
        !          3924:                # the last one created.
        !          3925:                eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
        !          3926:              fi
        !          3927:              last_robj=$output_objdir/$save_output-${k}.$objext
        !          3928:              k=`expr $k + 1`
        !          3929:              output=$output_objdir/$save_output-${k}.$objext
        !          3930:              objlist=$obj
        !          3931:              len=1
        !          3932:            fi
        !          3933:          done
        !          3934:          # Handle the remaining objects by creating one last
        !          3935:          # reloadable object file.  All subsequent reloadable object
        !          3936:          # files will link in the last one created.
        !          3937:          test -z "$concat_cmds" || concat_cmds=$concat_cmds~
        !          3938:          eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
        !          3939:
        !          3940:          if ${skipped_export-false}; then
        !          3941:            $show "generating symbol list for \`$libname.la'"
        !          3942:            export_symbols="$output_objdir/$libname.exp"
        !          3943:            $run $rm $export_symbols
        !          3944:            libobjs=$output
        !          3945:            # Append the command to create the export file.
        !          3946:            eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
        !          3947:           fi
        !          3948:
        !          3949:          # Set up a command to remove the reloadale object files
        !          3950:          # after they are used.
        !          3951:          i=0
        !          3952:          while test "$i" -lt "$k"
        !          3953:          do
        !          3954:            i=`expr $i + 1`
        !          3955:            delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
        !          3956:          done
        !          3957:
        !          3958:          $echo "creating a temporary reloadable object file: $output"
        !          3959:
        !          3960:          # Loop through the commands generated above and execute them.
        !          3961:          save_ifs="$IFS"; IFS='~'
        !          3962:          for cmd in $concat_cmds; do
        !          3963:            IFS="$save_ifs"
        !          3964:            $show "$cmd"
        !          3965:            $run eval "$cmd" || exit $?
        !          3966:          done
        !          3967:          IFS="$save_ifs"
        !          3968:
        !          3969:          libobjs=$output
        !          3970:          # Restore the value of output.
        !          3971:          output=$save_output
        !          3972:
        !          3973:          if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
        !          3974:            eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
        !          3975:          fi
        !          3976:          # Expand the library linking commands again to reset the
        !          3977:          # value of $libobjs for piecewise linking.
        !          3978:
        !          3979:          # Do each of the archive commands.
        !          3980:          if test "$module" = yes && test -n "$module_cmds" ; then
        !          3981:            if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
        !          3982:              cmds=$module_expsym_cmds
        !          3983:            else
        !          3984:              cmds=$module_cmds
        !          3985:            fi
        !          3986:          else
        !          3987:          if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
        !          3988:            cmds=$archive_expsym_cmds
        !          3989:          else
        !          3990:            cmds=$archive_cmds
        !          3991:            fi
        !          3992:          fi
        !          3993:
        !          3994:          # Append the command to remove the reloadable object files
        !          3995:          # to the just-reset $cmds.
        !          3996:          eval cmds=\"\$cmds~\$rm $delfiles\"
        !          3997:        fi
        !          3998:        save_ifs="$IFS"; IFS='~'
        !          3999:        for cmd in $cmds; do
        !          4000:          IFS="$save_ifs"
        !          4001:          eval cmd=\"$cmd\"
        !          4002:          $show "$cmd"
        !          4003:          $run eval "$cmd" || exit $?
        !          4004:        done
        !          4005:        IFS="$save_ifs"
        !          4006:
        !          4007:        # Restore the uninstalled library and exit
        !          4008:        if test "$mode" = relink; then
        !          4009:          $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
        !          4010:          exit $EXIT_SUCCESS
        !          4011:        fi
        !          4012:
        !          4013:        # Create links to the real library.
        !          4014:        for linkname in $linknames; do
        !          4015:          if test "$realname" != "$linkname"; then
        !          4016:            $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
        !          4017:            $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
        !          4018:          fi
        !          4019:        done
        !          4020:
        !          4021:        # If -module or -export-dynamic was specified, set the dlname.
        !          4022:        if test "$module" = yes || test "$export_dynamic" = yes; then
        !          4023:          # On all known operating systems, these are identical.
        !          4024:          dlname="$soname"
        !          4025:        fi
        !          4026:       fi
        !          4027:       ;;
        !          4028:
        !          4029:     obj)
        !          4030:       if test -n "$deplibs"; then
        !          4031:        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
        !          4032:       fi
        !          4033:
        !          4034:       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
        !          4035:        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
        !          4036:       fi
        !          4037:
        !          4038:       if test -n "$rpath"; then
        !          4039:        $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
        !          4040:       fi
        !          4041:
        !          4042:       if test -n "$xrpath"; then
        !          4043:        $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
        !          4044:       fi
        !          4045:
        !          4046:       if test -n "$vinfo"; then
        !          4047:        $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
        !          4048:       fi
        !          4049:
        !          4050:       if test -n "$release"; then
        !          4051:        $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
        !          4052:       fi
        !          4053:
        !          4054:       case $output in
        !          4055:       *.lo)
        !          4056:        if test -n "$objs$old_deplibs"; then
        !          4057:          $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
        !          4058:          exit $EXIT_FAILURE
        !          4059:        fi
        !          4060:        libobj="$output"
        !          4061:        obj=`$echo "X$output" | $Xsed -e "$lo2o"`
        !          4062:        ;;
        !          4063:       *)
        !          4064:        libobj=
        !          4065:        obj="$output"
        !          4066:        ;;
        !          4067:       esac
        !          4068:
        !          4069:       # Delete the old objects.
        !          4070:       $run $rm $obj $libobj
        !          4071:
        !          4072:       # Objects from convenience libraries.  This assumes
        !          4073:       # single-version convenience libraries.  Whenever we create
        !          4074:       # different ones for PIC/non-PIC, this we'll have to duplicate
        !          4075:       # the extraction.
        !          4076:       reload_conv_objs=
        !          4077:       gentop=
        !          4078:       # reload_cmds runs $LD directly, so let us get rid of
        !          4079:       # -Wl from whole_archive_flag_spec
        !          4080:       wl=
        !          4081:
        !          4082:       if test -n "$convenience"; then
        !          4083:        if test -n "$whole_archive_flag_spec"; then
        !          4084:          eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
        !          4085:        else
        !          4086:          gentop="$output_objdir/${obj}x"
        !          4087:          generated="$generated $gentop"
        !          4088:
        !          4089:          func_extract_archives $gentop $convenience
        !          4090:          reload_conv_objs="$reload_objs $func_extract_archives_result"
        !          4091:        fi
        !          4092:       fi
        !          4093:
        !          4094:       # Create the old-style object.
        !          4095:       reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
        !          4096:
        !          4097:       output="$obj"
        !          4098:       cmds=$reload_cmds
        !          4099:       save_ifs="$IFS"; IFS='~'
        !          4100:       for cmd in $cmds; do
        !          4101:        IFS="$save_ifs"
        !          4102:        eval cmd=\"$cmd\"
        !          4103:        $show "$cmd"
        !          4104:        $run eval "$cmd" || exit $?
        !          4105:       done
        !          4106:       IFS="$save_ifs"
        !          4107:
        !          4108:       # Exit if we aren't doing a library object file.
        !          4109:       if test -z "$libobj"; then
        !          4110:        if test -n "$gentop"; then
        !          4111:          $show "${rm}r $gentop"
        !          4112:          $run ${rm}r $gentop
        !          4113:        fi
        !          4114:
        !          4115:        exit $EXIT_SUCCESS
        !          4116:       fi
        !          4117:
        !          4118:       if test "$build_libtool_libs" != yes; then
        !          4119:        if test -n "$gentop"; then
        !          4120:          $show "${rm}r $gentop"
        !          4121:          $run ${rm}r $gentop
        !          4122:        fi
        !          4123:
        !          4124:        # Create an invalid libtool object if no PIC, so that we don't
        !          4125:        # accidentally link it into a program.
        !          4126:        # $show "echo timestamp > $libobj"
        !          4127:        # $run eval "echo timestamp > $libobj" || exit $?
        !          4128:        exit $EXIT_SUCCESS
        !          4129:       fi
        !          4130:
        !          4131:       if test -n "$pic_flag" || test "$pic_mode" != default; then
        !          4132:        # Only do commands if we really have different PIC objects.
        !          4133:        reload_objs="$libobjs $reload_conv_objs"
        !          4134:        output="$libobj"
        !          4135:        cmds=$reload_cmds
        !          4136:        save_ifs="$IFS"; IFS='~'
        !          4137:        for cmd in $cmds; do
        !          4138:          IFS="$save_ifs"
        !          4139:          eval cmd=\"$cmd\"
        !          4140:          $show "$cmd"
        !          4141:          $run eval "$cmd" || exit $?
        !          4142:        done
        !          4143:        IFS="$save_ifs"
        !          4144:       fi
        !          4145:
        !          4146:       if test -n "$gentop"; then
        !          4147:        $show "${rm}r $gentop"
        !          4148:        $run ${rm}r $gentop
        !          4149:       fi
        !          4150:
        !          4151:       exit $EXIT_SUCCESS
        !          4152:       ;;
        !          4153:
        !          4154:     prog)
        !          4155:       case $host in
        !          4156:        *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
        !          4157:       esac
        !          4158:       if test -n "$vinfo"; then
        !          4159:        $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
        !          4160:       fi
        !          4161:
        !          4162:       if test -n "$release"; then
        !          4163:        $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
        !          4164:       fi
        !          4165:
        !          4166:       if test "$preload" = yes; then
        !          4167:        if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
        !          4168:           test "$dlopen_self_static" = unknown; then
        !          4169:          $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
        !          4170:        fi
        !          4171:       fi
        !          4172:
        !          4173:       case $host in
        !          4174:       *-*-rhapsody* | *-*-darwin1.[012])
        !          4175:        # On Rhapsody replace the C library is the System framework
        !          4176:        compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
        !          4177:        finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
        !          4178:        ;;
        !          4179:       esac
        !          4180:
        !          4181:       case $host in
        !          4182:       *darwin*)
        !          4183:         # Don't allow lazy linking, it breaks C++ global constructors
        !          4184:         if test "$tagname" = CXX ; then
        !          4185:         compile_command="$compile_command ${wl}-bind_at_load"
        !          4186:         finalize_command="$finalize_command ${wl}-bind_at_load"
        !          4187:         fi
        !          4188:         ;;
        !          4189:       esac
        !          4190:
        !          4191:       compile_command="$compile_command $compile_deplibs"
        !          4192:       finalize_command="$finalize_command $finalize_deplibs"
        !          4193:
        !          4194:       if test -n "$rpath$xrpath"; then
        !          4195:        # If the user specified any rpath flags, then add them.
        !          4196:        for libdir in $rpath $xrpath; do
        !          4197:          # This is the magic to use -rpath.
        !          4198:          case "$finalize_rpath " in
        !          4199:          *" $libdir "*) ;;
        !          4200:          *) finalize_rpath="$finalize_rpath $libdir" ;;
        !          4201:          esac
        !          4202:        done
        !          4203:       fi
        !          4204:
        !          4205:       # Now hardcode the library paths
        !          4206:       rpath=
        !          4207:       hardcode_libdirs=
        !          4208:       for libdir in $compile_rpath $finalize_rpath; do
        !          4209:        if test -n "$hardcode_libdir_flag_spec"; then
        !          4210:          if test -n "$hardcode_libdir_separator"; then
        !          4211:            if test -z "$hardcode_libdirs"; then
        !          4212:              hardcode_libdirs="$libdir"
        !          4213:            else
        !          4214:              # Just accumulate the unique libdirs.
        !          4215:              case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
        !          4216:              *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
        !          4217:                ;;
        !          4218:              *)
        !          4219:                hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
        !          4220:                ;;
        !          4221:              esac
        !          4222:            fi
        !          4223:          else
        !          4224:            eval flag=\"$hardcode_libdir_flag_spec\"
        !          4225:            rpath="$rpath $flag"
        !          4226:          fi
        !          4227:        elif test -n "$runpath_var"; then
        !          4228:          case "$perm_rpath " in
        !          4229:          *" $libdir "*) ;;
        !          4230:          *) perm_rpath="$perm_rpath $libdir" ;;
        !          4231:          esac
        !          4232:        fi
        !          4233:        case $host in
        !          4234:        *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
        !          4235:          case :$dllsearchpath: in
        !          4236:          *":$libdir:"*) ;;
        !          4237:          *) dllsearchpath="$dllsearchpath:$libdir";;
        !          4238:          esac
        !          4239:          ;;
        !          4240:        esac
        !          4241:       done
        !          4242:       # Substitute the hardcoded libdirs into the rpath.
        !          4243:       if test -n "$hardcode_libdir_separator" &&
        !          4244:         test -n "$hardcode_libdirs"; then
        !          4245:        libdir="$hardcode_libdirs"
        !          4246:        eval rpath=\" $hardcode_libdir_flag_spec\"
        !          4247:       fi
        !          4248:       compile_rpath="$rpath"
        !          4249:
        !          4250:       rpath=
        !          4251:       hardcode_libdirs=
        !          4252:       for libdir in $finalize_rpath; do
        !          4253:        if test -n "$hardcode_libdir_flag_spec"; then
        !          4254:          if test -n "$hardcode_libdir_separator"; then
        !          4255:            if test -z "$hardcode_libdirs"; then
        !          4256:              hardcode_libdirs="$libdir"
        !          4257:            else
        !          4258:              # Just accumulate the unique libdirs.
        !          4259:              case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
        !          4260:              *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
        !          4261:                ;;
        !          4262:              *)
        !          4263:                hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
        !          4264:                ;;
        !          4265:              esac
        !          4266:            fi
        !          4267:          else
        !          4268:            eval flag=\"$hardcode_libdir_flag_spec\"
        !          4269:            rpath="$rpath $flag"
        !          4270:          fi
        !          4271:        elif test -n "$runpath_var"; then
        !          4272:          case "$finalize_perm_rpath " in
        !          4273:          *" $libdir "*) ;;
        !          4274:          *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
        !          4275:          esac
        !          4276:        fi
        !          4277:       done
        !          4278:       # Substitute the hardcoded libdirs into the rpath.
        !          4279:       if test -n "$hardcode_libdir_separator" &&
        !          4280:         test -n "$hardcode_libdirs"; then
        !          4281:        libdir="$hardcode_libdirs"
        !          4282:        eval rpath=\" $hardcode_libdir_flag_spec\"
        !          4283:       fi
        !          4284:       finalize_rpath="$rpath"
        !          4285:
        !          4286:       if test -n "$libobjs" && test "$build_old_libs" = yes; then
        !          4287:        # Transform all the library objects into standard objects.
        !          4288:        compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
        !          4289:        finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
        !          4290:       fi
        !          4291:
        !          4292:       dlsyms=
        !          4293:       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
        !          4294:        if test -n "$NM" && test -n "$global_symbol_pipe"; then
        !          4295:          dlsyms="${outputname}S.c"
        !          4296:        else
        !          4297:          $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
        !          4298:        fi
        !          4299:       fi
        !          4300:
        !          4301:       if test -n "$dlsyms"; then
        !          4302:        case $dlsyms in
        !          4303:        "") ;;
        !          4304:        *.c)
        !          4305:          # Discover the nlist of each of the dlfiles.
        !          4306:          nlist="$output_objdir/${outputname}.nm"
        !          4307:
        !          4308:          $show "$rm $nlist ${nlist}S ${nlist}T"
        !          4309:          $run $rm "$nlist" "${nlist}S" "${nlist}T"
        !          4310:
        !          4311:          # Parse the name list into a source file.
        !          4312:          $show "creating $output_objdir/$dlsyms"
        !          4313:
        !          4314:          test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
        !          4315: /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
        !          4316: /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
        !          4317:
        !          4318: #ifdef __cplusplus
        !          4319: extern \"C\" {
        !          4320: #endif
        !          4321:
        !          4322: /* Prevent the only kind of declaration conflicts we can make. */
        !          4323: #define lt_preloaded_symbols some_other_symbol
        !          4324:
        !          4325: /* External symbol declarations for the compiler. */\
        !          4326: "
        !          4327:
        !          4328:          if test "$dlself" = yes; then
        !          4329:            $show "generating symbol list for \`$output'"
        !          4330:
        !          4331:            test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
        !          4332:
        !          4333:            # Add our own program objects to the symbol list.
        !          4334:            progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
        !          4335:            for arg in $progfiles; do
        !          4336:              $show "extracting global C symbols from \`$arg'"
        !          4337:              $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
        !          4338:            done
        !          4339:
        !          4340:            if test -n "$exclude_expsyms"; then
        !          4341:              $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
        !          4342:              $run eval '$mv "$nlist"T "$nlist"'
        !          4343:            fi
        !          4344:
        !          4345:            if test -n "$export_symbols_regex"; then
        !          4346:              $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
        !          4347:              $run eval '$mv "$nlist"T "$nlist"'
        !          4348:            fi
        !          4349:
        !          4350:            # Prepare the list of exported symbols
        !          4351:            if test -z "$export_symbols"; then
        !          4352:              export_symbols="$output_objdir/$output.exp"
        !          4353:              $run $rm $export_symbols
        !          4354:              $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
        !          4355:            else
        !          4356:              $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
        !          4357:              $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
        !          4358:              $run eval 'mv "$nlist"T "$nlist"'
        !          4359:            fi
        !          4360:          fi
        !          4361:
        !          4362:          for arg in $dlprefiles; do
        !          4363:            $show "extracting global C symbols from \`$arg'"
        !          4364:            name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
        !          4365:            $run eval '$echo ": $name " >> "$nlist"'
        !          4366:            $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
        !          4367:          done
        !          4368:
        !          4369:          if test -z "$run"; then
        !          4370:            # Make sure we have at least an empty file.
        !          4371:            test -f "$nlist" || : > "$nlist"
        !          4372:
        !          4373:            if test -n "$exclude_expsyms"; then
        !          4374:              $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
        !          4375:              $mv "$nlist"T "$nlist"
        !          4376:            fi
        !          4377:
        !          4378:            # Try sorting and uniquifying the output.
        !          4379:            if grep -v "^: " < "$nlist" |
        !          4380:                if sort -k 3 </dev/null >/dev/null 2>&1; then
        !          4381:                  sort -k 3
        !          4382:                else
        !          4383:                  sort +2
        !          4384:                fi |
        !          4385:                uniq > "$nlist"S; then
        !          4386:              :
        !          4387:            else
        !          4388:              grep -v "^: " < "$nlist" > "$nlist"S
        !          4389:            fi
        !          4390:
        !          4391:            if test -f "$nlist"S; then
        !          4392:              eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
        !          4393:            else
        !          4394:              $echo '/* NONE */' >> "$output_objdir/$dlsyms"
        !          4395:            fi
        !          4396:
        !          4397:            $echo >> "$output_objdir/$dlsyms" "\
        !          4398:
        !          4399: #undef lt_preloaded_symbols
        !          4400:
        !          4401: #if defined (__STDC__) && __STDC__
        !          4402: # define lt_ptr void *
        !          4403: #else
        !          4404: # define lt_ptr char *
        !          4405: # define const
        !          4406: #endif
        !          4407:
        !          4408: /* The mapping between symbol names and symbols. */
        !          4409: const struct {
        !          4410:   const char *name;
        !          4411:   lt_ptr address;
        !          4412: }
        !          4413: lt_preloaded_symbols[] =
        !          4414: {\
        !          4415: "
        !          4416:
        !          4417:            eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
        !          4418:
        !          4419:            $echo >> "$output_objdir/$dlsyms" "\
        !          4420:   {0, (lt_ptr) 0}
        !          4421: };
        !          4422:
        !          4423: /* This works around a problem in FreeBSD linker */
        !          4424: #ifdef FREEBSD_WORKAROUND
        !          4425: static const void *lt_preloaded_setup() {
        !          4426:   return lt_preloaded_symbols;
        !          4427: }
        !          4428: #endif
        !          4429:
        !          4430: #ifdef __cplusplus
        !          4431: }
        !          4432: #endif\
        !          4433: "
        !          4434:          fi
        !          4435:
        !          4436:          pic_flag_for_symtable=
        !          4437:          case $host in
        !          4438:          # compiling the symbol table file with pic_flag works around
        !          4439:          # a FreeBSD bug that causes programs to crash when -lm is
        !          4440:          # linked before any other PIC object.  But we must not use
        !          4441:          # pic_flag when linking with -static.  The problem exists in
        !          4442:          # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
        !          4443:          *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
        !          4444:            case "$compile_command " in
        !          4445:            *" -static "*) ;;
        !          4446:            *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
        !          4447:            esac;;
        !          4448:          *-*-hpux*)
        !          4449:            case "$compile_command " in
        !          4450:            *" -static "*) ;;
        !          4451:            *) pic_flag_for_symtable=" $pic_flag";;
        !          4452:            esac
        !          4453:          esac
        !          4454:
        !          4455:          # Now compile the dynamic symbol file.
        !          4456:          $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
        !          4457:          $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
        !          4458:
        !          4459:          # Clean up the generated files.
        !          4460:          $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
        !          4461:          $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
        !          4462:
        !          4463:          # Transform the symbol file into the correct name.
        !          4464:          compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
        !          4465:          finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
        !          4466:          ;;
        !          4467:        *)
        !          4468:          $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
        !          4469:          exit $EXIT_FAILURE
        !          4470:          ;;
        !          4471:        esac
        !          4472:       else
        !          4473:        # We keep going just in case the user didn't refer to
        !          4474:        # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
        !          4475:        # really was required.
        !          4476:
        !          4477:        # Nullify the symbol file.
        !          4478:        compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
        !          4479:        finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
        !          4480:       fi
        !          4481:
        !          4482:       if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
        !          4483:        # Replace the output file specification.
        !          4484:        compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
        !          4485:        link_command="$compile_command$compile_rpath"
        !          4486:
        !          4487:        # We have no uninstalled library dependencies, so finalize right now.
        !          4488:        $show "$link_command"
        !          4489:        $run eval "$link_command"
        !          4490:        status=$?
        !          4491:
        !          4492:        # Delete the generated files.
        !          4493:        if test -n "$dlsyms"; then
        !          4494:          $show "$rm $output_objdir/${outputname}S.${objext}"
        !          4495:          $run $rm "$output_objdir/${outputname}S.${objext}"
        !          4496:        fi
        !          4497:
        !          4498:        exit $status
        !          4499:       fi
        !          4500:
        !          4501:       if test -n "$shlibpath_var"; then
        !          4502:        # We should set the shlibpath_var
        !          4503:        rpath=
        !          4504:        for dir in $temp_rpath; do
        !          4505:          case $dir in
        !          4506:          [\\/]* | [A-Za-z]:[\\/]*)
        !          4507:            # Absolute path.
        !          4508:            rpath="$rpath$dir:"
        !          4509:            ;;
        !          4510:          *)
        !          4511:            # Relative path: add a thisdir entry.
        !          4512:            rpath="$rpath\$thisdir/$dir:"
        !          4513:            ;;
        !          4514:          esac
        !          4515:        done
        !          4516:        temp_rpath="$rpath"
        !          4517:       fi
        !          4518:
        !          4519:       if test -n "$compile_shlibpath$finalize_shlibpath"; then
        !          4520:        compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
        !          4521:       fi
        !          4522:       if test -n "$finalize_shlibpath"; then
        !          4523:        finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
        !          4524:       fi
        !          4525:
        !          4526:       compile_var=
        !          4527:       finalize_var=
        !          4528:       if test -n "$runpath_var"; then
        !          4529:        if test -n "$perm_rpath"; then
        !          4530:          # We should set the runpath_var.
        !          4531:          rpath=
        !          4532:          for dir in $perm_rpath; do
        !          4533:            rpath="$rpath$dir:"
        !          4534:          done
        !          4535:          compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
        !          4536:        fi
        !          4537:        if test -n "$finalize_perm_rpath"; then
        !          4538:          # We should set the runpath_var.
        !          4539:          rpath=
        !          4540:          for dir in $finalize_perm_rpath; do
        !          4541:            rpath="$rpath$dir:"
        !          4542:          done
        !          4543:          finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
        !          4544:        fi
        !          4545:       fi
        !          4546:
        !          4547:       if test "$no_install" = yes; then
        !          4548:        # We don't need to create a wrapper script.
        !          4549:        link_command="$compile_var$compile_command$compile_rpath"
        !          4550:        # Replace the output file specification.
        !          4551:        link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
        !          4552:        # Delete the old output file.
        !          4553:        $run $rm $output
        !          4554:        # Link the executable and exit
        !          4555:        $show "$link_command"
        !          4556:        $run eval "$link_command" || exit $?
        !          4557:        exit $EXIT_SUCCESS
        !          4558:       fi
        !          4559:
        !          4560:       if test "$hardcode_action" = relink; then
        !          4561:        # Fast installation is not supported
        !          4562:        link_command="$compile_var$compile_command$compile_rpath"
        !          4563:        relink_command="$finalize_var$finalize_command$finalize_rpath"
        !          4564:
        !          4565:        $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
        !          4566:        $echo "$modename: \`$output' will be relinked during installation" 1>&2
        !          4567:       else
        !          4568:        if test "$fast_install" != no; then
        !          4569:          link_command="$finalize_var$compile_command$finalize_rpath"
        !          4570:          if test "$fast_install" = yes; then
        !          4571:            relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
        !          4572:          else
        !          4573:            # fast_install is set to needless
        !          4574:            relink_command=
        !          4575:          fi
        !          4576:        else
        !          4577:          link_command="$compile_var$compile_command$compile_rpath"
        !          4578:          relink_command="$finalize_var$finalize_command$finalize_rpath"
        !          4579:        fi
        !          4580:       fi
        !          4581:
        !          4582:       # Replace the output file specification.
        !          4583:       link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
        !          4584:
        !          4585:       # Delete the old output files.
        !          4586:       $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
        !          4587:
        !          4588:       $show "$link_command"
        !          4589:       $run eval "$link_command" || exit $?
        !          4590:
        !          4591:       # Now create the wrapper script.
        !          4592:       $show "creating $output"
        !          4593:
        !          4594:       # Quote the relink command for shipping.
        !          4595:       if test -n "$relink_command"; then
        !          4596:        # Preserve any variables that may affect compiler behavior
        !          4597:        for var in $variables_saved_for_relink; do
        !          4598:          if eval test -z \"\${$var+set}\"; then
        !          4599:            relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
        !          4600:          elif eval var_value=\$$var; test -z "$var_value"; then
        !          4601:            relink_command="$var=; export $var; $relink_command"
        !          4602:          else
        !          4603:            var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
        !          4604:            relink_command="$var=\"$var_value\"; export $var; $relink_command"
        !          4605:          fi
        !          4606:        done
        !          4607:        relink_command="(cd `pwd`; $relink_command)"
        !          4608:        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
        !          4609:       fi
        !          4610:
        !          4611:       # Quote $echo for shipping.
        !          4612:       if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
        !          4613:        case $progpath in
        !          4614:        [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
        !          4615:        *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
        !          4616:        esac
        !          4617:        qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
        !          4618:       else
        !          4619:        qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
        !          4620:       fi
        !          4621:
        !          4622:       # Only actually do things if our run command is non-null.
        !          4623:       if test -z "$run"; then
        !          4624:        # win32 will think the script is a binary if it has
        !          4625:        # a .exe suffix, so we strip it off here.
        !          4626:        case $output in
        !          4627:          *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
        !          4628:        esac
        !          4629:        # test for cygwin because mv fails w/o .exe extensions
        !          4630:        case $host in
        !          4631:          *cygwin*)
        !          4632:            exeext=.exe
        !          4633:            outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
        !          4634:          *) exeext= ;;
        !          4635:        esac
        !          4636:        case $host in
        !          4637:          *cygwin* | *mingw* )
        !          4638:            cwrappersource=`$echo ${objdir}/lt-${output}.c`
        !          4639:            cwrapper=`$echo ${output}.exe`
        !          4640:            $rm $cwrappersource $cwrapper
        !          4641:            trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
        !          4642:
        !          4643:            cat > $cwrappersource <<EOF
        !          4644:
        !          4645: /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
        !          4646:    Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
        !          4647:
        !          4648:    The $output program cannot be directly executed until all the libtool
        !          4649:    libraries that it depends on are installed.
        !          4650:
        !          4651:    This wrapper executable should never be moved out of the build directory.
        !          4652:    If it is, it will not operate correctly.
        !          4653:
        !          4654:    Currently, it simply execs the wrapper *script* "/bin/sh $output",
        !          4655:    but could eventually absorb all of the scripts functionality and
        !          4656:    exec $objdir/$outputname directly.
        !          4657: */
        !          4658: EOF
        !          4659:            cat >> $cwrappersource<<"EOF"
        !          4660: #include <stdio.h>
        !          4661: #include <stdlib.h>
        !          4662: #include <unistd.h>
        !          4663: #include <malloc.h>
        !          4664: #include <stdarg.h>
        !          4665: #include <assert.h>
        !          4666:
        !          4667: #if defined(PATH_MAX)
        !          4668: # define LT_PATHMAX PATH_MAX
        !          4669: #elif defined(MAXPATHLEN)
        !          4670: # define LT_PATHMAX MAXPATHLEN
        !          4671: #else
        !          4672: # define LT_PATHMAX 1024
        !          4673: #endif
        !          4674:
        !          4675: #ifndef DIR_SEPARATOR
        !          4676: #define DIR_SEPARATOR '/'
        !          4677: #endif
        !          4678:
        !          4679: #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
        !          4680:   defined (__OS2__)
        !          4681: #define HAVE_DOS_BASED_FILE_SYSTEM
        !          4682: #ifndef DIR_SEPARATOR_2
        !          4683: #define DIR_SEPARATOR_2 '\\'
        !          4684: #endif
        !          4685: #endif
        !          4686:
        !          4687: #ifndef DIR_SEPARATOR_2
        !          4688: # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
        !          4689: #else /* DIR_SEPARATOR_2 */
        !          4690: # define IS_DIR_SEPARATOR(ch) \
        !          4691:         (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
        !          4692: #endif /* DIR_SEPARATOR_2 */
        !          4693:
        !          4694: #define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
        !          4695: #define XFREE(stale) do { \
        !          4696:   if (stale) { free ((void *) stale); stale = 0; } \
        !          4697: } while (0)
        !          4698:
        !          4699: const char *program_name = NULL;
        !          4700:
        !          4701: void * xmalloc (size_t num);
        !          4702: char * xstrdup (const char *string);
        !          4703: char * basename (const char *name);
        !          4704: char * fnqualify(const char *path);
        !          4705: char * strendzap(char *str, const char *pat);
        !          4706: void lt_fatal (const char *message, ...);
        !          4707:
        !          4708: int
        !          4709: main (int argc, char *argv[])
        !          4710: {
        !          4711:   char **newargz;
        !          4712:   int i;
        !          4713:
        !          4714:   program_name = (char *) xstrdup ((char *) basename (argv[0]));
        !          4715:   newargz = XMALLOC(char *, argc+2);
        !          4716: EOF
        !          4717:
        !          4718:            cat >> $cwrappersource <<EOF
        !          4719:   newargz[0] = "$SHELL";
        !          4720: EOF
        !          4721:
        !          4722:            cat >> $cwrappersource <<"EOF"
        !          4723:   newargz[1] = fnqualify(argv[0]);
        !          4724:   /* we know the script has the same name, without the .exe */
        !          4725:   /* so make sure newargz[1] doesn't end in .exe */
        !          4726:   strendzap(newargz[1],".exe");
        !          4727:   for (i = 1; i < argc; i++)
        !          4728:     newargz[i+1] = xstrdup(argv[i]);
        !          4729:   newargz[argc+1] = NULL;
        !          4730: EOF
        !          4731:
        !          4732:            cat >> $cwrappersource <<EOF
        !          4733:   execv("$SHELL",newargz);
        !          4734: EOF
        !          4735:
        !          4736:            cat >> $cwrappersource <<"EOF"
        !          4737: }
        !          4738:
        !          4739: void *
        !          4740: xmalloc (size_t num)
        !          4741: {
        !          4742:   void * p = (void *) malloc (num);
        !          4743:   if (!p)
        !          4744:     lt_fatal ("Memory exhausted");
        !          4745:
        !          4746:   return p;
        !          4747: }
        !          4748:
        !          4749: char *
        !          4750: xstrdup (const char *string)
        !          4751: {
        !          4752:   return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
        !          4753: ;
        !          4754: }
        !          4755:
        !          4756: char *
        !          4757: basename (const char *name)
        !          4758: {
        !          4759:   const char *base;
        !          4760:
        !          4761: #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
        !          4762:   /* Skip over the disk name in MSDOS pathnames. */
        !          4763:   if (isalpha (name[0]) && name[1] == ':')
        !          4764:     name += 2;
        !          4765: #endif
        !          4766:
        !          4767:   for (base = name; *name; name++)
        !          4768:     if (IS_DIR_SEPARATOR (*name))
        !          4769:       base = name + 1;
        !          4770:   return (char *) base;
        !          4771: }
        !          4772:
        !          4773: char *
        !          4774: fnqualify(const char *path)
        !          4775: {
        !          4776:   size_t size;
        !          4777:   char *p;
        !          4778:   char tmp[LT_PATHMAX + 1];
        !          4779:
        !          4780:   assert(path != NULL);
        !          4781:
        !          4782:   /* Is it qualified already? */
        !          4783: #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
        !          4784:   if (isalpha (path[0]) && path[1] == ':')
        !          4785:     return xstrdup (path);
        !          4786: #endif
        !          4787:   if (IS_DIR_SEPARATOR (path[0]))
        !          4788:     return xstrdup (path);
        !          4789:
        !          4790:   /* prepend the current directory */
        !          4791:   /* doesn't handle '~' */
        !          4792:   if (getcwd (tmp, LT_PATHMAX) == NULL)
        !          4793:     lt_fatal ("getcwd failed");
        !          4794:   size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
        !          4795:   p = XMALLOC(char, size);
        !          4796:   sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
        !          4797:   return p;
        !          4798: }
        !          4799:
        !          4800: char *
        !          4801: strendzap(char *str, const char *pat)
        !          4802: {
        !          4803:   size_t len, patlen;
        !          4804:
        !          4805:   assert(str != NULL);
        !          4806:   assert(pat != NULL);
        !          4807:
        !          4808:   len = strlen(str);
        !          4809:   patlen = strlen(pat);
        !          4810:
        !          4811:   if (patlen <= len)
        !          4812:   {
        !          4813:     str += len - patlen;
        !          4814:     if (strcmp(str, pat) == 0)
        !          4815:       *str = '\0';
        !          4816:   }
        !          4817:   return str;
        !          4818: }
        !          4819:
        !          4820: static void
        !          4821: lt_error_core (int exit_status, const char * mode,
        !          4822:           const char * message, va_list ap)
        !          4823: {
        !          4824:   fprintf (stderr, "%s: %s: ", program_name, mode);
        !          4825:   vfprintf (stderr, message, ap);
        !          4826:   fprintf (stderr, ".\n");
        !          4827:
        !          4828:   if (exit_status >= 0)
        !          4829:     exit (exit_status);
        !          4830: }
        !          4831:
        !          4832: void
        !          4833: lt_fatal (const char *message, ...)
        !          4834: {
        !          4835:   va_list ap;
        !          4836:   va_start (ap, message);
        !          4837:   lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
        !          4838:   va_end (ap);
        !          4839: }
        !          4840: EOF
        !          4841:          # we should really use a build-platform specific compiler
        !          4842:          # here, but OTOH, the wrappers (shell script and this C one)
        !          4843:          # are only useful if you want to execute the "real" binary.
        !          4844:          # Since the "real" binary is built for $host, then this
        !          4845:          # wrapper might as well be built for $host, too.
        !          4846:          $run $LTCC -s -o $cwrapper $cwrappersource
        !          4847:          ;;
        !          4848:        esac
        !          4849:        $rm $output
        !          4850:        trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
        !          4851:
        !          4852:        $echo > $output "\
        !          4853: #! $SHELL
        !          4854:
        !          4855: # $output - temporary wrapper script for $objdir/$outputname
        !          4856: # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
        !          4857: #
        !          4858: # The $output program cannot be directly executed until all the libtool
        !          4859: # libraries that it depends on are installed.
        !          4860: #
        !          4861: # This wrapper script should never be moved out of the build directory.
        !          4862: # If it is, it will not operate correctly.
        !          4863:
        !          4864: # Sed substitution that helps us do robust quoting.  It backslashifies
        !          4865: # metacharacters that are still active within double-quoted strings.
        !          4866: Xsed='${SED} -e 1s/^X//'
        !          4867: sed_quote_subst='$sed_quote_subst'
        !          4868:
        !          4869: # The HP-UX ksh and POSIX shell print the target directory to stdout
        !          4870: # if CDPATH is set.
        !          4871: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
        !          4872:
        !          4873: relink_command=\"$relink_command\"
        !          4874:
        !          4875: # This environment variable determines our operation mode.
        !          4876: if test \"\$libtool_install_magic\" = \"$magic\"; then
        !          4877:   # install mode needs the following variable:
        !          4878:   notinst_deplibs='$notinst_deplibs'
        !          4879: else
        !          4880:   # When we are sourced in execute mode, \$file and \$echo are already set.
        !          4881:   if test \"\$libtool_execute_magic\" != \"$magic\"; then
        !          4882:     echo=\"$qecho\"
        !          4883:     file=\"\$0\"
        !          4884:     # Make sure echo works.
        !          4885:     if test \"X\$1\" = X--no-reexec; then
        !          4886:       # Discard the --no-reexec flag, and continue.
        !          4887:       shift
        !          4888:     elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
        !          4889:       # Yippee, \$echo works!
        !          4890:       :
        !          4891:     else
        !          4892:       # Restart under the correct shell, and then maybe \$echo will work.
        !          4893:       exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
        !          4894:     fi
        !          4895:   fi\
        !          4896: "
        !          4897:        $echo >> $output "\
        !          4898:
        !          4899:   # Find the directory that this script lives in.
        !          4900:   thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
        !          4901:   test \"x\$thisdir\" = \"x\$file\" && thisdir=.
        !          4902:
        !          4903:   # Follow symbolic links until we get to the real thisdir.
        !          4904:   file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
        !          4905:   while test -n \"\$file\"; do
        !          4906:     destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
        !          4907:
        !          4908:     # If there was a directory component, then change thisdir.
        !          4909:     if test \"x\$destdir\" != \"x\$file\"; then
        !          4910:       case \"\$destdir\" in
        !          4911:       [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
        !          4912:       *) thisdir=\"\$thisdir/\$destdir\" ;;
        !          4913:       esac
        !          4914:     fi
        !          4915:
        !          4916:     file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
        !          4917:     file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
        !          4918:   done
        !          4919:
        !          4920:   # Try to get the absolute directory name.
        !          4921:   absdir=\`cd \"\$thisdir\" && pwd\`
        !          4922:   test -n \"\$absdir\" && thisdir=\"\$absdir\"
        !          4923: "
        !          4924:
        !          4925:        if test "$fast_install" = yes; then
        !          4926:          $echo >> $output "\
        !          4927:   program=lt-'$outputname'$exeext
        !          4928:   progdir=\"\$thisdir/$objdir\"
        !          4929:
        !          4930:   if test ! -f \"\$progdir/\$program\" || \\
        !          4931:      { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
        !          4932:        test \"X\$file\" != \"X\$progdir/\$program\"; }; then
        !          4933:
        !          4934:     file=\"\$\$-\$program\"
        !          4935:
        !          4936:     if test ! -d \"\$progdir\"; then
        !          4937:       $mkdir \"\$progdir\"
        !          4938:     else
        !          4939:       $rm \"\$progdir/\$file\"
        !          4940:     fi"
        !          4941:
        !          4942:          $echo >> $output "\
        !          4943:
        !          4944:     # relink executable if necessary
        !          4945:     if test -n \"\$relink_command\"; then
        !          4946:       if relink_command_output=\`eval \$relink_command 2>&1\`; then :
        !          4947:       else
        !          4948:        $echo \"\$relink_command_output\" >&2
        !          4949:        $rm \"\$progdir/\$file\"
        !          4950:        exit $EXIT_FAILURE
        !          4951:       fi
        !          4952:     fi
        !          4953:
        !          4954:     $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
        !          4955:     { $rm \"\$progdir/\$program\";
        !          4956:       $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
        !          4957:     $rm \"\$progdir/\$file\"
        !          4958:   fi"
        !          4959:        else
        !          4960:          $echo >> $output "\
        !          4961:   program='$outputname'
        !          4962:   progdir=\"\$thisdir/$objdir\"
        !          4963: "
        !          4964:        fi
        !          4965:
        !          4966:        $echo >> $output "\
        !          4967:
        !          4968:   if test -f \"\$progdir/\$program\"; then"
        !          4969:
        !          4970:        # Export our shlibpath_var if we have one.
        !          4971:        if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
        !          4972:          $echo >> $output "\
        !          4973:     # Add our own library path to $shlibpath_var
        !          4974:     $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
        !          4975:
        !          4976:     # Some systems cannot cope with colon-terminated $shlibpath_var
        !          4977:     # The second colon is a workaround for a bug in BeOS R4 sed
        !          4978:     $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
        !          4979:
        !          4980:     export $shlibpath_var
        !          4981: "
        !          4982:        fi
        !          4983:
        !          4984:        # fixup the dll searchpath if we need to.
        !          4985:        if test -n "$dllsearchpath"; then
        !          4986:          $echo >> $output "\
        !          4987:     # Add the dll search path components to the executable PATH
        !          4988:     PATH=$dllsearchpath:\$PATH
        !          4989: "
        !          4990:        fi
        !          4991:
        !          4992:        $echo >> $output "\
        !          4993:     if test \"\$libtool_execute_magic\" != \"$magic\"; then
        !          4994:       # Run the actual program with our arguments.
        !          4995: "
        !          4996:        case $host in
        !          4997:        # Backslashes separate directories on plain windows
        !          4998:        *-*-mingw | *-*-os2*)
        !          4999:          $echo >> $output "\
        !          5000:       exec \$progdir\\\\\$program \${1+\"\$@\"}
        !          5001: "
        !          5002:          ;;
        !          5003:
        !          5004:        *)
        !          5005:          $echo >> $output "\
        !          5006:       exec \$progdir/\$program \${1+\"\$@\"}
        !          5007: "
        !          5008:          ;;
        !          5009:        esac
        !          5010:        $echo >> $output "\
        !          5011:       \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
        !          5012:       exit $EXIT_FAILURE
        !          5013:     fi
        !          5014:   else
        !          5015:     # The program doesn't exist.
        !          5016:     \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
        !          5017:     \$echo \"This script is just a wrapper for \$program.\" 1>&2
        !          5018:     $echo \"See the $PACKAGE documentation for more information.\" 1>&2
        !          5019:     exit $EXIT_FAILURE
        !          5020:   fi
        !          5021: fi\
        !          5022: "
        !          5023:        chmod +x $output
        !          5024:       fi
        !          5025:       exit $EXIT_SUCCESS
        !          5026:       ;;
        !          5027:     esac
        !          5028:
        !          5029:     # See if we need to build an old-fashioned archive.
        !          5030:     for oldlib in $oldlibs; do
        !          5031:
        !          5032:       if test "$build_libtool_libs" = convenience; then
        !          5033:        oldobjs="$libobjs_save"
        !          5034:        addlibs="$convenience"
        !          5035:        build_libtool_libs=no
        !          5036:       else
        !          5037:        if test "$build_libtool_libs" = module; then
        !          5038:          oldobjs="$libobjs_save"
        !          5039:          build_libtool_libs=no
        !          5040:        else
        !          5041:          oldobjs="$old_deplibs $non_pic_objects"
        !          5042:        fi
        !          5043:        addlibs="$old_convenience"
        !          5044:       fi
        !          5045:
        !          5046:       if test -n "$addlibs"; then
        !          5047:        gentop="$output_objdir/${outputname}x"
        !          5048:        generated="$generated $gentop"
        !          5049:
        !          5050:        func_extract_archives $gentop $addlibs
        !          5051:        oldobjs="$oldobjs $func_extract_archives_result"
        !          5052:       fi
        !          5053:
        !          5054:       # Do each command in the archive commands.
        !          5055:       if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
        !          5056:        cmds=$old_archive_from_new_cmds
        !          5057:       else
        !          5058:        eval cmds=\"$old_archive_cmds\"
        !          5059:
        !          5060:        if len=`expr "X$cmds" : ".*"` &&
        !          5061:             test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
        !          5062:          cmds=$old_archive_cmds
        !          5063:        else
        !          5064:          # the command line is too long to link in one step, link in parts
        !          5065:          $echo "using piecewise archive linking..."
        !          5066:          save_RANLIB=$RANLIB
        !          5067:          RANLIB=:
        !          5068:          objlist=
        !          5069:          concat_cmds=
        !          5070:          save_oldobjs=$oldobjs
        !          5071:          # GNU ar 2.10+ was changed to match POSIX; thus no paths are
        !          5072:          # encoded into archives.  This makes 'ar r' malfunction in
        !          5073:          # this piecewise linking case whenever conflicting object
        !          5074:          # names appear in distinct ar calls; check, warn and compensate.
        !          5075:            if (for obj in $save_oldobjs
        !          5076:            do
        !          5077:              $echo "X$obj" | $Xsed -e 's%^.*/%%'
        !          5078:            done | sort | sort -uc >/dev/null 2>&1); then
        !          5079:            :
        !          5080:          else
        !          5081:            $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
        !          5082:            $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
        !          5083:            AR_FLAGS=cq
        !          5084:          fi
        !          5085:          # Is there a better way of finding the last object in the list?
        !          5086:          for obj in $save_oldobjs
        !          5087:          do
        !          5088:            last_oldobj=$obj
        !          5089:          done
        !          5090:          for obj in $save_oldobjs
        !          5091:          do
        !          5092:            oldobjs="$objlist $obj"
        !          5093:            objlist="$objlist $obj"
        !          5094:            eval test_cmds=\"$old_archive_cmds\"
        !          5095:            if len=`expr "X$test_cmds" : ".*"` &&
        !          5096:               test "$len" -le "$max_cmd_len"; then
        !          5097:              :
        !          5098:            else
        !          5099:              # the above command should be used before it gets too long
        !          5100:              oldobjs=$objlist
        !          5101:              if test "$obj" = "$last_oldobj" ; then
        !          5102:                RANLIB=$save_RANLIB
        !          5103:              fi
        !          5104:              test -z "$concat_cmds" || concat_cmds=$concat_cmds~
        !          5105:              eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
        !          5106:              objlist=
        !          5107:            fi
        !          5108:          done
        !          5109:          RANLIB=$save_RANLIB
        !          5110:          oldobjs=$objlist
        !          5111:          if test "X$oldobjs" = "X" ; then
        !          5112:            eval cmds=\"\$concat_cmds\"
        !          5113:          else
        !          5114:            eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
        !          5115:          fi
        !          5116:        fi
        !          5117:       fi
        !          5118:       save_ifs="$IFS"; IFS='~'
        !          5119:       for cmd in $cmds; do
        !          5120:         eval cmd=\"$cmd\"
        !          5121:        IFS="$save_ifs"
        !          5122:        $show "$cmd"
        !          5123:        $run eval "$cmd" || exit $?
        !          5124:       done
        !          5125:       IFS="$save_ifs"
        !          5126:     done
        !          5127:
        !          5128:     if test -n "$generated"; then
        !          5129:       $show "${rm}r$generated"
        !          5130:       $run ${rm}r$generated
        !          5131:     fi
        !          5132:
        !          5133:     # Now create the libtool archive.
        !          5134:     case $output in
        !          5135:     *.la)
        !          5136:       old_library=
        !          5137:       test "$build_old_libs" = yes && old_library="$libname.$libext"
        !          5138:       $show "creating $output"
        !          5139:
        !          5140:       # Preserve any variables that may affect compiler behavior
        !          5141:       for var in $variables_saved_for_relink; do
        !          5142:        if eval test -z \"\${$var+set}\"; then
        !          5143:          relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
        !          5144:        elif eval var_value=\$$var; test -z "$var_value"; then
        !          5145:          relink_command="$var=; export $var; $relink_command"
        !          5146:        else
        !          5147:          var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
        !          5148:          relink_command="$var=\"$var_value\"; export $var; $relink_command"
        !          5149:        fi
        !          5150:       done
        !          5151:       # Quote the link command for shipping.
        !          5152:       relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
        !          5153:       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
        !          5154:       if test "$hardcode_automatic" = yes ; then
        !          5155:        relink_command=
        !          5156:       fi
        !          5157:
        !          5158:
        !          5159:       # Only create the output if not a dry run.
        !          5160:       if test -z "$run"; then
        !          5161:        for installed in no yes; do
        !          5162:          if test "$installed" = yes; then
        !          5163:            if test -z "$install_libdir"; then
        !          5164:              break
        !          5165:            fi
        !          5166:            output="$output_objdir/$outputname"i
        !          5167:            # Replace all uninstalled libtool libraries with the installed ones
        !          5168:            newdependency_libs=
        !          5169:            for deplib in $dependency_libs; do
        !          5170:              case $deplib in
        !          5171:              *.la)
        !          5172:                name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
        !          5173:                eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
        !          5174:                if test -z "$libdir"; then
        !          5175:                  $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
        !          5176:                  exit $EXIT_FAILURE
        !          5177:                fi
        !          5178:                newdependency_libs="$newdependency_libs $libdir/$name"
        !          5179:                ;;
        !          5180:              *) newdependency_libs="$newdependency_libs $deplib" ;;
        !          5181:              esac
        !          5182:            done
        !          5183:            dependency_libs="$newdependency_libs"
        !          5184:            newdlfiles=
        !          5185:            for lib in $dlfiles; do
        !          5186:              name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
        !          5187:              eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
        !          5188:              if test -z "$libdir"; then
        !          5189:                $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
        !          5190:                exit $EXIT_FAILURE
        !          5191:              fi
        !          5192:              newdlfiles="$newdlfiles $libdir/$name"
        !          5193:            done
        !          5194:            dlfiles="$newdlfiles"
        !          5195:            newdlprefiles=
        !          5196:            for lib in $dlprefiles; do
        !          5197:              name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
        !          5198:              eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
        !          5199:              if test -z "$libdir"; then
        !          5200:                $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
        !          5201:                exit $EXIT_FAILURE
        !          5202:              fi
        !          5203:              newdlprefiles="$newdlprefiles $libdir/$name"
        !          5204:            done
        !          5205:            dlprefiles="$newdlprefiles"
        !          5206:          else
        !          5207:            newdlfiles=
        !          5208:            for lib in $dlfiles; do
        !          5209:              case $lib in
        !          5210:                [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
        !          5211:                *) abs=`pwd`"/$lib" ;;
        !          5212:              esac
        !          5213:              newdlfiles="$newdlfiles $abs"
        !          5214:            done
        !          5215:            dlfiles="$newdlfiles"
        !          5216:            newdlprefiles=
        !          5217:            for lib in $dlprefiles; do
        !          5218:              case $lib in
        !          5219:                [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
        !          5220:                *) abs=`pwd`"/$lib" ;;
        !          5221:              esac
        !          5222:              newdlprefiles="$newdlprefiles $abs"
        !          5223:            done
        !          5224:            dlprefiles="$newdlprefiles"
        !          5225:          fi
        !          5226:          $rm $output
        !          5227:          # place dlname in correct position for cygwin
        !          5228:          tdlname=$dlname
        !          5229:          case $host,$output,$installed,$module,$dlname in
        !          5230:            *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
        !          5231:          esac
        !          5232:          $echo > $output "\
        !          5233: # $outputname - a libtool library file
        !          5234: # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
        !          5235: #
        !          5236: # Please DO NOT delete this file!
        !          5237: # It is necessary for linking the library.
        !          5238:
        !          5239: # The name that we can dlopen(3).
        !          5240: dlname='$tdlname'
        !          5241:
        !          5242: # Names of this library.
        !          5243: library_names='$library_names'
        !          5244:
        !          5245: # The name of the static archive.
        !          5246: old_library='$old_library'
        !          5247:
        !          5248: # Libraries that this one depends upon.
        !          5249: dependency_libs='$dependency_libs'
        !          5250:
        !          5251: # Version information for $libname.
        !          5252: current=$current
        !          5253: age=$age
        !          5254: revision=$revision
        !          5255:
        !          5256: # Is this an already installed library?
        !          5257: installed=$installed
        !          5258:
        !          5259: # Should we warn about portability when linking against -modules?
        !          5260: shouldnotlink=$module
        !          5261:
        !          5262: # Files to dlopen/dlpreopen
        !          5263: dlopen='$dlfiles'
        !          5264: dlpreopen='$dlprefiles'
        !          5265:
        !          5266: # Directory that this library needs to be installed in:
        !          5267: libdir='$install_libdir'"
        !          5268:          if test "$installed" = no && test "$need_relink" = yes; then
        !          5269:            $echo >> $output "\
        !          5270: relink_command=\"$relink_command\""
        !          5271:          fi
        !          5272:        done
        !          5273:       fi
        !          5274:
        !          5275:       # Do a symbolic link so that the libtool archive can be found in
        !          5276:       # LD_LIBRARY_PATH before the program is installed.
        !          5277:       $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
        !          5278:       $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
        !          5279:       ;;
        !          5280:     esac
        !          5281:     exit $EXIT_SUCCESS
        !          5282:     ;;
        !          5283:
        !          5284:   # libtool install mode
        !          5285:   install)
        !          5286:     modename="$modename: install"
        !          5287:
        !          5288:     # There may be an optional sh(1) argument at the beginning of
        !          5289:     # install_prog (especially on Windows NT).
        !          5290:     if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
        !          5291:        # Allow the use of GNU shtool's install command.
        !          5292:        $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
        !          5293:       # Aesthetically quote it.
        !          5294:       arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
        !          5295:       case $arg in
        !          5296:       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
        !          5297:        arg="\"$arg\""
        !          5298:        ;;
        !          5299:       esac
        !          5300:       install_prog="$arg "
        !          5301:       arg="$1"
        !          5302:       shift
        !          5303:     else
        !          5304:       install_prog=
        !          5305:       arg="$nonopt"
        !          5306:     fi
        !          5307:
        !          5308:     # The real first argument should be the name of the installation program.
        !          5309:     # Aesthetically quote it.
        !          5310:     arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
        !          5311:     case $arg in
        !          5312:     *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*)
        !          5313:       arg="\"$arg\""
        !          5314:       ;;
        !          5315:     esac
        !          5316:     install_prog="$install_prog$arg"
        !          5317:
        !          5318:     # We need to accept at least all the BSD install flags.
        !          5319:     dest=
        !          5320:     files=
        !          5321:     opts=
        !          5322:     prev=
        !          5323:     install_type=
        !          5324:     isdir=no
        !          5325:     stripme=
        !          5326:     for arg
        !          5327:     do
        !          5328:       if test -n "$dest"; then
        !          5329:        files="$files $dest"
        !          5330:        dest="$arg"
        !          5331:        continue
        !          5332:       fi
        !          5333:
        !          5334:       case $arg in
        !          5335:       -d) isdir=yes ;;
        !          5336:       -f) prev="-f" ;;
        !          5337:       -g) prev="-g" ;;
        !          5338:       -m) prev="-m" ;;
        !          5339:       -o) prev="-o" ;;
        !          5340:       -s)
        !          5341:        stripme=" -s"
        !          5342:        continue
        !          5343:        ;;
        !          5344:       -*) ;;
        !          5345:
        !          5346:       *)
        !          5347:        # If the previous option needed an argument, then skip it.
        !          5348:        if test -n "$prev"; then
        !          5349:          prev=
        !          5350:        else
        !          5351:          dest="$arg"
        !          5352:          continue
        !          5353:        fi
        !          5354:        ;;
        !          5355:       esac
        !          5356:
        !          5357:       # Aesthetically quote the argument.
        !          5358:       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
        !          5359:       case $arg in
        !          5360:       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
        !          5361:        arg="\"$arg\""
        !          5362:        ;;
        !          5363:       esac
        !          5364:       install_prog="$install_prog $arg"
        !          5365:     done
        !          5366:
        !          5367:     if test -z "$install_prog"; then
        !          5368:       $echo "$modename: you must specify an install program" 1>&2
        !          5369:       $echo "$help" 1>&2
        !          5370:       exit $EXIT_FAILURE
        !          5371:     fi
        !          5372:
        !          5373:     if test -n "$prev"; then
        !          5374:       $echo "$modename: the \`$prev' option requires an argument" 1>&2
        !          5375:       $echo "$help" 1>&2
        !          5376:       exit $EXIT_FAILURE
        !          5377:     fi
        !          5378:
        !          5379:     if test -z "$files"; then
        !          5380:       if test -z "$dest"; then
        !          5381:        $echo "$modename: no file or destination specified" 1>&2
        !          5382:       else
        !          5383:        $echo "$modename: you must specify a destination" 1>&2
        !          5384:       fi
        !          5385:       $echo "$help" 1>&2
        !          5386:       exit $EXIT_FAILURE
        !          5387:     fi
        !          5388:
        !          5389:     # Canonicalise the pathname:
        !          5390:     #   - remove foo/../
        !          5391:     #   - replace //
        !          5392:     #   - remove /./
        !          5393:     #   - strip any trailing /
        !          5394:     tmp=""
        !          5395:     while test "$dest" != "$tmp";  do
        !          5396:       tmp=$dest
        !          5397:       dest=`$echo "X$dest" | $Xsed -e 's%[^/.][^/.]*/\.\.%%g' -e 's%/\./%/%g' -e 's%//*%/%g' -e 's%/$%%g'`
        !          5398:     done
        !          5399:
        !          5400:     # Check to see that the destination is a directory.
        !          5401:     test -d "$dest" && isdir=yes
        !          5402:     if test "$isdir" = yes; then
        !          5403:       destdir="$dest"
        !          5404:       destname=
        !          5405:     else
        !          5406:       destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
        !          5407:       test "X$destdir" = "X$dest" && destdir=.
        !          5408:       destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
        !          5409:
        !          5410:       # Not a directory, so check to see that there is only one file specified.
        !          5411:       set dummy $files
        !          5412:       if test "$#" -gt 2; then
        !          5413:        $echo "$modename: \`$dest' is not a directory" 1>&2
        !          5414:        $echo "$help" 1>&2
        !          5415:        exit $EXIT_FAILURE
        !          5416:       fi
        !          5417:     fi
        !          5418:     case $destdir in
        !          5419:     [\\/]* | [A-Za-z]:[\\/]*) ;;
        !          5420:     *)
        !          5421:       for file in $files; do
        !          5422:        case $file in
        !          5423:        *.lo) ;;
        !          5424:        *)
        !          5425:          $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
        !          5426:          $echo "$help" 1>&2
        !          5427:          exit $EXIT_FAILURE
        !          5428:          ;;
        !          5429:        esac
        !          5430:       done
        !          5431:       ;;
        !          5432:     esac
        !          5433:
        !          5434:     # This variable tells wrapper scripts just to set variables rather
        !          5435:     # than running their programs.
        !          5436:     libtool_install_magic="$magic"
        !          5437:
        !          5438:     staticlibs=
        !          5439:     future_libdirs=
        !          5440:     current_libdirs=
        !          5441:     for file in $files; do
        !          5442:
        !          5443:       # Do each installation.
        !          5444:       case $file in
        !          5445:       *.$libext)
        !          5446:        # Do the static libraries later.
        !          5447:        staticlibs="$staticlibs $file"
        !          5448:        ;;
        !          5449:
        !          5450:       *.la)
        !          5451:        # Check to see that this really is a libtool archive.
        !          5452:        if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
        !          5453:        else
        !          5454:          $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
        !          5455:          $echo "$help" 1>&2
        !          5456:          exit $EXIT_FAILURE
        !          5457:        fi
        !          5458:
        !          5459:        library_names=
        !          5460:        old_library=
        !          5461:        relink_command=
        !          5462:        # If there is no directory component, then add one.
        !          5463:        case $file in
        !          5464:        */* | *\\*) . $file ;;
        !          5465:        *) . ./$file ;;
        !          5466:        esac
        !          5467:
        !          5468:        # Add the libdir to current_libdirs if it is the destination.
        !          5469:        if test "X$destdir" = "X$libdir"; then
        !          5470:          case "$current_libdirs " in
        !          5471:          *" $libdir "*) ;;
        !          5472:          *) current_libdirs="$current_libdirs $libdir" ;;
        !          5473:          esac
        !          5474:        else
        !          5475:          # Note the libdir as a future libdir.
        !          5476:          case "$future_libdirs " in
        !          5477:          *" $libdir "*) ;;
        !          5478:          *) future_libdirs="$future_libdirs $libdir" ;;
        !          5479:          esac
        !          5480:        fi
        !          5481:
        !          5482:        dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
        !          5483:        test "X$dir" = "X$file/" && dir=
        !          5484:        dir="$dir$objdir"
        !          5485:
        !          5486:        if test -n "$relink_command"; then
        !          5487:          # Determine the prefix the user has applied to our future dir.
        !          5488:          inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
        !          5489:
        !          5490:          # Don't allow the user to place us outside of our expected
        !          5491:          # location b/c this prevents finding dependent libraries that
        !          5492:          # are installed to the same prefix.
        !          5493:          # At present, this check doesn't affect windows .dll's that
        !          5494:          # are installed into $libdir/../bin (currently, that works fine)
        !          5495:          # but it's something to keep an eye on.
        !          5496:          if test "$inst_prefix_dir" = "$destdir"; then
        !          5497:            $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
        !          5498:            exit $EXIT_FAILURE
        !          5499:          fi
        !          5500:
        !          5501:          if test -n "$inst_prefix_dir"; then
        !          5502:            # Stick the inst_prefix_dir data into the link command.
        !          5503:            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
        !          5504:          else
        !          5505:            relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
        !          5506:          fi
        !          5507:
        !          5508:          $echo "$modename: warning: relinking \`$file'" 1>&2
        !          5509:          $show "$relink_command"
        !          5510:          if $run eval "$relink_command"; then :
        !          5511:          else
        !          5512:            $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
        !          5513:            exit $EXIT_FAILURE
        !          5514:          fi
        !          5515:        fi
        !          5516:
        !          5517:        # See the names of the shared library.
        !          5518:        set dummy $library_names
        !          5519:        if test -n "$2"; then
        !          5520:          realname="$2"
        !          5521:          shift
        !          5522:          shift
        !          5523:
        !          5524:          srcname="$realname"
        !          5525:          test -n "$relink_command" && srcname="$realname"T
        !          5526:
        !          5527:          # Install the shared library and build the symlinks.
        !          5528:          $show "$install_prog $dir/$srcname $destdir/$realname"
        !          5529:          $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
        !          5530:          if test -n "$stripme" && test -n "$striplib"; then
        !          5531:            $show "$striplib $destdir/$realname"
        !          5532:            $run eval "$striplib $destdir/$realname" || exit $?
        !          5533:          fi
        !          5534:
        !          5535:          if test "$#" -gt 0; then
        !          5536:            # Delete the old symlinks, and create new ones.
        !          5537:            for linkname
        !          5538:            do
        !          5539:              if test "$linkname" != "$realname"; then
        !          5540:                $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
        !          5541:                $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
        !          5542:              fi
        !          5543:            done
        !          5544:          fi
        !          5545:
        !          5546:          # Do each command in the postinstall commands.
        !          5547:          lib="$destdir/$realname"
        !          5548:          cmds=$postinstall_cmds
        !          5549:          save_ifs="$IFS"; IFS='~'
        !          5550:          for cmd in $cmds; do
        !          5551:            IFS="$save_ifs"
        !          5552:            eval cmd=\"$cmd\"
        !          5553:            $show "$cmd"
        !          5554:            $run eval "$cmd" || exit $?
        !          5555:          done
        !          5556:          IFS="$save_ifs"
        !          5557:        fi
        !          5558:
        !          5559:        # Install the pseudo-library for information purposes.
        !          5560:        name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
        !          5561:        instname="$dir/$name"i
        !          5562:        $show "$install_prog $instname $destdir/$name"
        !          5563:        $run eval "$install_prog $instname $destdir/$name" || exit $?
        !          5564:
        !          5565:        # Maybe install the static library, too.
        !          5566:        test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
        !          5567:        ;;
        !          5568:
        !          5569:       *.lo)
        !          5570:        # Install (i.e. copy) a libtool object.
        !          5571:
        !          5572:        # Figure out destination file name, if it wasn't already specified.
        !          5573:        if test -n "$destname"; then
        !          5574:          destfile="$destdir/$destname"
        !          5575:        else
        !          5576:          destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
        !          5577:          destfile="$destdir/$destfile"
        !          5578:        fi
        !          5579:
        !          5580:        # Deduce the name of the destination old-style object file.
        !          5581:        case $destfile in
        !          5582:        *.lo)
        !          5583:          staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
        !          5584:          ;;
        !          5585:        *.$objext)
        !          5586:          staticdest="$destfile"
        !          5587:          destfile=
        !          5588:          ;;
        !          5589:        *)
        !          5590:          $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
        !          5591:          $echo "$help" 1>&2
        !          5592:          exit $EXIT_FAILURE
        !          5593:          ;;
        !          5594:        esac
        !          5595:
        !          5596:        # Install the libtool object if requested.
        !          5597:        if test -n "$destfile"; then
        !          5598:          $show "$install_prog $file $destfile"
        !          5599:          $run eval "$install_prog $file $destfile" || exit $?
        !          5600:        fi
        !          5601:
        !          5602:        # Install the old object if enabled.
        !          5603:        if test "$build_old_libs" = yes; then
        !          5604:          # Deduce the name of the old-style object file.
        !          5605:          staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
        !          5606:
        !          5607:          $show "$install_prog $staticobj $staticdest"
        !          5608:          $run eval "$install_prog \$staticobj \$staticdest" || exit $?
        !          5609:        fi
        !          5610:        exit $EXIT_SUCCESS
        !          5611:        ;;
        !          5612:
        !          5613:       *)
        !          5614:        # Figure out destination file name, if it wasn't already specified.
        !          5615:        if test -n "$destname"; then
        !          5616:          destfile="$destdir/$destname"
        !          5617:        else
        !          5618:          destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
        !          5619:          destfile="$destdir/$destfile"
        !          5620:        fi
        !          5621:
        !          5622:        # If the file is missing, and there is a .exe on the end, strip it
        !          5623:        # because it is most likely a libtool script we actually want to
        !          5624:        # install
        !          5625:        stripped_ext=""
        !          5626:        case $file in
        !          5627:          *.exe)
        !          5628:            if test ! -f "$file"; then
        !          5629:              file=`$echo $file|${SED} 's,.exe$,,'`
        !          5630:              stripped_ext=".exe"
        !          5631:            fi
        !          5632:            ;;
        !          5633:        esac
        !          5634:
        !          5635:        # Do a test to see if this is really a libtool program.
        !          5636:        case $host in
        !          5637:        *cygwin*|*mingw*)
        !          5638:            wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
        !          5639:            ;;
        !          5640:        *)
        !          5641:            wrapper=$file
        !          5642:            ;;
        !          5643:        esac
        !          5644:        if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
        !          5645:          notinst_deplibs=
        !          5646:          relink_command=
        !          5647:
        !          5648:          # To insure that "foo" is sourced, and not "foo.exe",
        !          5649:          # finese the cygwin/MSYS system by explicitly sourcing "foo."
        !          5650:          # which disallows the automatic-append-.exe behavior.
        !          5651:          case $build in
        !          5652:          *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
        !          5653:          *) wrapperdot=${wrapper} ;;
        !          5654:          esac
        !          5655:          # If there is no directory component, then add one.
        !          5656:          case $file in
        !          5657:          */* | *\\*) . ${wrapperdot} ;;
        !          5658:          *) . ./${wrapperdot} ;;
        !          5659:          esac
        !          5660:
        !          5661:          # Check the variables that should have been set.
        !          5662:          if test -z "$notinst_deplibs"; then
        !          5663:            $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
        !          5664:            exit $EXIT_FAILURE
        !          5665:          fi
        !          5666:
        !          5667:          finalize=yes
        !          5668:          for lib in $notinst_deplibs; do
        !          5669:            # Check to see that each library is installed.
        !          5670:            libdir=
        !          5671:            if test -f "$lib"; then
        !          5672:              # If there is no directory component, then add one.
        !          5673:              case $lib in
        !          5674:              */* | *\\*) . $lib ;;
        !          5675:              *) . ./$lib ;;
        !          5676:              esac
        !          5677:            fi
        !          5678:            libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
        !          5679:            if test -n "$libdir" && test ! -f "$libfile"; then
        !          5680:              $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
        !          5681:              finalize=no
        !          5682:            fi
        !          5683:          done
        !          5684:
        !          5685:          relink_command=
        !          5686:          # To insure that "foo" is sourced, and not "foo.exe",
        !          5687:          # finese the cygwin/MSYS system by explicitly sourcing "foo."
        !          5688:          # which disallows the automatic-append-.exe behavior.
        !          5689:          case $build in
        !          5690:          *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
        !          5691:          *) wrapperdot=${wrapper} ;;
        !          5692:          esac
        !          5693:          # If there is no directory component, then add one.
        !          5694:          case $file in
        !          5695:          */* | *\\*) . ${wrapperdot} ;;
        !          5696:          *) . ./${wrapperdot} ;;
        !          5697:          esac
        !          5698:
        !          5699:          outputname=
        !          5700:          if test "$fast_install" = no && test -n "$relink_command"; then
        !          5701:            if test "$finalize" = yes && test -z "$run"; then
        !          5702:              tmpdir="/tmp"
        !          5703:              test -n "$TMPDIR" && tmpdir="$TMPDIR"
        !          5704:              tmpdir="$tmpdir/libtool-$$"
        !          5705:              save_umask=`umask`
        !          5706:              umask 0077
        !          5707:              if $mkdir "$tmpdir"; then
        !          5708:                umask $save_umask
        !          5709:              else
        !          5710:                umask $save_umask
        !          5711:                $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
        !          5712:                continue
        !          5713:              fi
        !          5714:              file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
        !          5715:              outputname="$tmpdir/$file"
        !          5716:              # Replace the output file specification.
        !          5717:              relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
        !          5718:
        !          5719:              $show "$relink_command"
        !          5720:              if $run eval "$relink_command"; then :
        !          5721:              else
        !          5722:                $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
        !          5723:                ${rm}r "$tmpdir"
        !          5724:                continue
        !          5725:              fi
        !          5726:              file="$outputname"
        !          5727:            else
        !          5728:              $echo "$modename: warning: cannot relink \`$file'" 1>&2
        !          5729:            fi
        !          5730:          else
        !          5731:            # Install the binary that we compiled earlier.
        !          5732:            file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
        !          5733:          fi
        !          5734:        fi
        !          5735:
        !          5736:        # remove .exe since cygwin /usr/bin/install will append another
        !          5737:        # one anyways
        !          5738:        case $install_prog,$host in
        !          5739:        */usr/bin/install*,*cygwin*)
        !          5740:          case $file:$destfile in
        !          5741:          *.exe:*.exe)
        !          5742:            # this is ok
        !          5743:            ;;
        !          5744:          *.exe:*)
        !          5745:            destfile=$destfile.exe
        !          5746:            ;;
        !          5747:          *:*.exe)
        !          5748:            destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
        !          5749:            ;;
        !          5750:          esac
        !          5751:          ;;
        !          5752:        esac
        !          5753:        $show "$install_prog$stripme $file $destfile"
        !          5754:        $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
        !          5755:        test -n "$outputname" && ${rm}r "$tmpdir"
        !          5756:        ;;
        !          5757:       esac
        !          5758:     done
        !          5759:
        !          5760:     for file in $staticlibs; do
        !          5761:       name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
        !          5762:
        !          5763:       # Set up the ranlib parameters.
        !          5764:       oldlib="$destdir/$name"
        !          5765:
        !          5766:       $show "$install_prog $file $oldlib"
        !          5767:       $run eval "$install_prog \$file \$oldlib" || exit $?
        !          5768:
        !          5769:       if test -n "$stripme" && test -n "$old_striplib"; then
        !          5770:        $show "$old_striplib $oldlib"
        !          5771:        $run eval "$old_striplib $oldlib" || exit $?
        !          5772:       fi
        !          5773:
        !          5774:       # Do each command in the postinstall commands.
        !          5775:       cmds=$old_postinstall_cmds
        !          5776:       save_ifs="$IFS"; IFS='~'
        !          5777:       for cmd in $cmds; do
        !          5778:        IFS="$save_ifs"
        !          5779:        eval cmd=\"$cmd\"
        !          5780:        $show "$cmd"
        !          5781:        $run eval "$cmd" || exit $?
        !          5782:       done
        !          5783:       IFS="$save_ifs"
        !          5784:     done
        !          5785:
        !          5786:     if test -n "$future_libdirs"; then
        !          5787:       $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
        !          5788:     fi
        !          5789:
        !          5790:     if test -n "$current_libdirs"; then
        !          5791:       # Maybe just do a dry run.
        !          5792:       test -n "$run" && current_libdirs=" -n$current_libdirs"
        !          5793:       exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
        !          5794:     else
        !          5795:       exit $EXIT_SUCCESS
        !          5796:     fi
        !          5797:     ;;
        !          5798:
        !          5799:   # libtool finish mode
        !          5800:   finish)
        !          5801:     modename="$modename: finish"
        !          5802:     libdirs="$nonopt"
        !          5803:     admincmds=
        !          5804:
        !          5805:     if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
        !          5806:       for dir
        !          5807:       do
        !          5808:        libdirs="$libdirs $dir"
        !          5809:       done
        !          5810:
        !          5811:       for libdir in $libdirs; do
        !          5812:        if test -n "$finish_cmds"; then
        !          5813:          # Do each command in the finish commands.
        !          5814:          cmds=$finish_cmds
        !          5815:          save_ifs="$IFS"; IFS='~'
        !          5816:          for cmd in $cmds; do
        !          5817:            IFS="$save_ifs"
        !          5818:            eval cmd=\"$cmd\"
        !          5819:            $show "$cmd"
        !          5820:            $run eval "$cmd" || admincmds="$admincmds
        !          5821:        $cmd"
        !          5822:          done
        !          5823:          IFS="$save_ifs"
        !          5824:        fi
        !          5825:        if test -n "$finish_eval"; then
        !          5826:          # Do the single finish_eval.
        !          5827:          eval cmds=\"$finish_eval\"
        !          5828:          $run eval "$cmds" || admincmds="$admincmds
        !          5829:        $cmds"
        !          5830:        fi
        !          5831:       done
        !          5832:     fi
        !          5833:
        !          5834:     # Exit here if they wanted silent mode.
        !          5835:     test "$show" = : && exit $EXIT_SUCCESS
        !          5836:
        !          5837:     $echo "----------------------------------------------------------------------"
        !          5838:     $echo "Libraries have been installed in:"
        !          5839:     for libdir in $libdirs; do
        !          5840:       $echo "   $libdir"
        !          5841:     done
        !          5842:     $echo
        !          5843:     $echo "If you ever happen to want to link against installed libraries"
        !          5844:     $echo "in a given directory, LIBDIR, you must either use libtool, and"
        !          5845:     $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
        !          5846:     $echo "flag during linking and do at least one of the following:"
        !          5847:     if test -n "$shlibpath_var"; then
        !          5848:       $echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
        !          5849:       $echo "     during execution"
        !          5850:     fi
        !          5851:     if test -n "$runpath_var"; then
        !          5852:       $echo "   - add LIBDIR to the \`$runpath_var' environment variable"
        !          5853:       $echo "     during linking"
        !          5854:     fi
        !          5855:     if test -n "$hardcode_libdir_flag_spec"; then
        !          5856:       libdir=LIBDIR
        !          5857:       eval flag=\"$hardcode_libdir_flag_spec\"
        !          5858:
        !          5859:       $echo "   - use the \`$flag' linker flag"
        !          5860:     fi
        !          5861:     if test -n "$admincmds"; then
        !          5862:       $echo "   - have your system administrator run these commands:$admincmds"
        !          5863:     fi
        !          5864:     if test -f /etc/ld.so.conf; then
        !          5865:       $echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
        !          5866:     fi
        !          5867:     $echo
        !          5868:     $echo "See any operating system documentation about shared libraries for"
        !          5869:     $echo "more information, such as the ld(1) and ld.so(8) manual pages."
        !          5870:     $echo "----------------------------------------------------------------------"
        !          5871:     exit $EXIT_SUCCESS
        !          5872:     ;;
        !          5873:
        !          5874:   # libtool execute mode
        !          5875:   execute)
        !          5876:     modename="$modename: execute"
        !          5877:
        !          5878:     # The first argument is the command name.
        !          5879:     cmd="$nonopt"
        !          5880:     if test -z "$cmd"; then
        !          5881:       $echo "$modename: you must specify a COMMAND" 1>&2
        !          5882:       $echo "$help"
        !          5883:       exit $EXIT_FAILURE
        !          5884:     fi
        !          5885:
        !          5886:     # Handle -dlopen flags immediately.
        !          5887:     for file in $execute_dlfiles; do
        !          5888:       if test ! -f "$file"; then
        !          5889:        $echo "$modename: \`$file' is not a file" 1>&2
        !          5890:        $echo "$help" 1>&2
        !          5891:        exit $EXIT_FAILURE
        !          5892:       fi
        !          5893:
        !          5894:       dir=
        !          5895:       case $file in
        !          5896:       *.la)
        !          5897:        # Check to see that this really is a libtool archive.
        !          5898:        if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
        !          5899:        else
        !          5900:          $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
        !          5901:          $echo "$help" 1>&2
        !          5902:          exit $EXIT_FAILURE
        !          5903:        fi
        !          5904:
        !          5905:        # Read the libtool library.
        !          5906:        dlname=
        !          5907:        library_names=
        !          5908:
        !          5909:        # If there is no directory component, then add one.
        !          5910:        case $file in
        !          5911:        */* | *\\*) . $file ;;
        !          5912:        *) . ./$file ;;
        !          5913:        esac
        !          5914:
        !          5915:        # Skip this library if it cannot be dlopened.
        !          5916:        if test -z "$dlname"; then
        !          5917:          # Warn if it was a shared library.
        !          5918:          test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
        !          5919:          continue
        !          5920:        fi
        !          5921:
        !          5922:        dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
        !          5923:        test "X$dir" = "X$file" && dir=.
        !          5924:
        !          5925:        if test -f "$dir/$objdir/$dlname"; then
        !          5926:          dir="$dir/$objdir"
        !          5927:        else
        !          5928:          $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
        !          5929:          exit $EXIT_FAILURE
        !          5930:        fi
        !          5931:        ;;
        !          5932:
        !          5933:       *.lo)
        !          5934:        # Just add the directory containing the .lo file.
        !          5935:        dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
        !          5936:        test "X$dir" = "X$file" && dir=.
        !          5937:        ;;
        !          5938:
        !          5939:       *)
        !          5940:        $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
        !          5941:        continue
        !          5942:        ;;
        !          5943:       esac
        !          5944:
        !          5945:       # Get the absolute pathname.
        !          5946:       absdir=`cd "$dir" && pwd`
        !          5947:       test -n "$absdir" && dir="$absdir"
        !          5948:
        !          5949:       # Now add the directory to shlibpath_var.
        !          5950:       if eval "test -z \"\$$shlibpath_var\""; then
        !          5951:        eval "$shlibpath_var=\"\$dir\""
        !          5952:       else
        !          5953:        eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
        !          5954:       fi
        !          5955:     done
        !          5956:
        !          5957:     # This variable tells wrapper scripts just to set shlibpath_var
        !          5958:     # rather than running their programs.
        !          5959:     libtool_execute_magic="$magic"
        !          5960:
        !          5961:     # Check if any of the arguments is a wrapper script.
        !          5962:     args=
        !          5963:     for file
        !          5964:     do
        !          5965:       case $file in
        !          5966:       -*) ;;
        !          5967:       *)
        !          5968:        # Do a test to see if this is really a libtool program.
        !          5969:        if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          5970:          # If there is no directory component, then add one.
        !          5971:          case $file in
        !          5972:          */* | *\\*) . $file ;;
        !          5973:          *) . ./$file ;;
        !          5974:          esac
        !          5975:
        !          5976:          # Transform arg to wrapped name.
        !          5977:          file="$progdir/$program"
        !          5978:        fi
        !          5979:        ;;
        !          5980:       esac
        !          5981:       # Quote arguments (to preserve shell metacharacters).
        !          5982:       file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
        !          5983:       args="$args \"$file\""
        !          5984:     done
        !          5985:
        !          5986:     if test -z "$run"; then
        !          5987:       if test -n "$shlibpath_var"; then
        !          5988:        # Export the shlibpath_var.
        !          5989:        eval "export $shlibpath_var"
        !          5990:       fi
        !          5991:
        !          5992:       # Restore saved environment variables
        !          5993:       if test "${save_LC_ALL+set}" = set; then
        !          5994:        LC_ALL="$save_LC_ALL"; export LC_ALL
        !          5995:       fi
        !          5996:       if test "${save_LANG+set}" = set; then
        !          5997:        LANG="$save_LANG"; export LANG
        !          5998:       fi
        !          5999:
        !          6000:       # Now prepare to actually exec the command.
        !          6001:       exec_cmd="\$cmd$args"
        !          6002:     else
        !          6003:       # Display what would be done.
        !          6004:       if test -n "$shlibpath_var"; then
        !          6005:        eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
        !          6006:        $echo "export $shlibpath_var"
        !          6007:       fi
        !          6008:       $echo "$cmd$args"
        !          6009:       exit $EXIT_SUCCESS
        !          6010:     fi
        !          6011:     ;;
        !          6012:
        !          6013:   # libtool clean and uninstall mode
        !          6014:   clean | uninstall)
        !          6015:     modename="$modename: $mode"
        !          6016:     rm="$nonopt"
        !          6017:     files=
        !          6018:     rmforce=
        !          6019:     exit_status=0
        !          6020:
        !          6021:     # This variable tells wrapper scripts just to set variables rather
        !          6022:     # than running their programs.
        !          6023:     libtool_install_magic="$magic"
        !          6024:
        !          6025:     for arg
        !          6026:     do
        !          6027:       case $arg in
        !          6028:       -f) rm="$rm $arg"; rmforce=yes ;;
        !          6029:       -*) rm="$rm $arg" ;;
        !          6030:       *) files="$files $arg" ;;
        !          6031:       esac
        !          6032:     done
        !          6033:
        !          6034:     if test -z "$rm"; then
        !          6035:       $echo "$modename: you must specify an RM program" 1>&2
        !          6036:       $echo "$help" 1>&2
        !          6037:       exit $EXIT_FAILURE
        !          6038:     fi
        !          6039:
        !          6040:     rmdirs=
        !          6041:
        !          6042:     origobjdir="$objdir"
        !          6043:     for file in $files; do
        !          6044:       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
        !          6045:       if test "X$dir" = "X$file"; then
        !          6046:        dir=.
        !          6047:        objdir="$origobjdir"
        !          6048:       else
        !          6049:        objdir="$dir/$origobjdir"
        !          6050:       fi
        !          6051:       name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
        !          6052:       test "$mode" = uninstall && objdir="$dir"
        !          6053:
        !          6054:       # Remember objdir for removal later, being careful to avoid duplicates
        !          6055:       if test "$mode" = clean; then
        !          6056:        case " $rmdirs " in
        !          6057:          *" $objdir "*) ;;
        !          6058:          *) rmdirs="$rmdirs $objdir" ;;
        !          6059:        esac
        !          6060:       fi
        !          6061:
        !          6062:       # Don't error if the file doesn't exist and rm -f was used.
        !          6063:       if (test -L "$file") >/dev/null 2>&1 \
        !          6064:        || (test -h "$file") >/dev/null 2>&1 \
        !          6065:        || test -f "$file"; then
        !          6066:        :
        !          6067:       elif test -d "$file"; then
        !          6068:        exit_status=1
        !          6069:        continue
        !          6070:       elif test "$rmforce" = yes; then
        !          6071:        continue
        !          6072:       fi
        !          6073:
        !          6074:       rmfiles="$file"
        !          6075:
        !          6076:       case $name in
        !          6077:       *.la)
        !          6078:        # Possibly a libtool archive, so verify it.
        !          6079:        if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          6080:          . $dir/$name
        !          6081:
        !          6082:          # Delete the libtool libraries and symlinks.
        !          6083:          for n in $library_names; do
        !          6084:            rmfiles="$rmfiles $objdir/$n"
        !          6085:          done
        !          6086:          test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
        !          6087:          test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
        !          6088:
        !          6089:          if test "$mode" = uninstall; then
        !          6090:            if test -n "$library_names"; then
        !          6091:              # Do each command in the postuninstall commands.
        !          6092:              cmds=$postuninstall_cmds
        !          6093:              save_ifs="$IFS"; IFS='~'
        !          6094:              for cmd in $cmds; do
        !          6095:                IFS="$save_ifs"
        !          6096:                eval cmd=\"$cmd\"
        !          6097:                $show "$cmd"
        !          6098:                $run eval "$cmd"
        !          6099:                if test "$?" -ne 0 && test "$rmforce" != yes; then
        !          6100:                  exit_status=1
        !          6101:                fi
        !          6102:              done
        !          6103:              IFS="$save_ifs"
        !          6104:            fi
        !          6105:
        !          6106:            if test -n "$old_library"; then
        !          6107:              # Do each command in the old_postuninstall commands.
        !          6108:              cmds=$old_postuninstall_cmds
        !          6109:              save_ifs="$IFS"; IFS='~'
        !          6110:              for cmd in $cmds; do
        !          6111:                IFS="$save_ifs"
        !          6112:                eval cmd=\"$cmd\"
        !          6113:                $show "$cmd"
        !          6114:                $run eval "$cmd"
        !          6115:                if test "$?" -ne 0 && test "$rmforce" != yes; then
        !          6116:                  exit_status=1
        !          6117:                fi
        !          6118:              done
        !          6119:              IFS="$save_ifs"
        !          6120:            fi
        !          6121:            # FIXME: should reinstall the best remaining shared library.
        !          6122:          fi
        !          6123:        fi
        !          6124:        ;;
        !          6125:
        !          6126:       *.lo)
        !          6127:        # Possibly a libtool object, so verify it.
        !          6128:        if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          6129:
        !          6130:          # Read the .lo file
        !          6131:          . $dir/$name
        !          6132:
        !          6133:          # Add PIC object to the list of files to remove.
        !          6134:          if test -n "$pic_object" \
        !          6135:             && test "$pic_object" != none; then
        !          6136:            rmfiles="$rmfiles $dir/$pic_object"
        !          6137:          fi
        !          6138:
        !          6139:          # Add non-PIC object to the list of files to remove.
        !          6140:          if test -n "$non_pic_object" \
        !          6141:             && test "$non_pic_object" != none; then
        !          6142:            rmfiles="$rmfiles $dir/$non_pic_object"
        !          6143:          fi
        !          6144:        fi
        !          6145:        ;;
        !          6146:
        !          6147:       *)
        !          6148:        if test "$mode" = clean ; then
        !          6149:          noexename=$name
        !          6150:          case $file in
        !          6151:          *.exe)
        !          6152:            file=`$echo $file|${SED} 's,.exe$,,'`
        !          6153:            noexename=`$echo $name|${SED} 's,.exe$,,'`
        !          6154:            # $file with .exe has already been added to rmfiles,
        !          6155:            # add $file without .exe
        !          6156:            rmfiles="$rmfiles $file"
        !          6157:            ;;
        !          6158:          esac
        !          6159:          # Do a test to see if this is a libtool program.
        !          6160:          if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
        !          6161:            relink_command=
        !          6162:            . $dir/$noexename
        !          6163:
        !          6164:            # note $name still contains .exe if it was in $file originally
        !          6165:            # as does the version of $file that was added into $rmfiles
        !          6166:            rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
        !          6167:            if test "$fast_install" = yes && test -n "$relink_command"; then
        !          6168:              rmfiles="$rmfiles $objdir/lt-$name"
        !          6169:            fi
        !          6170:            if test "X$noexename" != "X$name" ; then
        !          6171:              rmfiles="$rmfiles $objdir/lt-${noexename}.c"
        !          6172:            fi
        !          6173:          fi
        !          6174:        fi
        !          6175:        ;;
        !          6176:       esac
        !          6177:       $show "$rm $rmfiles"
        !          6178:       $run $rm $rmfiles || exit_status=1
        !          6179:     done
        !          6180:     objdir="$origobjdir"
        !          6181:
        !          6182:     # Try to remove the ${objdir}s in the directories where we deleted files
        !          6183:     for dir in $rmdirs; do
        !          6184:       if test -d "$dir"; then
        !          6185:        $show "rmdir $dir"
        !          6186:        $run rmdir $dir >/dev/null 2>&1
        !          6187:       fi
        !          6188:     done
        !          6189:
        !          6190:     exit $exit_status
        !          6191:     ;;
        !          6192:
        !          6193:   "")
        !          6194:     $echo "$modename: you must specify a MODE" 1>&2
        !          6195:     $echo "$generic_help" 1>&2
        !          6196:     exit $EXIT_FAILURE
        !          6197:     ;;
        !          6198:   esac
        !          6199:
        !          6200:   if test -z "$exec_cmd"; then
        !          6201:     $echo "$modename: invalid operation mode \`$mode'" 1>&2
        !          6202:     $echo "$generic_help" 1>&2
        !          6203:     exit $EXIT_FAILURE
        !          6204:   fi
        !          6205: fi # test -z "$show_help"
        !          6206:
        !          6207: if test -n "$exec_cmd"; then
        !          6208:   eval exec $exec_cmd
        !          6209:   exit $EXIT_FAILURE
        !          6210: fi
        !          6211:
        !          6212: # We need to display help for each of the modes.
        !          6213: case $mode in
        !          6214: "") $echo \
        !          6215: "Usage: $modename [OPTION]... [MODE-ARG]...
        !          6216:
        !          6217: Provide generalized library-building support services.
        !          6218:
        !          6219:     --config          show all configuration variables
        !          6220:     --debug           enable verbose shell tracing
        !          6221: -n, --dry-run         display commands without modifying any files
        !          6222:     --features        display basic configuration information and exit
        !          6223:     --finish          same as \`--mode=finish'
        !          6224:     --help            display this help message and exit
        !          6225:     --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
        !          6226:     --quiet           same as \`--silent'
        !          6227:     --silent          don't print informational messages
        !          6228:     --tag=TAG         use configuration variables from tag TAG
        !          6229:     --version         print version information
        !          6230:
        !          6231: MODE must be one of the following:
        !          6232:
        !          6233:       clean           remove files from the build directory
        !          6234:       compile         compile a source file into a libtool object
        !          6235:       execute         automatically set library path, then run a program
        !          6236:       finish          complete the installation of libtool libraries
        !          6237:       install         install libraries or executables
        !          6238:       link            create a library or an executable
        !          6239:       uninstall       remove libraries from an installed directory
        !          6240:
        !          6241: MODE-ARGS vary depending on the MODE.  Try \`$modename --help --mode=MODE' for
        !          6242: a more detailed description of MODE.
        !          6243:
        !          6244: Report bugs to <bug-libtool@gnu.org>."
        !          6245:   exit $EXIT_SUCCESS
        !          6246:   ;;
        !          6247:
        !          6248: clean)
        !          6249:   $echo \
        !          6250: "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
        !          6251:
        !          6252: Remove files from the build directory.
        !          6253:
        !          6254: RM is the name of the program to use to delete files associated with each FILE
        !          6255: (typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
        !          6256: to RM.
        !          6257:
        !          6258: If FILE is a libtool library, object or program, all the files associated
        !          6259: with it are deleted. Otherwise, only FILE itself is deleted using RM."
        !          6260:   ;;
        !          6261:
        !          6262: compile)
        !          6263:   $echo \
        !          6264: "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
        !          6265:
        !          6266: Compile a source file into a libtool library object.
        !          6267:
        !          6268: This mode accepts the following additional options:
        !          6269:
        !          6270:   -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
        !          6271:   -prefer-pic       try to building PIC objects only
        !          6272:   -prefer-non-pic   try to building non-PIC objects only
        !          6273:   -static           always build a \`.o' file suitable for static linking
        !          6274:
        !          6275: COMPILE-COMMAND is a command to be used in creating a \`standard' object file
        !          6276: from the given SOURCEFILE.
        !          6277:
        !          6278: The output file name is determined by removing the directory component from
        !          6279: SOURCEFILE, then substituting the C source code suffix \`.c' with the
        !          6280: library object suffix, \`.lo'."
        !          6281:   ;;
        !          6282:
        !          6283: execute)
        !          6284:   $echo \
        !          6285: "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
        !          6286:
        !          6287: Automatically set library path, then run a program.
        !          6288:
        !          6289: This mode accepts the following additional options:
        !          6290:
        !          6291:   -dlopen FILE      add the directory containing FILE to the library path
        !          6292:
        !          6293: This mode sets the library path environment variable according to \`-dlopen'
        !          6294: flags.
        !          6295:
        !          6296: If any of the ARGS are libtool executable wrappers, then they are translated
        !          6297: into their corresponding uninstalled binary, and any of their required library
        !          6298: directories are added to the library path.
        !          6299:
        !          6300: Then, COMMAND is executed, with ARGS as arguments."
        !          6301:   ;;
        !          6302:
        !          6303: finish)
        !          6304:   $echo \
        !          6305: "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
        !          6306:
        !          6307: Complete the installation of libtool libraries.
        !          6308:
        !          6309: Each LIBDIR is a directory that contains libtool libraries.
        !          6310:
        !          6311: The commands that this mode executes may require superuser privileges.  Use
        !          6312: the \`--dry-run' option if you just want to see what would be executed."
        !          6313:   ;;
        !          6314:
        !          6315: install)
        !          6316:   $echo \
        !          6317: "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
        !          6318:
        !          6319: Install executables or libraries.
        !          6320:
        !          6321: INSTALL-COMMAND is the installation command.  The first component should be
        !          6322: either the \`install' or \`cp' program.
        !          6323:
        !          6324: The rest of the components are interpreted as arguments to that command (only
        !          6325: BSD-compatible install options are recognized)."
        !          6326:   ;;
        !          6327:
        !          6328: link)
        !          6329:   $echo \
        !          6330: "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
        !          6331:
        !          6332: Link object files or libraries together to form another library, or to
        !          6333: create an executable program.
        !          6334:
        !          6335: LINK-COMMAND is a command using the C compiler that you would use to create
        !          6336: a program from several object files.
        !          6337:
        !          6338: The following components of LINK-COMMAND are treated specially:
        !          6339:
        !          6340:   -all-static       do not do any dynamic linking at all
        !          6341:   -avoid-version    do not add a version suffix if possible
        !          6342:   -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
        !          6343:   -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
        !          6344:   -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
        !          6345:   -export-symbols SYMFILE
        !          6346:                    try to export only the symbols listed in SYMFILE
        !          6347:   -export-symbols-regex REGEX
        !          6348:                    try to export only the symbols matching REGEX
        !          6349:   -LLIBDIR          search LIBDIR for required installed libraries
        !          6350:   -lNAME            OUTPUT-FILE requires the installed library libNAME
        !          6351:   -module           build a library that can dlopened
        !          6352:   -no-fast-install  disable the fast-install mode
        !          6353:   -no-install       link a not-installable executable
        !          6354:   -no-undefined     declare that a library does not refer to external symbols
        !          6355:   -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
        !          6356:   -objectlist FILE  Use a list of object files found in FILE to specify objects
        !          6357:   -precious-files-regex REGEX
        !          6358:                     don't remove output files matching REGEX
        !          6359:   -release RELEASE  specify package release information
        !          6360:   -rpath LIBDIR     the created library will eventually be installed in LIBDIR
        !          6361:   -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
        !          6362:   -static           do not do any dynamic linking of libtool libraries
        !          6363:   -version-info CURRENT[:REVISION[:AGE]]
        !          6364:                    specify library version info [each variable defaults to 0]
        !          6365:
        !          6366: All other options (arguments beginning with \`-') are ignored.
        !          6367:
        !          6368: Every other argument is treated as a filename.  Files ending in \`.la' are
        !          6369: treated as uninstalled libtool libraries, other files are standard or library
        !          6370: object files.
        !          6371:
        !          6372: If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
        !          6373: only library objects (\`.lo' files) may be specified, and \`-rpath' is
        !          6374: required, except when creating a convenience library.
        !          6375:
        !          6376: If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
        !          6377: using \`ar' and \`ranlib', or on Windows using \`lib'.
        !          6378:
        !          6379: If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
        !          6380: is created, otherwise an executable program is created."
        !          6381:   ;;
        !          6382:
        !          6383: uninstall)
        !          6384:   $echo \
        !          6385: "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
        !          6386:
        !          6387: Remove libraries from an installation directory.
        !          6388:
        !          6389: RM is the name of the program to use to delete files associated with each FILE
        !          6390: (typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
        !          6391: to RM.
        !          6392:
        !          6393: If FILE is a libtool library, all the files associated with it are deleted.
        !          6394: Otherwise, only FILE itself is deleted using RM."
        !          6395:   ;;
        !          6396:
        !          6397: *)
        !          6398:   $echo "$modename: invalid operation mode \`$mode'" 1>&2
        !          6399:   $echo "$help" 1>&2
        !          6400:   exit $EXIT_FAILURE
        !          6401:   ;;
        !          6402: esac
        !          6403:
        !          6404: $echo
        !          6405: $echo "Try \`$modename --help' for more information about other modes."
        !          6406:
        !          6407: exit $EXIT_SUCCESS
        !          6408:
        !          6409: # The TAGs below are defined such that we never get into a situation
        !          6410: # in which we disable both kinds of libraries.  Given conflicting
        !          6411: # choices, we go for a static library, that is the most portable,
        !          6412: # since we can't tell whether shared libraries were disabled because
        !          6413: # the user asked for that or because the platform doesn't support
        !          6414: # them.  This is particularly important on AIX, because we don't
        !          6415: # support having both static and shared libraries enabled at the same
        !          6416: # time on that platform, so we default to a shared-only configuration.
        !          6417: # If a disable-shared tag is given, we'll fallback to a static-only
        !          6418: # configuration.  But we'll never go from static-only to shared-only.
        !          6419:
        !          6420: # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
        !          6421: build_libtool_libs=no
        !          6422: build_old_libs=yes
        !          6423: # ### END LIBTOOL TAG CONFIG: disable-shared
        !          6424:
        !          6425: # ### BEGIN LIBTOOL TAG CONFIG: disable-static
        !          6426: build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
        !          6427: # ### END LIBTOOL TAG CONFIG: disable-static
        !          6428:
        !          6429: # Local Variables:
        !          6430: # mode:shell-script
        !          6431: # sh-indentation:2
        !          6432: # End:

CVSweb <webmaster@jp.NetBSD.org>