Lines Matching +full:eye +full:- +full:term

29 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 # Usage: $progname [OPTION]... [MODE-ARG]...
33 # Provide generalized library-building support services.
35 # --config show all configuration variables
36 # --debug enable verbose shell tracing
37 # -n, --dry-run display commands without modifying any files
38 # --features display basic configuration information and exit
39 # --mode=MODE use operation mode MODE
40 # --preserve-dup-deps don't remove duplicate dependency libraries
41 # --quiet, --silent don't print informational messages
42 # --no-quiet, --no-silent
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
67 # host-triplet: $host
76 # Report bugs to <bug-libtool@gnu.org>.
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
92 alias -g '${1+"$@"}'='"$@"'
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${EGREP="grep -E"}
140 : ${FGREP="grep -F"}
142 : ${LN_S="ln -s"}
145 : ${MV="mv -f"}
146 : ${RM="rm -f"}
148 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
149 : ${Xsed="$SED -e 1s/^X//"}
203 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
209 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
239 # Remove doubled-up and trailing slashes, "." path components,
258 # we take advantage of case's first-match behaviour.
280 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
285 if test -z "$func_normal_abspath_result" ; then
291 -e "$pathcar"`
293 -e "$pathcdr"`
310 # Restore leading double-slash if one was found on entry.
316 # slash if non-empty, suitable for immediately appending a filename
340 if test -z "$func_relative_path_result"; then
359 # Now calculate path; take care to avoid doubling-up slashes.
370 if test ! -z "$func_relative_path_result"; then
382 [\\/]*|[A-Za-z]:\\*) ;;
393 test -x "$progdir/$progname" && break
396 test -n "$progdir" || progdir=`pwd`
402 # metacharacters that are still active within double-quoted strings.
403 Xsed="${SED}"' -e 1s/^X//'
418 # Re-`\' parameter expansions in output of double_quote_subst that were
419 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
456 # fails when set -e is in force, so we need another command to
462 # Invoke $ECHO with all args, space-separated.
501 help="Try \`$progname --help' for more information." ## default
512 # func_mkdir_p directory-path
513 # Make sure the entire path to DIRECTORY-PATH is available.
519 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
521 # Protect directory names starting with `-'
523 -*) my_directory_path="./$my_directory_path" ;;
527 while test ! -d "$my_directory_path"; do
536 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
551 test -d "$my_directory_path" || \
563 my_template="${TMPDIR-/tmp}/${1-$progname}"
566 # Return a directory name, but don't create it in dry-run mode
567 my_tmpdir="${my_template}-$$"
571 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
573 if test ! -d "$my_tmpdir"; then
575 my_tmpdir="${my_template}-${RANDOM-0}$$"
583 # If we're not in dry-run mode, bomb out on failure
584 test -d "$my_tmpdir" || \
595 # is double-quoted, suitable for a subsequent eval, whereas
608 # Double-quote args containing shell metacharacters to delay
630 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
636 # Double-quote args containing shell metacharacters to delay
656 my_fail_exp="${2-:}"
658 ${opt_silent-false} || {
663 if ${opt_dry_run-false}; then :; else
666 if test "$my_status" -eq 0; then :; else
680 my_fail_exp="${2-:}"
682 ${opt_silent-false} || {
687 if ${opt_dry_run-false}; then :; else
692 if test "$my_status" -eq 0; then :; else
701 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
706 [0-9]* | *[!a-zA-Z0-9_]*)
707 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
722 $SED -n '/(C)/!b go
733 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
745 $SED -n '/^# Usage:/,/^# *.*--help/ {
752 $ECHO "run \`$progname --help | more' for full usage"
763 $SED -n '/^# Usage:/,/# Report bugs to/ {
774 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
775 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
783 if test -z "$1"; then
818 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
819 my_sed_long_arg='1s/^--[^=]*=//'
843 # will be execed at the end. This prevents here-documents from being
864 # func_arith arithmetic-term...
886 # func_xform libobj-or-source
916 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
956 *[!-_A-Za-z0-9,/]*)
971 # also don't use non-portable quotes within backquotes within
973 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
989 if test -z "$macro_version"; then
1018 # Shorthand for --mode=foo, only valid as the first argument
1021 shift; set dummy --mode clean ${1+"$@"}; shift
1024 shift; set dummy --mode compile ${1+"$@"}; shift
1027 shift; set dummy --mode execute ${1+"$@"}; shift
1030 shift; set dummy --mode finish ${1+"$@"}; shift
1033 shift; set dummy --mode install ${1+"$@"}; shift
1036 shift; set dummy --mode link ${1+"$@"}; shift
1039 shift; set dummy --mode uninstall ${1+"$@"}; shift
1061 # script to make things like `--version' happen as quickly as we can.
1064 while test $# -gt 0; do
1068 --debug|-x) opt_debug='set -x'
1072 --dry-run|--dryrun|-n)
1075 --config)
1079 --dlopen|-dlopen)
1085 --preserve-dup-deps)
1088 --features)
1092 --finish)
1094 set dummy --mode finish ${1+"$@"}; shift
1096 --help)
1099 --help-all)
1101 opt_help=': help-all'
1103 --mode)
1119 --no-silent|--no-quiet)
1123 --no-verbose)
1127 --silent|--quiet)
1132 --verbose|-v)
1137 --tag)
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1151 --*=*)
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1209 # Change the help message to a mode-specific one.
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1222 ## ----------- ##
1224 ## ----------- ##
1232 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1247 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1255 exec 0<&5 5<&-
1305 # Execute tilde-delimited COMMANDS.
1307 # FAIL_CMD may read-access the current command in variable CMD!
1315 func_show_eval "$cmd" "${2-:}"
1324 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1370 # if one wasn't chosen via the "--tag" command line option.
1377 if test -n "$available_tags" && test -z "$tagname"; then
1395 …eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'…
1398 # Double-quote args containing other shell metacharacters.
1416 # was found and let the user know that the "--tag" command
1418 if test -z "$tagname"; then
1420 func_fatal_error "specify a tag with \`--tag'"
1451 # $write_libobj - a libtool object file
1460 # Name of the non-PIC object
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1495 $SED -e "$lt_sed_naive_backslashify"`
1519 if test -n "$1"; then
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1559 if test "$?" -ne 0; then
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1591 if test -z "$2" && test -n "$1" ; then
1609 if test -z "$4" && test -n "$3"; then
1618 $SED -e "$lt_replace_pathsep_chars"`
1702 if test -n "$1"; then
1718 if test -n "$1"; then
1721 func_to_host_file_result=`cygpath -m "$1"`
1735 if test -n "$1"; then
1751 if test -n "$1"; then
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1769 if test -n "$1"; then
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1808 if test -z "$to_host_path_cmd"; then
1844 if test -n "$1"; then
1867 if test -n "$1"; then
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1887 if test -n "$1"; then
1908 if test -n "$1"; then
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1931 if test -n "$1"; then
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1978 # Accept any command-line options.
1980 -o)
1981 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
1987 -pie | -fpie | -fPIE)
1992 -shared | -static | -prefer-pic | -prefer-non-pic)
1997 -no-suppress)
2002 -Xcompiler)
2007 -Wc,*)
2008 func_stripname '-Wc,' '' "$arg"
2042 func_fatal_error "you must specify an argument for -Xcompile"
2045 func_fatal_error "you must specify a target with \`-o'"
2049 test -z "$libobj" && {
2057 # If the user specifies -o file.o, it is replaced with file.lo
2079 -shared)
2086 -static)
2092 -prefer-pic)
2097 -prefer-non-pic)
2113 test -z "$base_compile" && \
2130 # non-PIC code in shared libraries is not supported
2135 # not support -o with -c
2153 if test -f "$lockfile"; then
2160 your compiler does not support \`-c' and \`-o' together. If you
2162 avoid parallel builds (make -j) in this platform, or get a better
2195 if test -z "$output_obj"; then
2197 func_append command " -o $lobj"
2201 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2214 your compiler does not support \`-c' and \`-o' together. If you
2216 avoid parallel builds (make -j) in this platform, or get a better
2224 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2235 # Only build a position-dependent object if we build old libraries.
2244 func_append command " -o $obj"
2263 your compiler does not support \`-c' and \`-o' together. If you
2265 avoid parallel builds (make -j) in this platform, or get a better
2273 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2308 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2322 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2328 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2329 -no-suppress do not suppress compiler output for multiple passes
2330 -prefer-pic try to build PIC objects only
2331 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
2334 -Wc,FLAG pass FLAG directly to the compiler
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2346 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2352 -dlopen FILE add the directory containing FILE to the library path
2354 This mode sets the library path environment variable according to \`-dlopen'
2366 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2373 the \`--dry-run' option if you just want to see what would be executed."
2378 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2382 INSTALL-COMMAND is the installation command. The first component should be
2385 The following components of INSTALL-COMMAND are treated specially:
2387 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2390 BSD-compatible install options are recognized)."
2395 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2400 LINK-COMMAND is a command using the C compiler that you would use to create
2403 The following components of LINK-COMMAND are treated specially:
2405 -all-static do not do any dynamic linking at all
2406 -avoid-version do not add a version suffix if possible
2407 -bindir BINDIR specify path to binaries directory (for systems where
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2410 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2411 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2412 -export-symbols SYMFILE
2414 -export-symbols-regex REGEX
2416 -LLIBDIR search LIBDIR for required installed libraries
2417 -lNAME OUTPUT-FILE requires the installed library libNAME
2418 -module build a library that can dlopened
2419 -no-fast-install disable the fast-install mode
2420 -no-install link a not-installable executable
2421 -no-undefined declare that a library does not refer to external symbols
2422 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
2424 -precious-files-regex REGEX
2426 -release RELEASE specify package release information
2427 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2428 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2429 -shared only do dynamic linking of libtool libraries
2430 -shrext SUFFIX override the standard shared library file extension
2431 -static do not do any dynamic linking of uninstalled libtool libraries
2432 -static-libtool-libs
2434 -version-info CURRENT[:REVISION[:AGE]]
2436 -weak LIBNAME declare that the target provides the LIBNAME interface
2437 -Wc,FLAG
2438 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2439 -Wl,FLAG
2440 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2441 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2443 All other options (arguments beginning with \`-') are ignored.
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2462 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2480 $ECHO "Try \`$progname --help' for more information about other modes."
2483 # Now that we've collected a possible --mode arg, show help if necessary
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2509 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2521 test -z "$cmd" && \
2524 # Handle -dlopen flags immediately.
2526 test -f "$file" \
2545 if test -z "$dlname"; then
2547 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
2555 if test -f "$dir/$objdir/$dlname"; then
2558 if test ! -f "$dir/$dlname"; then
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2578 test -n "$absdir" && dir="$absdir"
2581 if eval "test -z \"\$$shlibpath_var\""; then
2597 -* | *.la | *.lo ) ;;
2617 if test -n "$shlibpath_var"; then
2636 if test -n "$shlibpath_var"; then
2658 if test -d "$opt"; then
2661 elif test -f "$opt"; then
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2699 if test -n "$finish_cmds"; then
2704 if test -n "$finish_eval"; then
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2735 if test -n "$hardcode_libdir_flag_spec"; then
2739 $ECHO " - use the \`$flag' linker flag"
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2751 solaris2.[6789]|solaris2.1[0-9])
2759 echo "----------------------------------------------------------------------"
2808 if test -n "$dest"; then
2815 -d) isdir=yes ;;
2816 -f)
2821 -g | -m | -o)
2824 -s)
2825 stripme=" -s"
2828 -*)
2832 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2848 if test -n "$arg2"; then
2854 test -z "$install_prog" && \
2857 test -n "$prev" && \
2860 if test -n "$install_override_mode" && $no_mode; then
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
2867 if test -z "$files"; then
2868 if test -z "$dest"; then
2880 test -d "$dest" && isdir=yes
2891 test "$#" -gt 1 && \
2895 [\\/]* | [A-Za-z]:[\\/]*) ;;
2955 if test -n "$relink_command"; then
2957 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2964 # but it's something to keep an eye on.
2968 if test -n "$inst_prefix_dir"; then
2970 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
2982 if test -n "$1"; then
2987 test -n "$relink_command" && srcname="$realname"T
3002 if test -n "$tstripme" && test -n "$striplib"; then
3006 if test "$#" -gt 0; then
3008 # Try `ln -sf' first, because the `ln' binary might depend on
3009 # the symlink we replace! Solaris /bin/ln does not understand -f,
3010 # so we also need to try rm && ln -s.
3014 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
3023 # Install the pseudo-library for information purposes.
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3037 if test -n "$destname"; then
3045 # Deduce the name of the destination old-style object file.
3061 test -n "$destfile" && \
3066 # Deduce the name of the old-style object file.
3076 if test -n "$destname"; then
3090 if test ! -f "$file"; then
3120 test -z "$generated_by_libtool_version" && \
3127 if test -f "$lib"; then
3131 if test -n "$libdir" && test ! -f "$libfile"; then
3141 if test "$fast_install" = no && test -n "$relink_command"; then
3191 $opt_dry_run || if test -n "$outputname"; then
3207 if test -n "$stripme" && test -n "$old_striplib"; then
3215 test -n "$future_libdirs" && \
3216 func_warning "remember to run \`$progname --finish$future_libdirs'"
3218 if test -n "$current_libdirs"; then
3220 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3221 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3238 my_pic_p="${3-no}"
3239 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3242 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3243 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3250 if test -n "$my_dlsyms"; then
3263 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3271 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3277 relocations are performed -- see ld's documentation on pseudo-relocs. */
3302 if test -n "$exclude_expsyms"; then
3304 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3309 if test -n "$export_symbols_regex"; then
3311 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3317 if test -z "$export_symbols"; then
3321 … eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3331 …eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output…
3332 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3355 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 if test -n "$dlprefile_dlname" ; then
3362 # no lafile. user explicitly requested -dlpreopen <import library>.
3368 if test -n "$dlprefile_dlbasename" ; then
3376 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3398 test -f "$nlist" || : > "$nlist"
3400 if test -n "$exclude_expsyms"; then
3401 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3406 if $GREP -v "^: " < "$nlist" |
3407 if sort -k 3 </dev/null >/dev/null 2>&1; then
3408 sort -k 3
3415 $GREP -v "^: " < "$nlist" > "$nlist"S
3418 if test -f "$nlist"S; then
3465 *" -static "*) ;;
3469 # a FreeBSD bug that causes programs to crash when -lm is
3471 # pic_flag when linking with -static. The problem exists in
3473 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3474 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3475 *-*-hpux*)
3488 -pie | -fpie | -fPIE) ;;
3494 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
3503 if test -f "$output_objdir/$my_outputname.def"; then
3543 win32_fileres=`file -L $1 2>/dev/null`
3550 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3551 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3553 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3554 $SED -n -e '
3584 # Platform-specific function to extract the
3594 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3600 # platform-specific function to extract the name of the
3612 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3621 /:[ ]*file format pe[i]\{,1\}-/d
3629 $SED -n '
3650 # 0x302f exports -- but will fail for DLLs whose name actually
3655 $SED -e '/^\./d;/^.\./d;q'
3660 # ARG is a GNU/binutils-style import library. Returns
3666 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
3667 test -n "$func_cygming_gnu_implib_tmp"
3672 # ARG is an MS-style import library. Returns
3679 test -n "$func_cygming_ms_implib_tmp"
3683 # Platform-specific function to extract the
3688 # does not support the --identify-strict option.
3700 # ms-generated import library
3723 'stat=$?; rm -f "$lockfile"; exit $stat'
3725 $opt_dry_run || rm -f "$lockfile"
3727 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3749 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3760 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3770 *-darwin*)
3779 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
3780 if test -n "$darwin_arches"; then
3781 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3785 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3786 …$LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_arc…
3787 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3793 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basenam…
3797 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
3798 $LIPO -create -output "$darwin_file" $darwin_files
3800 $RM -rf unfat-$$
3812 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
3831 # the $objdir directory. This is a cygwin/mingw-specific
3835 func_emit_wrapper_arg1=${1-no}
3840 # $output - temporary wrapper script for $objdir/$outputname
3850 # metacharacters that are still active within double-quoted strings.
3854 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3859 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3862 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3867 # The HP-UX ksh and POSIX shell print the target directory to stdout
3899 # windows platforms, and (c) all begin with the string "--lt-"
3903 # There are only two supported options: --lt-debug and
3904 # --lt-dump-script. There is, deliberately, no --lt-help.
3916 --lt-debug) lt_option_debug=1 ;;
3917 --lt-dump-script)
3918 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3920 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3924 --lt-*)
3925 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3932 if test -n \"\$lt_option_debug\"; then
3937 # Used when --lt-debug. Prints its arguments to stdout
3955 *-*-mingw | *-*-os2* | *-cegcc*)
3957 if test -n \"\$lt_option_debug\"; then
3967 if test -n \"\$lt_option_debug\"; then
3981 # Strips options in the --lt-* namespace from \$@ and
3988 --lt-*) ;;
4004 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4005 while test -n \"\$file\"; do
4011 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4017 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4037 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4042 program=lt-'$outputname'$exeext
4045 if test ! -f \"\$progdir/\$program\" ||
4046 … { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4049 file=\"\$\$-\$program\"
4051 if test ! -d \"\$progdir\"; then
4060 if test -n \"\$relink_command\"; then
4083 if test -f \"\$progdir/\$program\"; then"
4090 if test -n "$dllsearchpath"; then
4098 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4103 # Some systems cannot cope with colon-terminated $shlibpath_var
4136 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4172 /* declarations of non-ANSI functions */
4274 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4301 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4312 if test -n "$dllsearchpath"; then
4327 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4338 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4341 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4391 have already dealt with, above (inluding dump-script), then
4395 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4396 or a configure.ac-settable value.
4409 /* The GNU banner must be the first non-error debug message */
4439 /* target_name transforms -- use actual target program name; might have lt- prefix */
4465 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4468 /* DO want the lt- prefix here if it exists, so use target_name */
4522 if (rval == -1)
4676 p_len = q - p;
4747 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4749 p--;
4794 str += len - patlen;
4908 /* some systems can't cope with a ':'-terminated path #' */
4910 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4912 new_value[len-1] = '\0';
4950 - Space and tab are interpreted as delimiters. They are not treated as
4952 - Unescaped double quotes are removed from the input. Their only effect is
4955 - Backslashes not followed by double quotes are not special.
4956 - But 2*n+1 backslashes followed by a double quote become
4958 \" -> "
4959 \\\" -> \"
4960 \\\\\" -> \\"
5024 for (j = backslashes + 1; j > 0; j--)
5036 for (j = backslashes; j > 0; j--)
5060 $SED -e 's/\([\\"]\)/\\\1/g' \
5061 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
5074 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5085 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5095 # -no-undefined on the libtool link line when we can be certain
5152 single_module="${wl}-single_module"
5155 # We need to know -static, to get the right output filenames.
5159 -shared)
5165 -all-static | -static | -static-libtool-libs)
5167 -all-static)
5168 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5171 if test -n "$link_static_flag"; then
5176 -static)
5177 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5182 -static-libtool-libs)
5183 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5197 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5200 while test "$#" -gt 0; do
5208 if test -n "$prev"; then
5264 test -f "$arg" \
5276 *-*-darwin*)
5293 if test -f "$arg"; then
5300 # A libtool-controlled object.
5310 if test -z "$pic_object" ||
5311 test -z "$non_pic_object" ||
5336 # CHECK ME: I think I busted this. -Ossama
5338 # Preload the old-style object.
5348 # Non-PIC object.
5353 # A standard non-PIC object
5355 if test -z "$pic_object" || test "$pic_object" = none ; then
5365 # Only an error if not doing a dry-run.
5394 release="-$arg"
5401 [\\/]* | [A-Za-z]:[\\/]*) ;;
5403 func_fatal_error "only absolute run-paths are allowed"
5459 fi # test -n "$prev"
5464 -all-static)
5465 if test -n "$link_static_flag"; then
5466 # See comment for -static flag below, for more details.
5473 -allow-undefined)
5475 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5478 -avoid-version)
5483 -bindir)
5488 -dlopen)
5493 -dlpreopen)
5498 -export-dynamic)
5503 -export-symbols | -export-symbols-regex)
5504 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5505 func_fatal_error "more than one -exported-symbols argument is not allowed"
5507 if test "X$arg" = "X-export-symbols"; then
5515 -framework)
5520 -inst-prefix-dir)
5525 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5526 # so, if we see these flags be careful not to treat them like -L
5527 -L[A-Z][A-Z]*:*)
5529 no/*-*-irix* | /*-*-irix*)
5537 -L*)
5538 func_stripname "-L" '' "$arg"
5539 if test -z "$func_stripname_result"; then
5540 if test "$#" -gt 0; then
5541 func_fatal_error "require no space between \`-L' and \`$1'"
5543 func_fatal_error "need path for \`-L' option"
5550 [\\/]* | [A-Za-z]:[\\/]*) ;;
5553 test -z "$absdir" && \
5559 *" -L$dir "* | *" $arg "*)
5565 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5566 *) func_append deplibs " -L$dir" ;;
5572 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5589 -l*)
5590 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5592 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5596 *-*-os2*)
5598 test "X$arg" = "X-lc" && continue
5600 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5602 test "X$arg" = "X-lc" && continue
5604 *-*-rhapsody* | *-*-darwin1.[012])
5609 *-*-sco3.2v5* | *-*-sco5v6*)
5611 test "X$arg" = "X-lc" && continue
5613 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5615 test "X$arg" = "X-lc" && continue
5618 elif test "X$arg" = "X-lc_r"; then
5620 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5621 # Do not include libc_r directly, use -pthread flag.
5630 -module)
5635 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5637 # Darwin uses the -arch flag to determine output architecture.
5638 -model|-arch|-isysroot|--sysroot)
5646 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5657 -multi_module)
5658 single_module="${wl}-multi_module"
5662 -no-fast-install)
5667 -no-install)
5669 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5672 func_warning "\`-no-install' is ignored for $host"
5673 func_warning "assuming \`-no-fast-install' instead"
5681 -no-undefined)
5686 -objectlist)
5691 -o) prev=output ;;
5693 -precious-files-regex)
5698 -release)
5703 -rpath)
5708 -R)
5713 -R*)
5714 func_stripname '-R' '' "$arg"
5718 [\\/]* | [A-Za-z]:[\\/]*) ;;
5724 func_fatal_error "only absolute run-paths are allowed"
5734 -shared)
5735 # The effects of -shared are defined in a previous loop.
5739 -shrext)
5744 -static | -static-libtool-libs)
5745 # The effects of -static are defined in a previous loop.
5746 # We used to do the same as -all-static on platforms that
5753 -thread-safe)
5758 -version-info)
5763 -version-number)
5769 -weak)
5774 -Wc,*)
5775 func_stripname '-Wc,' '' "$arg"
5790 -Wl,*)
5791 func_stripname '-Wl,' '' "$arg"
5807 -Xcompiler)
5812 -Xlinker)
5817 -XCClinker)
5822 # -msg_* for osf cc
5823 -msg_*)
5829 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5830 # -r[0-9][0-9]* specify processor for the SGI compiler
5831 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5832 # +DA*, +DD* enable 64-bit mode for the HP compiler
5833 # -q* compiler args for the IBM compiler
5834 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5835 # -F/path path to uninstalled frameworks, gcc on darwin
5836 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5838 # -tp=* Portland pgcc target processor selection
5839 # --sysroot=* for sysroot support
5840 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5841 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5842 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5843 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5853 -* | +*)
5864 # A libtool-controlled object.
5874 if test -z "$pic_object" ||
5875 test -z "$non_pic_object" ||
5900 # CHECK ME: I think I busted this. -Ossama
5902 # Preload the old-style object.
5912 # Non-PIC object.
5917 # A standard non-PIC object
5919 if test -z "$pic_object" || test "$pic_object" = none ; then
5929 # Only an error if not doing a dry-run.
5954 # A libtool-controlled library.
5958 # This library was specified with -dlopen.
5962 # The library was specified with -dlpreopen.
5981 if test -n "$arg"; then
5987 test -n "$prev" && \
5990 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6002 if test -n "$shlibpath_var"; then
6033 # that are linked more than once (e.g. -la -lb -la)
6065 notinst_deplibs= # not-installed libtool libraries
6066 notinst_path= # paths that contain not-installed libtool libraries
6075 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6094 # so that -L comes before libs that need it for instance...
6120 # Ignore non-libtool-libs
6150 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6165 -l*)
6167 func_warning "\`-l' is ignored for archives/objects"
6170 func_stripname '-l' '' "$deplib"
6181 if test -f "$lib"; then
6234 ;; # -l
6250 -L*)
6256 func_stripname '-L' '' "$deplib"
6271 func_stripname '-L' '' "$deplib"
6276 func_warning "\`-L' is ignored for archives/objects"
6280 ;; # -L
6281 -R*)
6283 func_stripname '-R' '' "$deplib"
6307 # but linking other static libraries is non-portable.
6376 if test "$found" = yes || test -f "$lib"; then :
6405 # Convert "-framework foo" to "foo.ltframework"
6406 if test -n "$inherited_linker_flags"; then
6407 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
6415 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6419 test -n "$dlopen" && func_append dlfiles " $dlopen"
6420 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6426 if test -z "$libdir"; then
6427 if test -z "$old_library"; then
6452 if test -n "$old_library" &&
6461 if test -z "$linklib"; then
6465 # This library was specified with -dlopen.
6467 if test -z "$libdir"; then
6468 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6470 if test -z "$dlname" ||
6486 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6489 if test -z "$abs_ladir"; then
6501 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6512 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6527 # This library was specified with -dlpreopen.
6529 if test -z "$libdir" && test "$linkmode" = prog; then
6530 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6533 # special handling for platforms with PE-DLLs.
6543 if test -n "$dlname"; then
6551 test -z "$libdir" && \
6558 if test -n "$old_library"; then
6562 test -z "$libdir" && \
6565 elif test -n "$dlname"; then
6574 if test -z "$libdir"; then
6593 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6601 -L*) func_stripname '-L' '' "$deplib"
6625 if test -n "$library_names" &&
6628 test -z "$old_library"; }; then
6630 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6639 # Skip directories that are in the system default run-time
6664 test -n "$library_names"; }; }; then
6675 if test -n "$library_names" &&
6676 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6692 # Warn about portability, can't link against -module's on some
6701 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6713 # Skip directories that are in the system default run-time
6735 if test -n "$old_archive_from_expsyms_cmds"; then
6743 if test -n "$dlname"; then
6745 elif test -n "$soname_spec"; then
6749 func_arith $current - $age
6751 versuffix="-$major"
6764 newlib=libimp-$func_stripname_result.a
6767 if test -f "$output_objdir/$soname-def"; then :
6774 if test -f "$output_objdir/$newlib"; then :; else
6781 fi # test -n "$old_archive_from_expsyms_cmds"
6793 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6794 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6795 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6796 *-*-unixware7*) add_dir="-L$dir" ;;
6797 *-*-darwin* )
6798 # if the lib is a (non-dlopened) module then we can not
6800 if /usr/bin/file -L $add 2> /dev/null |
6804 if test -z "$old_library" ; then
6811 elif test -n "$old_library"; then
6818 *-*-sunos*) add_shlibpath="$dir" ;;
6820 add_dir="-L$dir"
6821 add="-l$name"
6824 add="-l$name"
6834 add_dir="-L$dir"
6836 if test -n "$inst_prefix_dir"; then
6839 func_append add_dir " -L$inst_prefix_dir$libdir"
6843 add="-l$name"
6846 add="-l$name"
6858 if test -n "$add_shlibpath"; then
6865 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6866 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6868 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6869 test -n "$add" && deplibs="$add $deplibs"
6890 add_dir="-L$libdir"
6891 add="-l$name"
6897 add="-l$name"
6899 if test -n "$inst_prefix_dir" &&
6900 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6907 add_dir="-L$libdir"
6909 if test -n "$inst_prefix_dir"; then
6912 func_append add_dir " -L$inst_prefix_dir$libdir"
6916 add="-l$name"
6920 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6921 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6923 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6924 test -n "$add" && deplibs="$add $deplibs"
6932 test -n "$old_library" && linklib="$old_library"
6936 compile_deplibs="-l$name -L$dir $compile_deplibs"
6937 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6955 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6956 if test -z "$global_symbol_pipe"; then
6977 if test -n "$dependency_libs" &&
6981 # Extract -R from dependency_libs
6985 -R*) func_stripname '-R' '' "$libdir"
7005 -L*) func_stripname '-L' '' "$deplib"
7023 -L*) path="$deplib" ;;
7031 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7034 if test -z "$absdir"; then
7042 *-*-darwin*)
7044 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7045 if test -n "$deplibrary_names" ; then
7049 if test -f "$absdir/$objdir/$depdepl" ; then
7051 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7052 if test -z "$darwin_install_name"; then
7053 … darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7055 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7056 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7062 path="-L$absdir/$objdir"
7066 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7067 test -z "$libdir" && \
7072 path="-L$absdir"
7089 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7129 -L*) new_libs="$deplib $new_libs" ;;
7130 -R*) ;;
7144 # using -Wl,-lname, so that libtool does not consider it
7161 -L*)
7182 if test -n "$i" ; then
7197 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7198 func_warning "\`-dlopen' is ignored for archives"
7202 *\ -l* | *\ -L*)
7203 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7206 test -n "$rpath" && \
7207 func_warning "\`-rpath' is ignored for archives"
7209 test -n "$xrpath" && \
7210 func_warning "\`-R' is ignored for archives"
7212 test -n "$vinfo" && \
7213 func_warning "\`-version-info/-version-number' is ignored for archives"
7215 test -n "$release" && \
7216 func_warning "\`-release' is ignored for archives"
7218 test -n "$export_symbols$export_symbols_regex" && \
7219 func_warning "\`-export-symbols' is ignored for archives"
7253 if test -n "$objs"; then
7255 …func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$o…
7258 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7265 func_warning "\`-dlopen self' is ignored for libtool libraries"
7269 test "$#" -gt 1 && \
7270 func_warning "ignoring multiple \`-rpath's for a libtool library"
7275 if test -z "$rpath"; then
7286 test -n "$vinfo" && \
7287 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7289 test -n "$release" && \
7290 func_warning "\`-release' is ignored for convenience libraries"
7299 test -n "$7" && \
7300 func_fatal_help "too many parameters to \`-version-info'"
7312 # There are really only two kinds -- those that
7325 freebsd-aout|freebsd-elf|qnx|sunos)
7348 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7356 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7364 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7371 if test "$age" -gt "$current"; then
7386 func_arith $current - $age
7392 …xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_cu…
7393 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7396 freebsd-aout)
7401 freebsd-elf)
7408 func_arith $current - $age
7410 func_arith $current - $age + 1
7422 while test "$loop" -ne 0; do
7423 func_arith $revision - $loop
7425 func_arith $loop - 1
7436 func_arith $current - $age
7442 func_arith $current - $age
7449 while test "$loop" -ne 0; do
7450 func_arith $current - $loop
7452 func_arith $loop - 1
7472 # Use '-' rather than '.', since we only want one
7474 func_arith $current - $age
7476 versuffix="-$major"
7485 if test -z "$vinfo" && test -n "$release"; then
7540 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7550 test -n "$removelist" && \
7565 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7566 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7569 if test -n "$xrpath"; then
7574 func_append temp_xrpath " -R$func_replace_sysroot_result"
7606 if test -n "$rpath"; then
7608 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7611 *-*-rhapsody* | *-*-darwin1.[012])
7615 *-*-netbsd*)
7618 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7621 *-*-sco3.2v5* | *-*-sco5v6*)
7624 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7630 func_append deplibs " -lc"
7643 # release should show up in the -l (ie -lgmp5) so we don't want to
7669 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7673 -l*)
7674 func_stripname -l '' "$i"
7684 if test -n "$i" ; then
7689 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7713 -l*)
7714 func_stripname -l '' "$i"
7717 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7727 if test -n "$i" ; then
7732 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7766 -l*)
7767 func_stripname -l '' "$a_deplib"
7777 if test -n "$a_deplib" ; then
7779 if test -n "$file_magic_glob"; then
7780 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7784 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7787 shopt -s nocaseglob
7788 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7791 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7795 if ls -lLd "$potent_lib" 2>/dev/null |
7796 $GREP " -> " >/dev/null; then
7805 while test -h "$potlib" 2>/dev/null; do
7806 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7808 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7813 $SED -e 10q |
7822 if test -n "$a_deplib" ; then
7830 if test -z "$potlib" ; then
7839 # Add a -L argument.
7850 -l*)
7851 func_stripname -l '' "$a_deplib"
7861 if test -n "$a_deplib" ; then
7864 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7866 potlib="$potent_lib" # see symlink-check above in file_magic test
7876 if test -n "$a_deplib" ; then
7884 if test -z "$potlib" ; then
7893 # Add a -L argument.
7901 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7912 echo "*** Warning: inter-library dependencies are not supported in this platform."
7914 echo "*** Warning: inter-library dependencies are not known to be supported."
7916 echo "*** All declared inter-library dependencies are being dropped."
7929 *-*-rhapsody* | *-*-darwin1.[012])
7931 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7938 echo "*** Warning: libtool could not satisfy all declared inter-library"
7941 echo "*** application is linked with the -dlopen flag."
7942 if test -z "$global_symbol_pipe"; then
7957 echo "*** The inter-library dependencies that have been dropped here will be"
7959 echo "*** or is declared to -dlopen it."
7965 echo "*** it was explicitly requested with -no-undefined,"
7980 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7982 *-*-darwin*)
7983 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7984 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7985 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7994 *" -L$path/$objdir "*) ;;
7997 *" -L$path/$objdir "*)
7998 func_append new_libs " -L$path/$objdir" ;;
8005 -L*)
8016 # All the library-specific variables (install_libdir is set above).
8030 if test -n "$hardcode_libdir_flag_spec"; then
8031 if test -n "$hardcode_libdir_separator"; then
8034 if test -z "$hardcode_libdirs"; then
8050 elif test -n "$runpath_var"; then
8058 if test -n "$hardcode_libdir_separator" &&
8059 test -n "$hardcode_libdirs"; then
8061 if test -n "$hardcode_libdir_flag_spec_ld"; then
8067 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8075 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8080 if test -n "$shlibpath"; then
8092 if test -n "$soname_spec"; then
8097 if test -z "$dlname"; then
8109 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8113 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8122 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8140 if test -z "$export_symbols"; then
8141 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8163 && { test "$len" -lt "$max_cmd_len" \
8164 || test "$max_cmd_len" -le -1; }
8168 elif test -n "$nm_file_list_spec"; then
8197 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8198 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8204 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8206 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8210 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8218 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8221 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8235 if test -n "$convenience"; then
8236 if test -n "$whole_archive_flag_spec" &&
8238 test -z "$libobjs"; then
8243 if test -n "$whole_archive_flag_spec"; then
8257 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8268 if test "$module" = yes && test -n "$module_cmds" ; then
8269 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8277 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8289 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8304 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8319 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8332 …elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; t…
8352 if test -n "$save_libobjs"; then
8354 output=$output_objdir/$output_la-${k}.$objext
8367 test "$len" -lt "$max_cmd_len"; then
8372 if test "$k" -eq 1 ; then
8382 last_robj=$output_objdir/$output_la-${k}.$objext
8385 output=$output_objdir/$output_la-${k}.$objext
8395 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8398 if test -n "$last_robj"; then
8407 if ${skipped_export-false}; then
8413 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8415 if test -n "$last_robj"; then
8420 test -n "$save_libobjs" &&
8446 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8447 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8452 if ${skipped_export-false}; then
8453 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8455 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8459 if test -n "$orig_export_symbols"; then
8467 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8470 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8478 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8486 if test "$module" = yes && test -n "$module_cmds" ; then
8487 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8493 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8501 if test -n "$delfiles"; then
8507 if test -n "$dlprefiles"; then
8543 if test -n "$convenience"; then
8544 if test -z "$whole_archive_flag_spec"; then
8559 # If -module or -export-dynamic was specified, set the dlname.
8568 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8569 func_warning "\`-dlopen' is ignored for objects"
8573 *\ -l* | *\ -L*)
8574 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8577 test -n "$rpath" && \
8578 func_warning "\`-rpath' is ignored for objects"
8580 test -n "$xrpath" && \
8581 func_warning "\`-R' is ignored for objects"
8583 test -n "$vinfo" && \
8584 func_warning "\`-version-info' is ignored for objects"
8586 test -n "$release" && \
8587 func_warning "\`-release' is ignored for objects"
8591 test -n "$objs$old_deplibs" && \
8592 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8608 # single-version convenience libraries. Whenever we create
8609 # different ones for PIC/non-PIC, this we'll have to duplicate
8614 # -Wl from whole_archive_flag_spec and hope we can get by with
8618 if test -n "$convenience"; then
8619 if test -n "$whole_archive_flag_spec"; then
8634 # Create the old-style object.
8641 if test -z "$libobj"; then
8642 if test -n "$gentop"; then
8650 if test -n "$gentop"; then
8661 if test -n "$pic_flag" || test "$pic_mode" != default; then
8668 if test -n "$gentop"; then
8680 test -n "$vinfo" && \
8681 func_warning "\`-version-info' is ignored for programs"
8683 test -n "$release" && \
8684 func_warning "\`-release' is ignored for programs"
8693 *-*-rhapsody* | *-*-darwin1.[012])
8695 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8696 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8701 *-*-darwin*)
8705 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8707 func_append compile_command " ${wl}-bind_at_load"
8708 func_append finalize_command " ${wl}-bind_at_load"
8712 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8713 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8714 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8724 *" -L$path/$objdir "*) ;;
8727 *" -L$path/$objdir "*)
8728 func_append new_libs " -L$path/$objdir" ;;
8735 -L*)
8750 if test -n "$rpath$xrpath"; then
8753 # This is the magic to use -rpath.
8765 if test -n "$hardcode_libdir_flag_spec"; then
8766 if test -n "$hardcode_libdir_separator"; then
8767 if test -z "$hardcode_libdirs"; then
8783 elif test -n "$runpath_var"; then
8790 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8791 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8806 if test -n "$hardcode_libdir_separator" &&
8807 test -n "$hardcode_libdirs"; then
8816 if test -n "$hardcode_libdir_flag_spec"; then
8817 if test -n "$hardcode_libdir_separator"; then
8818 if test -z "$hardcode_libdirs"; then
8834 elif test -n "$runpath_var"; then
8842 if test -n "$hardcode_libdir_separator" &&
8843 test -n "$hardcode_libdirs"; then
8849 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8858 if test -n "$prelink_cmds"; then
8888 if test -n "$postlink_cmds"; then
8890 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8895 if test -f "$output_objdir/${outputname}S.${objext}"; then
8902 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8905 if test -n "$finalize_shlibpath"; then
8911 if test -n "$runpath_var"; then
8912 if test -n "$perm_rpath"; then
8920 if test -n "$finalize_perm_rpath"; then
8940 if test -n "$postlink_cmds"; then
8942 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8975 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
8979 if test -n "$postlink_cmds"; then
8981 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
8989 if test -n "$relink_command"; then
8992 if eval test -z \"\${$var+set}\"; then
8993 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
8994 elif eval var_value=\$$var; test -z "$var_value"; then
9026 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9034 # because it contains $host paths and files. If cross-
9038 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9049 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9068 # See if we need to build an old-fashioned archive.
9081 if test "$preload" = yes && test -f "$symfileobj"; then
9088 if test -n "$addlibs"; then
9097 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9102 if test -n "$dlprefiles"; then
9120 done | sort | sort -uc >/dev/null 2>&1); then
9140 newobj=lt$counter-$objbase
9145 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9159 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9161 elif test -n "$archiver_list_spec"; then
9195 if test "$len" -lt "$max_cmd_len"; then
9203 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9221 test -n "$generated" && \
9233 if eval test -z \"\${$var+set}\"; then
9234 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9235 elif eval var_value=\$$var; test -z "$var_value"; then
9243 …relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefi…
9253 if test -z "$install_libdir"; then
9264 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9265 test -z "$libdir" && \
9269 -L*)
9270 func_stripname -L '' "$deplib"
9272 func_append newdependency_libs " -L$func_replace_sysroot_result"
9274 -R*)
9275 func_stripname -R '' "$deplib"
9277 func_append newdependency_libs " -R$func_replace_sysroot_result"
9290 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9291 test -z "$libdir" && \
9303 # Only pass preopened files to the pseudo-archive (for
9309 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9310 test -z "$libdir" && \
9321 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9330 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9340 # systems that can't hard-code library paths into their executables
9343 # libtool variables, so we have to hard-code the OSs to which it
9350 # If a -bindir argument was supplied, place the dll there.
9362 # $outputname - a libtool library file
9394 # Should we warn about portability when linking against -modules?
9438 -f) func_append RM " $arg"; rmforce=yes ;;
9439 -*) func_append RM " $arg" ;;
9444 test -z "$RM" && \
9469 # Don't error if the file doesn't exist and rm -f was used.
9470 if { test -L "$file"; } >/dev/null 2>&1 ||
9471 { test -h "$file"; } >/dev/null 2>&1 ||
9472 test -f "$file"; then
9474 elif test -d "$file"; then
9493 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9499 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9501 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9504 if test -n "$library_names"; then
9509 if test -n "$old_library"; then
9527 if test -n "$pic_object" &&
9532 # Add non-PIC object to the list of files to remove.
9533 if test -n "$non_pic_object" &&
9569 if test "$fast_install" = yes && test -n "$relink_command"; then
9570 func_append rmfiles " $odir/lt-$name"
9573 func_append rmfiles " $odir/lt-${noexename}.c"
9584 if test -d "$dir"; then
9595 test -z "$opt_mode" && {
9600 test -z "$exec_cmd" && \
9603 if test -n "$exec_cmd"; then
9618 # time on that platform, so we default to a shared-only configuration.
9619 # If a disable-shared tag is given, we'll fallback to a static-only
9620 # configuration. But we'll never go from static-only to shared-only.
9622 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9625 # ### END LIBTOOL TAG CONFIG: disable-shared
9627 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9629 # ### END LIBTOOL TAG CONFIG: disable-static
9632 # mode:shell-script
9633 # sh-indentation:2