Lines Matching +full:fails +full:- +full:without +full:- +full:test +full:- +full:cd

2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2014-01-03.01
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
24 # WITHOUT ANY WARRANTY; without even the implied warranty of
38 ## ------ ##
40 ## ------ ##
42 # Run './libtool --help' for help with using this script from the
46 ## ------------------------------- ##
48 ## ------------------------------- ##
52 # with bootstrap, so set those here where they can still be over-
59 ## -------------------------- ##
61 ## -------------------------- ##
63 # Much of our low-level functionality needs to be sourced from external
67 scriptversion=2015-10-04.22; # UTC
72 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
87 # but WITHOUT ANY WARRANTY; without even the implied warranty of
97 ## ------ ##
99 ## ------ ##
104 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
110 ## -------------------- ##
112 ## -------------------- ##
118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
123 alias -g '${1+"$@"}'='"$@"'
126 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
134 eval "if test set = \"\${$_G_var+set}\"; then
153 if test "${PATH_SEPARATOR+set}" != set; then
155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
163 ## ------------------------- ##
165 ## ------------------------- ##
169 # ----------------------
173 test -f "$1" && test -x "$1"
178 # --------------------------------------------
179 # Search for either a program that responds to --version with output
191 _G_PATH=${3-"$PATH"}
195 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
198 test -z "$_G_dir" && _G_dir=.
203 case `"$_G_path_prog" --version 2>&1` in
214 test -z "$func_path_progs_result" && {
223 # to search for them ourselves - except when the results are already set
228 test -z "$SED" && {
248 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
251 if test "$_G_count" -gt "$_G_path_prog_max"; then
257 test 10 -lt "$_G_count" && break
259 rm -f conftest.in conftest.tmp conftest.nl conftest.out
263 rm -f conftest.sed
270 test -z "$GREP" && {
284 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
287 if test "$_G_count" -gt "$_G_path_prog_max"; then
293 test 10 -lt "$_G_count" && break
295 rm -f conftest.in conftest.tmp conftest.nl conftest.out
303 ## ------------------------------- ##
305 ## ------------------------------- ##
312 : ${CP="cp -f"}
314 : ${EGREP="$GREP -E"}
315 : ${FGREP="$GREP -F"}
316 : ${LN_S="ln -s"}
319 : ${MV="mv -f"}
320 : ${RM="rm -f"}
321 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
324 ## -------------------- ##
326 ## -------------------- ##
332 # metacharacters that are still active within double-quoted strings.
347 # Re-'\' parameter expansions in output of sed_double_quote_subst that
348 # were '\'-ed in input to the same. If an odd number of '\' preceded a
364 ## ----------------- ##
366 ## ----------------- ##
384 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
390 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
391 debug_cmd=${debug_cmd-":"}
398 # so that you can set exit_status to non-zero if you want to indicate
399 # something went wrong during execution without actually bailing out at
415 [\\/]*|[A-Za-z]:\\*) ;;
418 progdir=`cd "$progdir" && pwd`
423 IFS=${PATH_SEPARATOR-:}
426 test -x "$progdir/$progname" && break
429 test -n "$progdir" || progdir=`pwd`
435 ## ----------------- ##
437 ## ----------------- ##
440 # below, and should be set appropriately depending on run-time para-
463 ## -------------------- ##
465 ## -------------------- ##
468 # particular resource (a file, or a non-empty configuration variable for
480 # -------------------
487 test -t 1 && {
491 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
493 if test 1 = "$USE_ANSI_COLORS"; then
501 test -n "`tput sgr0 2>/dev/null`" && {
503 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
505 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
506 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
507 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
508 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
509 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
518 ## ----------------- ##
520 ## ----------------- ##
529 # ---------------------
535 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
550 test -z "$_G_HAVE_PLUSEQ_OP" \
551 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
554 if test yes = "$_G_HAVE_PLUSEQ_OP"
575 # ----------------------------
578 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
598 # --------------------------
602 # func_append_uniq options " --another-option option-argument"
604 # will only append to $options if " --another-option option-argument "
622 # ------------------
624 test -z "$_G_HAVE_ARITH_OP" \
625 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
628 if test yes = "$_G_HAVE_ARITH_OP"; then
646 # ------------------
649 if test yes = "$_G_HAVE_XSI_OPS"; then
663 if test "X$func_dirname_result" = "X$1"; then
679 # -------------------------------------------
691 # --------------------------------------------------------
712 # ----------------
731 # --------------------
732 # Invoke $ECHO with all args, space-separated.
740 # ------------------------------
757 test -n "$_G_tc" && {
776 # -----------------
789 # -----------------------
801 # -----------------------------
802 # Check whether EXPRESSION matches any line of FILENAME, without output.
812 # ---------------
815 test -z "$_G_HAVE_XSI_OPS" \
817 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
820 if test yes = "$_G_HAVE_XSI_OPS"; then
837 # func_mkdir_p DIRECTORY-PATH
838 # ---------------------------
839 # Make sure the entire path to DIRECTORY-PATH is available.
847 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
849 # Protect directory names starting with '-'
851 -*) _G_directory_path=./$_G_directory_path ;;
855 while test ! -d "$_G_directory_path"; do
864 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
879 test -d "$_G_directory_path" || \
886 # -------------------------
894 _G_template=${TMPDIR-/tmp}/${1-$progname}
896 if test : = "$opt_dry_run"; then
897 # Return a directory name, but don't create it in dry-run mode
898 _G_tmpdir=$_G_template-$$
902 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
904 if test ! -d "$_G_tmpdir"; then
906 _G_tmpdir=$_G_template-${RANDOM-0}$$
914 # If we're not in dry-run mode, bomb out on failure
915 test -d "$_G_tmpdir" || \
924 # ------------------------
925 # Remove doubled-up and trailing slashes, "." path components,
954 # two leading slashes without using negated character classes;
955 # we take advantage of case's first-match behaviour.
978 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
981 if test / = "$func_normal_abspath_tpath"; then
983 if test -z "$func_normal_abspath_result"; then
989 -e "$_G_pathcar"`
991 -e "$_G_pathcdr"`
1008 # Restore leading double-slash if one was found on entry.
1014 # --------------------
1023 # fails when set -e is in force, so we need another command to
1030 # --------------------------------
1055 if test -z "$func_relative_path_result"; then
1063 if test -z "$func_relative_path_tlibdir"; then
1074 # Now calculate path; take care to avoid doubling-up slashes.
1078 if test -n "$func_stripname_result"; then
1083 if test -n "$func_relative_path_result"; then
1088 test -n "$func_relative_path_result" || func_relative_path_result=.
1095 # --------------
1146 # --------------------------
1150 # double-quoted, suitable for a subsequent eval
1160 while test 0 -lt $#; do
1163 if test -n "$func_quote_for_eval_unquoted_result"; then
1170 # Double-quote args containing shell metacharacters to delay
1183 if test -n "$func_quote_for_eval_result"; then
1194 # -------------------------
1204 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1210 # Double-quote args containing shell metacharacters to delay
1224 # ---------------------------------
1229 if test yes = "$_G_HAVE_XSI_OPS"; then
1246 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1247 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1254 # -----------------------------
1256 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1263 _G_fail_exp=${2-':'}
1271 if test 0 -ne "$_G_status"; then
1279 # ------------------------------------
1281 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1288 _G_fail_exp=${2-':'}
1300 if test 0 -ne "$_G_status"; then
1308 # ----------
1311 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1318 [0-9]* | *[!a-zA-Z0-9_]*)
1319 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1329 # -------------------
1342 # -----------------------------
1355 # ----------------------------
1380 # -----------------------
1381 # 'sort -V' is not generally available.
1383 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1393 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1397 # ---------------------
1406 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1411 # mode: shell-script
1412 # sh-indentation: 2
1413 # eval: (add-hook 'before-save-hook 'time-stamp)
1414 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1415 # time-stamp-time-zone: "UTC"
1420 scriptversion=2014-01-07.03; # UTC
1425 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1435 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1445 ## ------ ##
1447 ## ------ ##
1457 # . relative/path/to/options-parser
1463 # In order for the '--version' option to work, you will need to have a
1467 # For '-h' and '--help' to work, you will also need a one line
1471 # The default options also support '--debug', which will turn on shell
1473 # use), and '--verbose' and the func_verbose function to allow your script
1475 # '--verbose'.
1482 ## -------------- ##
1484 ## -------------- ##
1490 # The usage line for option parsing errors and the start of '-h' and
1491 # '--help' output messages. You can embed shell variables for delayed
1493 # quote other shell meta-characters carefully to prevent them being
1497 # Short help message in response to '-h' and '--help'. Add to this or
1501 --debug enable verbose shell tracing
1502 -W, --warnings=CATEGORY
1504 -v, --verbose verbosely report processing
1505 --version print version information and exit
1506 -h, --help print short or long help message and exit
1509 # Additional text appended to 'usage_message' in response to '--help'.
1517 fatal_help="Try '\$progname --help' for more information."
1521 ## ------------------------- ##
1523 ## ------------------------- ##
1530 # -----------------------
1542 # ---------------------------------
1559 # ------------------------------------
1570 # ---------------------------------
1573 # than a whitespace-delimited list of legal shell function names, and
1574 # no effort is wasted trying to catch shell meta-characters or preserve
1602 ## --------------- ##
1604 ## --------------- ##
1618 # -s, --silent don'\''t print informational messages
1634 # while test $# -gt 0; do
1637 # --silent|-s) opt_silent=: ;;
1638 # # Separate non-argument short options:
1639 # -s*) func_split_short_opt "$_G_opt"
1641 # "-$func_split_short_opt_arg" ${1+"$@"}
1659 # '--silent' and '--verbose' options are mutually exclusive."
1672 # ---------------------
1695 # --------------------------
1719 # ---------------------------
1729 while test $# -gt 0; do
1738 test $# -gt 0 || break
1743 --debug|-x) debug_cmd='set -x'
1748 --no-warnings|--no-warning|--no-warn)
1749 set dummy --warnings none ${1+"$@"}
1753 --warnings|--warning|-W)
1754 test $# = 0 && func_missing_arg $_G_opt && break
1779 --verbose|-v) opt_verbose=: ;;
1780 --version) func_version ;;
1781 -\?|-h) func_usage ;;
1782 --help) func_help ;;
1785 --*=*) func_split_equals "$_G_opt"
1792 -W*)
1799 # Separate non-argument short options:
1800 -\?*|-h*|-v*|-x*)
1803 "-$func_split_short_opt_arg" ${1+"$@"}
1807 --) break ;;
1808 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1820 # ------------------------------
1828 # Display all warnings if -W was not given.
1829 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1842 ## ----------------- ##
1844 ## ----------------- ##
1847 # hookable option parser framework in ascii-betical order.
1851 # ----------------------
1866 # ---------
1879 # ------------------------
1892 # ------------------------
1895 test -z "$_G_HAVE_XSI_OPS" \
1897 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1900 if test yes = "$_G_HAVE_XSI_OPS"
1909 test "x$func_split_equals_lhs" = "x$1" \
1920 test "x$func_split_equals_lhs" = "x$1" \
1927 # -----------------------------
1930 if test yes = "$_G_HAVE_XSI_OPS"
1946 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1947 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1953 # ----------
1960 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1966 # ------------------
1974 $SED -n 's|^# ||
1986 # ------------
1993 $SED -n '
2005 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2019 # mode: shell-script
2020 # sh-indentation: 2
2021 # eval: (add-hook 'before-save-hook 'time-stamp)
2022 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2023 # time-stamp-time-zone: "UTC"
2031 # ----------------
2051 # -------------------
2062 ## ---------------- ##
2064 ## ---------------- ##
2069 usage='$progpath [OPTION]... [MODE-ARG]...'
2071 # Short help message in response to '-h'.
2073 --config show all configuration variables
2074 --debug enable verbose shell tracing
2075 -n, --dry-run display commands without modifying any files
2076 --features display basic configuration information and exit
2077 --mode=MODE use operation mode MODE
2078 --no-warnings equivalent to '-Wnone'
2079 --preserve-dup-deps don't remove duplicate dependency libraries
2080 --quiet, --silent don't print informational messages
2081 --tag=TAG use configuration variables from tag TAG
2082 -v, --verbose print more informational messages than default
2083 --version print version information
2084 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2085 -h, --help, --help-all print short, long, or detailed help message
2088 # Additional text appended to 'usage_message' in response to '--help'.
2106 MODE-ARGS vary depending on the MODE. When passed as first option,
2107 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2108 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2110 When reporting a bug, please describe a test case to reproduce it and
2113 host-triplet: $host
2119 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2120 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2122 Report bugs to <bug-libtool@gnu.org>.
2129 # func_lo2o OBJECT-NAME
2130 # ---------------------
2131 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2137 if test yes = "$_G_HAVE_XSI_OPS"; then
2146 # func_xform LIBOBJ-OR-SOURCE
2147 # ---------------------------
2148 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2149 # suffix to a '.lo' libtool-object suffix.
2169 # -------------------------------
2181 # -----------
2193 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2201 # -------------
2206 if test yes = "$build_libtool_libs"; then
2211 if test yes = "$build_old_libs"; then
2222 # -----------------------
2237 *[!-_A-Za-z0-9,/]*)
2242 # Don't test for the "default" C tag, as we know it's
2252 # also don't use non-portable quotes within backquotes within
2254 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2265 # ------------------------
2270 if test "$package_revision" != "$macro_revision"; then
2271 if test "$VERSION" != "$macro_version"; then
2272 if test -z "$macro_version"; then
2302 # -----------------------------
2320 # Shorthand for --mode=foo, only valid as the first argument
2323 shift; set dummy --mode clean ${1+"$@"}; shift
2326 shift; set dummy --mode compile ${1+"$@"}; shift
2329 shift; set dummy --mode execute ${1+"$@"}; shift
2332 shift; set dummy --mode finish ${1+"$@"}; shift
2335 shift; set dummy --mode install ${1+"$@"}; shift
2338 shift; set dummy --mode link ${1+"$@"}; shift
2341 shift; set dummy --mode uninstall ${1+"$@"}; shift
2353 # ---------------------------------
2361 while test $# -gt 0; do
2365 --dry-run|--dryrun|-n)
2369 --config) func_config ;;
2371 --dlopen|-dlopen)
2377 --preserve-dup-deps)
2380 --features) func_features ;;
2382 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2384 --help) opt_help=: ;;
2386 --help-all) opt_help=': help-all' ;;
2388 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2403 --no-silent|--no-quiet)
2408 --no-warnings|--no-warning|--no-warn)
2413 --no-verbose)
2418 --silent|--quiet)
2424 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2431 --verbose|-v) opt_quiet=false
2451 # ---------------------------------
2456 # save first non-option argument
2457 if test 0 -lt $#; then
2462 # preserve --debug
2463 test : = "$debug_cmd" || func_append preserve_args " --debug"
2481 test yes != "$build_libtool_libs" \
2482 && test yes != "$build_old_libs" \
2488 # Only execute mode is allowed to have -dlopen flags.
2489 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2490 func_error "unrecognized option '-dlopen'"
2495 # Change the help message to a mode-specific one.
2497 help="Try '$progname --help --mode=$opt_mode' for more information."
2507 # Process options as early as possible so that --help and --version
2514 ## ----------- ##
2516 ## ----------- ##
2526 # will be execed at the end. This prevents here-documents from being
2553 test -f "$1" &&
2554 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2559 # This function implements the same check as func_lalib_p without
2561 # closes it afterwards, without saving the original file descriptor.
2567 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2575 exec 0<&5 5<&-
2577 test yes = "$lalib_p"
2586 test -f "$1" &&
2626 # Execute tilde-delimited COMMANDS.
2628 # FAIL_CMD may read-access the current command in variable CMD!
2638 func_show_eval "$cmd" "${2-:}"
2647 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2694 # if one wasn't chosen via the "--tag" command line option.
2702 if test -n "$available_tags" && test -z "$tagname"; then
2720 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2723 # Double-quote args containing other shell metacharacters.
2741 # was found and let the user know that the "--tag" command
2743 if test -z "$tagname"; then
2745 func_fatal_error "specify a tag with '--tag'"
2762 if test yes = "$build_libtool_libs"; then
2768 if test yes = "$build_old_libs"; then
2776 # $write_libobj - a libtool object file
2785 # Name of the non-PIC object
2812 if test -n "$1"; then
2813 # Unfortunately, winepath does not exit with a non-zero error code, so we
2817 # zero AND non-empty stdout, which explains the odd construction:
2818 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2819 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2821 $SED -e "$sed_naive_backslashify"`
2846 if test -n "$1"; then
2852 if test -n "$func_convert_core_file_wine_to_w32_result"; then
2853 if test -z "$func_convert_core_path_wine_to_w32_result"; then
2885 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
2887 if test "$?" -ne 0; then
2893 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
2908 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
2921 if test -z "$2" && test -n "$1"; then
2940 if test -z "$4" && test -n "$3"; then
2946 if test "x$1" != "x$2"; then
2949 $SED -e "$lt_replace_pathsep_chars"`
3037 if test -n "$1"; then
3054 if test -n "$1"; then
3057 func_to_host_file_result=`cygpath -m "$1"`
3072 if test -n "$1"; then
3089 if test -n "$1"; then
3091 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3108 if test -n "$1"; then
3111 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3148 if test -z "$to_host_path_cmd"; then
3186 if test -n "$1"; then
3210 if test -n "$1"; then
3214 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3231 if test -n "$1"; then
3253 if test -n "$1"; then
3258 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3277 if test -n "$1"; then
3284 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3301 func_dll_def_p_tmp=`$SED -n \
3302 -e 's/^[ ]*//' \
3303 -e '/^\(;.*\)*$/d' \
3304 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3305 -e q \
3307 test DEF = "$func_dll_def_p_tmp"
3318 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3342 # Accept any command-line options.
3344 -o)
3345 test -n "$libobj" && \
3346 func_fatal_error "you cannot specify '-o' more than once"
3351 -pie | -fpie | -fPIE)
3356 -shared | -static | -prefer-pic | -prefer-non-pic)
3361 -no-suppress)
3366 -Xcompiler)
3371 -Wc,*)
3372 func_stripname '-Wc,' '' "$arg"
3406 func_fatal_error "you must specify an argument for -Xcompile"
3409 func_fatal_error "you must specify a target with '-o'"
3413 test -z "$libobj" && {
3421 # If the user specifies -o file.o, it is replaced with file.lo
3443 -shared)
3444 test yes = "$build_libtool_libs" \
3450 -static)
3456 -prefer-pic)
3461 -prefer-non-pic)
3469 test "X$libobj" != "X$func_quote_for_eval_result" \
3477 test -z "$base_compile" && \
3481 if test yes = "$build_old_libs"; then
3493 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
3494 # non-PIC code in shared libraries is not supported
3499 # not support -o with -c
3500 if test no = "$compiler_c_o"; then
3511 if test yes = "$need_locks"; then
3516 elif test warn = "$need_locks"; then
3517 if test -f "$lockfile"; then
3524 your compiler does not support '-c' and '-o' together. If you
3526 avoid parallel builds (make -j) in this platform, or get a better
3546 if test yes = "$build_libtool_libs"; then
3547 # Without this assignment, base_compile gets emptied.
3550 if test no != "$pic_mode"; then
3559 if test -z "$output_obj"; then
3561 func_append command " -o $lobj"
3565 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3567 if test warn = "$need_locks" &&
3568 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3578 your compiler does not support '-c' and '-o' together. If you
3580 avoid parallel builds (make -j) in this platform, or get a better
3588 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3594 if test yes = "$suppress_opt"; then
3599 # Only build a position-dependent object if we build old libraries.
3600 if test yes = "$build_old_libs"; then
3601 if test yes != "$pic_mode"; then
3607 if test yes = "$compiler_c_o"; then
3608 func_append command " -o $obj"
3616 if test warn = "$need_locks" &&
3617 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3627 your compiler does not support '-c' and '-o' together. If you
3629 avoid parallel builds (make -j) in this platform, or get a better
3637 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3647 if test no != "$need_locks"; then
3657 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
3672 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3677 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3686 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3692 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3693 -no-suppress do not suppress compiler output for multiple passes
3694 -prefer-pic try to build PIC objects only
3695 -prefer-non-pic try to build non-PIC objects only
3696 -shared do not build a '.o' file suitable for static linking
3697 -static only build a '.o' file suitable for static linking
3698 -Wc,FLAG pass FLAG directly to the compiler
3700 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3710 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3716 -dlopen FILE add the directory containing FILE to the library path
3718 This mode sets the library path environment variable according to '-dlopen'
3730 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3737 the '--dry-run' option if you just want to see what would be executed."
3742 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3746 INSTALL-COMMAND is the installation command. The first component should be
3749 The following components of INSTALL-COMMAND are treated specially:
3751 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3754 BSD-compatible install options are recognized)."
3759 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3764 LINK-COMMAND is a command using the C compiler that you would use to create
3767 The following components of LINK-COMMAND are treated specially:
3769 -all-static do not do any dynamic linking at all
3770 -avoid-version do not add a version suffix if possible
3771 -bindir BINDIR specify path to binaries directory (for systems where
3773 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3774 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3775 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3776 -export-symbols SYMFILE
3778 -export-symbols-regex REGEX
3780 -LLIBDIR search LIBDIR for required installed libraries
3781 -lNAME OUTPUT-FILE requires the installed library libNAME
3782 -module build a library that can dlopened
3783 -no-fast-install disable the fast-install mode
3784 -no-install link a not-installable executable
3785 -no-undefined declare that a library does not refer to external symbols
3786 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3787 -objectlist FILE use a list of object files found in FILE to specify objects
3788 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3789 -precious-files-regex REGEX
3791 -release RELEASE specify package release information
3792 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3793 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3794 -shared only do dynamic linking of libtool libraries
3795 -shrext SUFFIX override the standard shared library file extension
3796 -static do not do any dynamic linking of uninstalled libtool libraries
3797 -static-libtool-libs
3799 -version-info CURRENT[:REVISION[:AGE]]
3801 -weak LIBNAME declare that the target provides the LIBNAME interface
3802 -Wc,FLAG
3803 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3804 -Wl,FLAG
3805 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3806 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3808 All other options (arguments beginning with '-') are ignored.
3814 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3815 only library objects ('.lo' files) may be specified, and '-rpath' is
3818 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3821 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3827 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3832 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3845 $ECHO "Try '$progname --help' for more information about other modes."
3848 # Now that we've collected a possible --mode arg, show help if necessary
3850 if test : = "$opt_help"; then
3858 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
3874 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
3887 test -z "$cmd" && \
3890 # Handle -dlopen flags immediately.
3892 test -f "$file" \
3911 if test -z "$dlname"; then
3913 test -n "$library_names" && \
3914 func_warning "'$file' was not linked with '-export-dynamic'"
3921 if test -f "$dir/$objdir/$dlname"; then
3924 if test ! -f "$dir/$dlname"; then
3937 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
3943 absdir=`cd "$dir" && pwd`
3944 test -n "$absdir" && dir=$absdir
3947 if eval "test -z \"\$$shlibpath_var\""; then
3963 -* | *.la | *.lo ) ;;
3965 # Do a test to see if this is really a libtool program.
3984 if test -n "$shlibpath_var"; then
3991 if test -n "$shlibpath_var"; then
3999 eval "if test \"\${save_$lt_var+set}\" = set; then
4011 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
4025 if test -d "$opt"; then
4028 elif test -f "$opt"; then
4040 if test -n "$libs"; then
4041 if test -n "$lt_sysroot"; then
4056 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4057 > $tmpdir/tmp-la
4058 mv -f $tmpdir/tmp-la $lib
4064 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4066 if test -n "$finish_cmds"; then
4071 if test -n "$finish_eval"; then
4083 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4084 echo "----------------------------------------------------------------------"
4092 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4094 if test -n "$shlibpath_var"; then
4095 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4098 if test -n "$runpath_var"; then
4099 echo " - add LIBDIR to the '$runpath_var' environment variable"
4102 if test -n "$hardcode_libdir_flag_spec"; then
4106 $ECHO " - use the '$flag' linker flag"
4108 if test -n "$admincmds"; then
4109 $ECHO " - have your system administrator run these commands:$admincmds"
4111 if test -f /etc/ld.so.conf; then
4112 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4118 solaris2.[6789]|solaris2.1[0-9])
4126 echo "----------------------------------------------------------------------"
4131 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
4141 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
4177 if test -n "$dest"; then
4184 -d) isdir=: ;;
4185 -f)
4190 -g | -m | -o)
4193 -s)
4194 stripme=" -s"
4197 -*)
4201 if test -n "$prev"; then
4202 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4217 if test -n "$arg2"; then
4223 test -z "$install_prog" && \
4226 test -n "$prev" && \
4229 if test -n "$install_override_mode" && $no_mode; then
4232 func_append install_shared_prog " -m $func_quote_for_eval_result"
4236 if test -z "$files"; then
4237 if test -z "$dest"; then
4249 test -d "$dest" && isdir=:
4260 test "$#" -gt 1 && \
4264 [\\/]* | [A-Za-z]:[\\/]*) ;;
4307 if test "X$destdir" = "X$libdir"; then
4324 if test -n "$relink_command"; then
4326 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4334 test "$inst_prefix_dir" = "$destdir" && \
4337 if test -n "$inst_prefix_dir"; then
4339 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4351 if test -n "$1"; then
4356 test -n "$relink_command" && srcname=${realname}T
4378 if test -n "$tstripme" && test -n "$striplib"; then
4382 if test "$#" -gt 0; then
4384 # Try 'ln -sf' first, because the 'ln' binary might depend on
4385 # the symlink we replace! Solaris /bin/ln does not understand -f,
4386 # so we also need to try rm && ln -s.
4389 test "$linkname" != "$realname" \
4390 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4399 # Install the pseudo-library for information purposes.
4406 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4413 if test -n "$destname"; then
4421 # Deduce the name of the destination old-style object file.
4437 test -n "$destfile" && \
4441 if test yes = "$build_old_libs"; then
4442 # Deduce the name of the old-style object file.
4452 if test -n "$destname"; then
4466 if test ! -f "$file"; then
4474 # Do a test to see if this is really a libtool program.
4496 test -z "$generated_by_libtool_version" && \
4503 if test -f "$lib"; then
4507 if test -n "$libdir" && test ! -f "$libfile"; then
4517 if test no = "$fast_install" && test -n "$relink_command"; then
4567 $opt_dry_run || if test -n "$outputname"; then
4585 if test -n "$stripme" && test -n "$old_striplib"; then
4593 test -n "$future_libdirs" && \
4594 func_warning "remember to run '$progname --finish$future_libdirs'"
4596 if test -n "$current_libdirs"; then
4598 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4599 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4605 test install = "$opt_mode" && func_mode_install ${1+"$@"}
4617 my_pic_p=${3-false}
4618 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4621 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4622 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4629 if test -n "$my_dlsyms"; then
4642 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4650 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4656 relocations are performed -- see ld's documentation on pseudo-relocs. */
4670 if test yes = "$dlself"; then
4683 if test -n "$exclude_expsyms"; then
4685 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4690 if test -n "$export_symbols_regex"; then
4692 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4698 if test -z "$export_symbols"; then
4702 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4712 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4713 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4736 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4739 if test -n "$dlprefile_dlname"; then
4743 # no lafile. user explicitly requested -dlpreopen <import library>.
4749 if test -n "$dlprefile_dlbasename"; then
4757 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4779 test -f "$nlist" || : > "$nlist"
4781 if test -n "$exclude_expsyms"; then
4782 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4787 if $GREP -v "^: " < "$nlist" |
4788 if sort -k 3 </dev/null >/dev/null 2>&1; then
4789 sort -k 3
4796 $GREP -v "^: " < "$nlist" > "$nlist"S
4799 if test -f "$nlist"S; then
4806 if test -n "$global_symbol_to_import"; then
4821 if test -s "$nlist"I; then
4826 for (; symbol->name; ++symbol)
4828 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
4838 if test -s "$nlist"I; then
4870 *" -static "*) ;;
4874 # a FreeBSD bug that causes programs to crash when -lm is
4876 # pic_flag when linking with -static. The problem exists in
4878 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4879 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
4880 *-*-hpux*)
4891 -pie | -fpie | -fPIE) ;;
4897 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
4906 if test -f "$output_objdir/$my_outputname.def"; then
4937 # ARG is a GNU/binutils-style import library. Returns
4944 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
4945 test -n "$func_cygming_gnu_implib_tmp"
4950 # ARG is an MS-style import library. Returns
4958 test -n "$func_cygming_ms_implib_tmp"
4973 win32_fileres=`file -L $1 2>/dev/null`
4980 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
4981 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
4994 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4995 $SED -n -e '
5027 # Platform-specific function to extract the
5038 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5044 # platform-specific function to extract the name of the
5057 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5066 /:[ ]*file format pe[i]\{,1\}-/d
5074 $SED -n '
5095 # 0x302f exports -- but will fail for DLLs whose name actually
5100 $SED -e '/^\./d;/^.\./d;q'
5104 # Platform-specific function to extract the
5109 # does not support the --identify-strict option.
5122 # ms-generated import library
5138 if test yes = "$lock_old_archive_extraction"; then
5145 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
5146 'stat=$?; rm -f "$lockfile"; exit $stat'
5147 if test yes = "$lock_old_archive_extraction"; then
5148 $opt_dry_run || rm -f "$lockfile"
5150 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5173 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5184 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5194 *-darwin*)
5199 cd $my_xdir || exit $?
5204 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5205 if test -n "$darwin_arches"; then
5206 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5210 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5211 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5212 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5214 cd "$darwin_curdir"
5215 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5218 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5222 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5223 $LIPO -create -output "$darwin_file" $darwin_files
5225 $RM -rf unfat-$$
5226 cd "$darwin_orig_dir"
5228 cd $darwin_orig_dir
5237 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5256 # the $objdir directory. This is a cygwin/mingw-specific
5260 func_emit_wrapper_arg1=${1-no}
5265 # $output - temporary wrapper script for $objdir/$outputname
5275 # metacharacters that are still active within double-quoted strings.
5279 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5284 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5287 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5292 # The HP-UX ksh and POSIX shell print the target directory to stdout
5299 if test \"\$libtool_install_magic\" = \"$magic\"; then
5305 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5325 # windows platforms, and (c) all begin with the string "--lt-"
5329 # There are only two supported options: --lt-debug and
5330 # --lt-dump-script. There is, deliberately, no --lt-help.
5342 --lt-debug) lt_option_debug=1 ;;
5343 --lt-dump-script)
5344 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5345 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
5346 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5350 --lt-*)
5351 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5358 if test -n \"\$lt_option_debug\"; then
5363 # Used when --lt-debug. Prints its arguments to stdout
5381 *-*-mingw | *-*-os2* | *-cegcc*)
5383 if test -n \"\$lt_option_debug\"; then
5393 if test -n \"\$lt_option_debug\"; then
5407 # Strips options in the --lt-* namespace from \$@ and
5412 *\\ --lt-*)
5416 --lt-*) ;;
5430 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5433 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5434 while test -n \"\$file\"; do
5438 if test \"x\$destdir\" != \"x\$file\"; then
5440 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5446 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5452 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
5454 if test \"\$thisdir\" = \".\"; then
5465 absdir=\`cd \"\$thisdir\" && pwd\`
5466 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5469 if test yes = "$fast_install"; then
5471 program=lt-'$outputname'$exeext
5474 if test ! -f \"\$progdir/\$program\" ||
5475 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5476 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5478 file=\"\$\$-\$program\"
5480 if test ! -d \"\$progdir\"; then
5489 if test -n \"\$relink_command\"; then
5512 if test -f \"\$progdir/\$program\"; then"
5519 if test -n "$dllsearchpath"; then
5527 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5532 # Some systems cannot cope with colon-terminated $shlibpath_var
5541 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5565 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5603 /* declarations of non-ANSI functions */
5701 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5733 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5744 if test -n "$dllsearchpath"; then
5757 if test yes = "$fast_install"; then
5759 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5770 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5773 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5823 have already dealt with, above (inluding dump-script), then
5827 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5828 or a configure.ac-settable value.
5841 /* The GNU banner must be the first non-error debug message */
5871 /* target_name transforms -- use actual target program name; might have lt- prefix */
5897 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
5900 /* DO want the lt- prefix here if it exists, so use target_name */
5954 if (rval == -1)
6108 p_len = (size_t) (q - p);
6179 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6181 p--;
6226 str += len - patlen;
6340 /* some systems can't cope with a ':'-terminated path #' */
6342 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6344 new_value[--len] = '\0';
6382 - Space and tab are interpreted as delimiters. They are not treated as
6384 - Unescaped double quotes are removed from the input. Their only effect is
6387 - Backslashes not followed by double quotes are not special.
6388 - But 2*n+1 backslashes followed by a double quote become
6390 \" -> "
6391 \\\" -> \"
6392 \\\\\" -> \\"
6456 for (j = backslashes + 1; j > 0; j--)
6468 for (j = backslashes; j > 0; j--)
6492 $SED -n -e '
6513 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6528 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6543 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6544 # It is impossible to link a dll without this setting, and
6553 # -no-undefined on the libtool link line when we can be certain
6611 single_module=$wl-single_module
6614 # We need to know -static, to get the right output filenames.
6618 -shared)
6619 test yes != "$build_libtool_libs" \
6624 -all-static | -static | -static-libtool-libs)
6626 -all-static)
6627 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6630 if test -n "$link_static_flag"; then
6635 -static)
6636 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6641 -static-libtool-libs)
6642 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6656 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6659 while test "$#" -gt 0; do
6667 if test -n "$prev"; then
6691 if test no = "$dlself"; then
6699 if test dlprefiles = "$prev"; then
6701 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
6711 if test dlfiles = "$prev"; then
6723 test -f "$arg" \
6735 *-*-darwin*)
6753 # '-mllvm $arg' options when doing the link step.
6758 if test -f "$arg"; then
6765 # A libtool-controlled object.
6775 if test -z "$pic_object" ||
6776 test -z "$non_pic_object" ||
6777 test none = "$pic_object" &&
6778 test none = "$non_pic_object"; then
6786 if test none != "$pic_object"; then
6790 if test dlfiles = "$prev"; then
6791 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
6801 # CHECK ME: I think I busted this. -Ossama
6802 if test dlprefiles = "$prev"; then
6803 # Preload the old-style object.
6813 # Non-PIC object.
6814 if test none != "$non_pic_object"; then
6818 # A standard non-PIC object
6820 if test -z "$pic_object" || test none = "$pic_object"; then
6830 # Only an error if not doing a dry-run.
6864 release=-$arg
6871 [\\/]* | [A-Za-z]:[\\/]*) ;;
6873 func_fatal_error "only absolute run-paths are allowed"
6876 if test rpath = "$prev"; then
6929 fi # test -n "$prev"
6934 -all-static)
6935 if test -n "$link_static_flag"; then
6936 # See comment for -static flag below, for more details.
6943 -allow-undefined)
6945 func_fatal_error "'-allow-undefined' must not be used because it is the default"
6948 -avoid-version)
6953 -bindir)
6958 -dlopen)
6963 -dlpreopen)
6968 -export-dynamic)
6973 -export-symbols | -export-symbols-regex)
6974 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
6975 func_fatal_error "more than one -exported-symbols argument is not allowed"
6977 if test X-export-symbols = "X$arg"; then
6985 -framework)
6990 -inst-prefix-dir)
6995 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
6996 # so, if we see these flags be careful not to treat them like -L
6997 -L[A-Z][A-Z]*:*)
6999 no/*-*-irix* | /*-*-irix*)
7007 -L*)
7008 func_stripname "-L" '' "$arg"
7009 if test -z "$func_stripname_result"; then
7010 if test "$#" -gt 0; then
7011 func_fatal_error "require no space between '-L' and '$1'"
7013 func_fatal_error "need path for '-L' option"
7020 [\\/]* | [A-Za-z]:[\\/]*) ;;
7022 absdir=`cd "$dir" && pwd`
7023 test -z "$absdir" && \
7029 *" -L$dir "* | *" $arg "*)
7035 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7036 *) func_append deplibs " -L$dir" ;;
7042 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7059 -l*)
7060 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7062 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7066 *-*-os2*)
7068 test X-lc = "X$arg" && continue
7070 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7072 test X-lc = "X$arg" && continue
7074 *-*-rhapsody* | *-*-darwin1.[012])
7079 *-*-sco3.2v5* | *-*-sco5v6*)
7081 test X-lc = "X$arg" && continue
7083 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7085 test X-lc = "X$arg" && continue
7088 elif test X-lc_r = "X$arg"; then
7090 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7091 # Do not include libc_r directly, use -pthread flag.
7100 -mllvm)
7105 -module)
7110 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7112 # Darwin uses the -arch flag to determine output architecture.
7113 -model|-arch|-isysroot|--sysroot)
7121 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7122 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7131 # As we are forced to pass -nostdlib to g++ during linking, the option
7132 # -pthread{,s} is not in effect; add the -lpthread to $deplist
7134 if test "$tagname" = CXX -a x"$with_gcc" = xyes; then
7136 -pthread*) func_append deplibs " -lpthread" ;;
7143 -multi_module)
7144 single_module=$wl-multi_module
7148 -no-fast-install)
7153 -no-install)
7155 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7158 func_warning "'-no-install' is ignored for $host"
7159 func_warning "assuming '-no-fast-install' instead"
7167 -no-undefined)
7172 -objectlist)
7177 -os2dllname)
7182 -o) prev=output ;;
7184 -precious-files-regex)
7189 -release)
7194 -rpath)
7199 -R)
7204 -R*)
7205 func_stripname '-R' '' "$arg"
7209 [\\/]* | [A-Za-z]:[\\/]*) ;;
7215 func_fatal_error "only absolute run-paths are allowed"
7225 -shared)
7226 # The effects of -shared are defined in a previous loop.
7230 -shrext)
7235 -static | -static-libtool-libs)
7236 # The effects of -static are defined in a previous loop.
7237 # We used to do the same as -all-static on platforms that
7244 -thread-safe)
7249 -version-info)
7254 -version-number)
7260 -weak)
7265 -Wc,*)
7266 func_stripname '-Wc,' '' "$arg"
7281 -Wl,*)
7282 func_stripname '-Wl,' '' "$arg"
7298 -Xcompiler)
7303 -Xlinker)
7308 -XCClinker)
7313 # -msg_* for osf cc
7314 -msg_*)
7320 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7321 # -r[0-9][0-9]* specify processor for the SGI compiler
7322 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7323 # +DA*, +DD* enable 64-bit mode for the HP compiler
7324 # -q* compiler args for the IBM compiler
7325 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7326 # -F/path path to uninstalled frameworks, gcc on darwin
7327 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7328 # -fstack-protector* stack protector flags for GCC
7330 # -tp=* Portland pgcc target processor selection
7331 # --sysroot=* for sysroot support
7332 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7333 # -specs=* GCC specs files
7334 # -stdlib=* select c++ std lib with clang
7335 # -fsanitize=* Clang/GCC memory and address sanitizer
7336 # -fuse-ld=* Linker select flags for GCC
7337 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7338 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7339 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7340 -specs=*|-fsanitize=*|-fuse-ld=*)
7349 -Z*)
7350 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7351 # OS/2 uses -Zxxx to specify OS/2-specific options
7356 -Zlinker | -Zstack)
7369 -* | +*)
7380 # A libtool-controlled object.
7390 if test -z "$pic_object" ||
7391 test -z "$non_pic_object" ||
7392 test none = "$pic_object" &&
7393 test none = "$non_pic_object"; then
7401 test none = "$pic_object" || {
7405 if test dlfiles = "$prev"; then
7406 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
7416 # CHECK ME: I think I busted this. -Ossama
7417 if test dlprefiles = "$prev"; then
7418 # Preload the old-style object.
7428 # Non-PIC object.
7429 if test none != "$non_pic_object"; then
7433 # A standard non-PIC object
7435 if test -z "$pic_object" || test none = "$pic_object"; then
7445 # Only an error if not doing a dry-run.
7470 # A libtool-controlled library.
7473 if test dlfiles = "$prev"; then
7474 # This library was specified with -dlopen.
7477 elif test dlprefiles = "$prev"; then
7478 # The library was specified with -dlpreopen.
7497 if test -n "$arg"; then
7503 test -n "$prev" && \
7506 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7513 # calculate the name of the file, without its directory
7518 if test -n "$shlibpath_var"; then
7552 # that are linked more than once (e.g. -la -lb -la)
7562 if test lib = "$linkmode"; then
7584 notinst_deplibs= # not-installed libtool libraries
7585 notinst_path= # paths that contain not-installed libtool libraries
7594 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7613 # so that -L comes before libs that need it for instance...
7614 if test lib,link = "$linkmode,$pass"; then
7624 if test lib,link = "$linkmode,$pass" ||
7625 test prog,scan = "$linkmode,$pass"; then
7629 if test prog = "$linkmode"; then
7636 if test lib,dlpreopen = "$linkmode,$pass"; then
7639 # Ignore non-libtool-libs
7659 if test dlopen = "$pass"; then
7669 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7670 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7671 if test prog,link = "$linkmode,$pass"; then
7676 if test lib = "$linkmode"; then
7685 -l*)
7686 if test lib != "$linkmode" && test prog != "$linkmode"; then
7687 func_warning "'-l' is ignored for archives/objects"
7690 func_stripname '-l' '' "$deplib"
7692 if test lib = "$linkmode"; then
7701 if test -f "$lib"; then
7702 if test .la = "$search_ext"; then
7715 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
7725 if test "X$ll" = "X$old_library"; then # only static version available
7730 if test prog,link = "$linkmode,$pass"; then
7735 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7746 if test prog,link = "$linkmode,$pass"; then
7751 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7755 ;; # -l
7757 if test prog,link = "$linkmode,$pass"; then
7762 if test lib = "$linkmode"; then
7771 -L*)
7775 test conv = "$pass" && continue
7777 func_stripname '-L' '' "$deplib"
7782 if test conv = "$pass"; then
7786 if test scan = "$pass"; then
7792 func_stripname '-L' '' "$deplib"
7797 func_warning "'-L' is ignored for archives/objects"
7801 ;; # -L
7802 -R*)
7803 if test link = "$pass"; then
7804 func_stripname '-R' '' "$deplib"
7821 if test conv = "$pass"; then
7828 # but linking other static libraries is non-portable.
7865 if test link != "$pass"; then
7876 if test conv = "$pass"; then
7878 elif test prog = "$linkmode"; then
7879 …if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; t…
7897 $found || test -f "$lib" \
7924 # Convert "-framework foo" to "foo.ltframework"
7925 if test -n "$inherited_linker_flags"; then
7926 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
7934 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7935 if test lib,link = "$linkmode,$pass" ||
7936 test prog,scan = "$linkmode,$pass" ||
7937 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
7938 test -n "$dlopen" && func_append dlfiles " $dlopen"
7939 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
7942 if test conv = "$pass"; then
7945 if test -z "$libdir"; then
7946 if test -z "$old_library"; then
7952 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7971 if test -n "$old_library" &&
7972 { test yes = "$prefer_static_libs" ||
7973 test built,no = "$prefer_static_libs,$installed"; }; then
7980 if test -z "$linklib"; then
7984 # This library was specified with -dlopen.
7985 if test dlopen = "$pass"; then
7986 test -z "$libdir" \
7987 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
7988 if test -z "$dlname" ||
7989 test yes != "$dlopen_support" ||
7990 test no = "$build_libtool_libs"
8005 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8007 abs_ladir=`cd "$ladir" && pwd`
8008 if test -z "$abs_ladir"; then
8019 if test yes = "$installed"; then
8020 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8029 test yes = "$hardcode_automatic" && avoidtemprpath=yes
8031 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8046 # This library was specified with -dlpreopen.
8047 if test dlpreopen = "$pass"; then
8048 if test -z "$libdir" && test prog = "$linkmode"; then
8049 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8052 # special handling for platforms with PE-DLLs.
8062 if test -n "$dlname"; then
8070 test -z "$libdir" && \
8077 if test -n "$old_library"; then
8081 test -z "$libdir" && \
8084 elif test -n "$dlname"; then
8093 if test -z "$libdir"; then
8095 if test lib = "$linkmode"; then
8097 elif test prog,link = "$linkmode,$pass"; then
8107 if test prog = "$linkmode" && test link != "$pass"; then
8112 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8113 test no = "$build_libtool_libs"; then
8120 -L*) func_stripname '-L' '' "$deplib"
8143 if test prog,link = "$linkmode,$pass"; then
8144 if test -n "$library_names" &&
8145 { { test no = "$prefer_static_libs" ||
8146 test built,yes = "$prefer_static_libs,$installed"; } ||
8147 test -z "$old_library"; }; then
8149 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8158 # Skip directories that are in the system default run-time
8181 { test pass_all = "$deplibs_check_method" ||
8182 { test yes = "$build_libtool_libs" &&
8183 test -n "$library_names"; }; }; then
8191 if test built = "$use_static_libs" && test yes = "$installed"; then
8194 if test -n "$library_names" &&
8195 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8203 if test no = "$installed"; then
8211 # Warn about portability, can't link against -module's on some
8215 if test "X$dlpremoduletest" = "X$lib"; then
8220 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8222 if test prog = "$linkmode"; then
8229 if test lib = "$linkmode" &&
8230 test yes = "$hardcode_into_libs"; then
8232 # Skip directories that are in the system default run-time
8254 if test -n "$old_archive_from_expsyms_cmds"; then
8262 if test -n "$dlname"; then
8264 elif test -n "$soname_spec"; then
8268 func_arith $current - $age
8270 versuffix=-$major
8283 newlib=libimp-$func_stripname_result.a
8286 if test -f "$output_objdir/$soname-def"; then :
8293 if test -f "$output_objdir/$newlib"; then :; else
8300 fi # test -n "$old_archive_from_expsyms_cmds"
8302 if test prog = "$linkmode" || test relink != "$opt_mode"; then
8309 if test no = "$hardcode_direct"; then
8312 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8313 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8314 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8315 *-*-unixware7*) add_dir=-L$dir ;;
8316 *-*-darwin* )
8317 # if the lib is a (non-dlopened) module then we cannot
8319 if /usr/bin/file -L $add 2> /dev/null |
8321 if test "X$dlopenmodule" != "X$lib"; then
8323 if test -z "$old_library"; then
8330 elif test -n "$old_library"; then
8335 elif test no = "$hardcode_minus_L"; then
8337 *-*-sunos*) add_shlibpath=$dir ;;
8339 add_dir=-L$dir
8340 add=-l$name
8341 elif test no = "$hardcode_shlibpath_var"; then
8343 add=-l$name
8349 if test yes = "$hardcode_direct" &&
8350 test no = "$hardcode_direct_absolute"; then
8352 elif test yes = "$hardcode_minus_L"; then
8353 add_dir=-L$absdir
8355 if test -n "$inst_prefix_dir"; then
8358 func_append add_dir " -L$inst_prefix_dir$libdir"
8362 add=-l$name
8363 elif test yes = "$hardcode_shlibpath_var"; then
8365 add=-l$name
8373 if test yes != "$lib_linked"; then
8377 if test -n "$add_shlibpath"; then
8383 if test prog = "$linkmode"; then
8384 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8385 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8387 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8388 test -n "$add" && deplibs="$add $deplibs"
8389 if test yes != "$hardcode_direct" &&
8390 test yes != "$hardcode_minus_L" &&
8391 test yes = "$hardcode_shlibpath_var"; then
8400 if test prog = "$linkmode" || test relink = "$opt_mode"; then
8405 if test yes = "$hardcode_direct" &&
8406 test no = "$hardcode_direct_absolute"; then
8408 elif test yes = "$hardcode_minus_L"; then
8409 add_dir=-L$libdir
8410 add=-l$name
8411 elif test yes = "$hardcode_shlibpath_var"; then
8416 add=-l$name
8417 elif test yes = "$hardcode_automatic"; then
8418 if test -n "$inst_prefix_dir" &&
8419 test -f "$inst_prefix_dir$libdir/$linklib"; then
8426 add_dir=-L$libdir
8428 if test -n "$inst_prefix_dir"; then
8431 func_append add_dir " -L$inst_prefix_dir$libdir"
8435 add=-l$name
8438 if test prog = "$linkmode"; then
8439 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8440 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8442 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8443 test -n "$add" && deplibs="$add $deplibs"
8446 elif test prog = "$linkmode"; then
8450 if test unsupported != "$hardcode_direct"; then
8451 test -n "$old_library" && linklib=$old_library
8455 compile_deplibs="-l$name -L$dir $compile_deplibs"
8456 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8458 elif test yes = "$build_libtool_libs"; then
8460 if test pass_all != "$deplibs_check_method"; then
8471 if test yes = "$module"; then
8474 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8475 if test -z "$global_symbol_pipe"; then
8482 if test no = "$build_old_libs"; then
8495 if test lib = "$linkmode"; then
8496 if test -n "$dependency_libs" &&
8497 { test yes != "$hardcode_into_libs" ||
8498 test yes = "$build_old_libs" ||
8499 test yes = "$link_static"; }; then
8500 # Extract -R from dependency_libs
8504 -R*) func_stripname '-R' '' "$libdir"
8518 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8524 -L*) func_stripname '-L' '' "$deplib"
8537 if test no != "$link_all_deplibs"; then
8542 -L*) path=$deplib ;;
8550 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8552 absdir=`cd "$dir" && pwd`
8553 if test -z "$absdir"; then
8561 *-*-darwin*)
8563 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8564 if test -n "$deplibrary_names"; then
8568 if test -f "$absdir/$objdir/$depdepl"; then
8570 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8571 if test -z "$darwin_install_name"; then
8572 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8574 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8575 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8581 path=-L$absdir/$objdir
8585 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8586 test -z "$libdir" && \
8588 test "$absdir" != "$libdir" && \
8591 path=-L$absdir
8603 if test link = "$pass"; then
8604 if test prog = "$linkmode"; then
8608 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8612 if test dlpreopen = "$pass"; then
8618 if test dlopen != "$pass"; then
8619 test conv = "$pass" || {
8631 if test prog,link = "$linkmode,$pass"; then
8648 -L*) new_libs="$deplib $new_libs" ;;
8649 -R*) ;;
8663 # using -Wl,-lname, so that libtool does not consider it
8680 -L*)
8694 test CXX = "$tagname" && {
8697 case `$CC -V 2>&1 | sed 5q` in
8701 if test no != "$suncc_use_cstd_abi"; then
8702 func_append postdeps ' -library=Cstd -library=Crun'
8714 if test no != "$suncc_use_cstd_abi"; then
8715 func_append postdeps ' -library=Cstd -library=Crun'
8732 if test -n "$i"; then
8738 if test prog = "$linkmode"; then
8741 if test prog = "$linkmode" || test lib = "$linkmode"; then
8747 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8748 func_warning "'-dlopen' is ignored for archives"
8752 *\ -l* | *\ -L*)
8753 func_warning "'-l' and '-L' are ignored for archives" ;;
8756 test -n "$rpath" && \
8757 func_warning "'-rpath' is ignored for archives"
8759 test -n "$xrpath" && \
8760 func_warning "'-R' is ignored for archives"
8762 test -n "$vinfo" && \
8763 func_warning "'-version-info/-version-number' is ignored for archives"
8765 test -n "$release" && \
8766 func_warning "'-release' is ignored for archives"
8768 test -n "$export_symbols$export_symbols_regex" && \
8769 func_warning "'-export-symbols' is ignored for archives"
8787 test no = "$module" \
8790 if test no != "$need_lib_prefix"; then
8803 if test -n "$objs"; then
8804 if test pass_all != "$deplibs_check_method"; then
8805 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
8808 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8814 test no = "$dlself" \
8815 || func_warning "'-dlopen self' is ignored for libtool libraries"
8819 test 1 -lt "$#" \
8820 && func_warning "ignoring multiple '-rpath's for a libtool library"
8825 if test -z "$rpath"; then
8826 if test yes = "$build_libtool_libs"; then
8836 test -n "$vinfo" && \
8837 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8839 test -n "$release" && \
8840 func_warning "'-release' is ignored for convenience libraries"
8849 test -n "$7" && \
8850 func_fatal_help "too many parameters to '-version-info'"
8862 # There are really only two kinds -- those that
8870 darwin|freebsd-elf|linux|osf|windows|none)
8876 freebsd-aout|qnx|sunos)
8899 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]) ;;
8907 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]) ;;
8915 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]) ;;
8922 if test "$age" -gt "$current"; then
8937 func_arith $current - $age
8943 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
8944 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8948 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
8951 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8956 freebsd-aout)
8961 freebsd-elf)
8962 func_arith $current - $age
8968 if test no = "$lt_irix_increment"; then
8969 func_arith $current - $age
8971 func_arith $current - $age + 1
8983 while test 0 -ne "$loop"; do
8984 func_arith $revision - $loop
8986 func_arith $loop - 1
8997 func_arith $current - $age
9003 func_arith $current - $age
9010 while test 0 -ne "$loop"; do
9011 func_arith $current - $loop
9013 func_arith $loop - 1
9038 # Use '-' rather than '.', since we only want one
9040 func_arith $current - $age
9042 versuffix=-$major
9051 if test -z "$vinfo" && test -n "$release"; then
9063 if test no = "$need_version"; then
9071 if test yes,no = "$avoid_version,$need_version"; then
9078 if test yes = "$allow_undefined"; then
9079 if test unsupported = "$allow_undefined_flag"; then
9080 if test yes = "$build_old_libs"; then
9084 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9096 test " " = "$libobjs" && libobjs=
9098 if test relink != "$opt_mode"; then
9108 if test -n "$precious_files_regex"; then
9109 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9119 test -n "$removelist" && \
9124 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
9134 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9135 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9138 if test -n "$xrpath"; then
9143 func_append temp_xrpath " -R$func_replace_sysroot_result"
9149 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
9174 if test yes = "$build_libtool_libs"; then
9175 if test -n "$rpath"; then
9177 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9180 *-*-rhapsody* | *-*-darwin1.[012])
9184 *-*-netbsd*)
9187 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9190 *-*-sco3.2v5* | *-*-sco5v6*)
9193 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9198 if test yes = "$build_libtool_need_lc"; then
9199 func_append deplibs " -lc"
9212 # release should show up in the -l (ie -lgmp5) so we don't want to
9238 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9242 -l*)
9243 func_stripname -l '' "$i"
9245 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9253 if test -n "$i"; then
9258 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9282 -l*)
9283 func_stripname -l '' "$i"
9286 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9288 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9296 if test -n "$i"; then
9301 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9335 -l*)
9336 func_stripname -l '' "$a_deplib"
9338 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9346 if test -n "$a_deplib"; then
9348 if test -n "$file_magic_glob"; then
9349 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9353 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9355 if test yes = "$want_nocaseglob"; then
9356 shopt -s nocaseglob
9357 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9360 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9364 if ls -lLd "$potent_lib" 2>/dev/null |
9365 $GREP " -> " >/dev/null; then
9374 while test -h "$potlib" 2>/dev/null; do
9375 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9377 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9382 $SED -e 10q |
9391 if test -n "$a_deplib"; then
9399 if test -z "$potlib"; then
9400 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9402 $ECHO "*** with $libname and none of the candidates passed a file format test"
9408 # Add a -L argument.
9419 -l*)
9420 func_stripname -l '' "$a_deplib"
9422 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9430 if test -n "$a_deplib"; then
9433 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9435 potlib=$potent_lib # see symlink-check above in file_magic test
9445 if test -n "$a_deplib"; then
9453 if test -z "$potlib"; then
9454 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9456 $ECHO "*** with $libname and none of the candidates passed a file format test"
9462 # Add a -L argument.
9470 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9471 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9480 if test none = "$deplibs_check_method"; then
9481 echo "*** Warning: inter-library dependencies are not supported in this platform."
9483 echo "*** Warning: inter-library dependencies are not known to be supported."
9485 echo "*** All declared inter-library dependencies are being dropped."
9498 *-*-rhapsody* | *-*-darwin1.[012])
9500 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9504 if test yes = "$droppeddeps"; then
9505 if test yes = "$module"; then
9507 echo "*** Warning: libtool could not satisfy all declared inter-library"
9510 echo "*** application is linked with the -dlopen flag."
9511 if test -z "$global_symbol_pipe"; then
9518 if test no = "$build_old_libs"; then
9526 echo "*** The inter-library dependencies that have been dropped here will be"
9528 echo "*** or is declared to -dlopen it."
9530 if test no = "$allow_undefined"; then
9534 echo "*** it was explicitly requested with -no-undefined,"
9536 if test no = "$build_old_libs"; then
9549 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9551 *-*-darwin*)
9552 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9553 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9554 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9563 *" -L$path/$objdir "*) ;;
9566 *" -L$path/$objdir "*)
9567 func_append new_libs " -L$path/$objdir" ;;
9574 -L*)
9585 # All the library-specific variables (install_libdir is set above).
9590 # Test again, we may have decided not to build it any more
9591 if test yes = "$build_libtool_libs"; then
9593 # FIXME: should test the right _cmds variable.
9597 if test yes = "$hardcode_into_libs"; then
9602 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
9604 if test -n "$hardcode_libdir_flag_spec"; then
9605 if test -n "$hardcode_libdir_separator"; then
9608 if test -z "$hardcode_libdirs"; then
9624 elif test -n "$runpath_var"; then
9632 if test -n "$hardcode_libdir_separator" &&
9633 test -n "$hardcode_libdirs"; then
9637 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9645 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9649 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
9650 if test -n "$shlibpath"; then
9662 if test -n "$soname_spec"; then
9667 if test -z "$dlname"; then
9679 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9680 test "X$libobjs" = "X " && libobjs=
9683 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9692 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9710 if test -z "$export_symbols"; then
9711 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9732 if test yes = "$try_normal_branch" \
9733 && { test "$len" -lt "$max_cmd_len" \
9734 || test "$max_cmd_len" -le -1; }
9738 elif test -n "$nm_file_list_spec"; then
9767 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9768 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9774 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9776 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9780 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9788 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
9791 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9805 if test -n "$convenience"; then
9806 if test -n "$whole_archive_flag_spec" &&
9807 test yes = "$compiler_needs_object" &&
9808 test -z "$libobjs"; then
9813 if test -n "$whole_archive_flag_spec"; then
9816 test "X$libobjs" = "X " && libobjs=
9823 test "X$libobjs" = "X " && libobjs=
9827 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9833 if test relink = "$opt_mode"; then
9834 …$opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || ex…
9838 if test yes = "$module" && test -n "$module_cmds"; then
9839 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
9847 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
9856 if test : != "$skipped_export" &&
9859 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9874 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
9889 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9902 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9909 if test yes = "$compiler_needs_object"; then
9922 if test -n "$save_libobjs"; then
9924 output=$output_objdir/$output_la-$k.$objext
9936 if test -z "$objlist" ||
9937 test "$len" -lt "$max_cmd_len"; then
9942 if test 1 -eq "$k"; then
9952 last_robj=$output_objdir/$output_la-$k.$objext
9955 output=$output_objdir/$output_la-$k.$objext
9965 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9968 if test -n "$last_robj"; then
9977 ${skipped_export-false} && {
9983 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9985 if test -n "$last_robj"; then
9990 test -n "$save_libobjs" &&
10005 if test relink = "$opt_mode"; then
10006 ( cd "$output_objdir" && \
10016 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10017 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10022 ${skipped_export-false} && {
10023 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10025 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10029 if test -n "$orig_export_symbols"; then
10037 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10040 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10048 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10050 test "X$libobjs" = "X " && libobjs=
10056 if test yes = "$module" && test -n "$module_cmds"; then
10057 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10063 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10071 if test -n "$delfiles"; then
10077 if test -n "$dlprefiles"; then
10083 test "X$libobjs" = "X " && libobjs=
10099 if test relink = "$opt_mode"; then
10100 ( cd "$output_objdir" && \
10111 if test relink = "$opt_mode"; then
10112 …$opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV …
10114 if test -n "$convenience"; then
10115 if test -z "$whole_archive_flag_spec"; then
10125 if test "$realname" != "$linkname"; then
10126 …func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $…
10130 # If -module or -export-dynamic was specified, set the dlname.
10131 if test yes = "$module" || test yes = "$export_dynamic"; then
10139 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10140 func_warning "'-dlopen' is ignored for objects"
10144 *\ -l* | *\ -L*)
10145 func_warning "'-l' and '-L' are ignored for objects" ;;
10148 test -n "$rpath" && \
10149 func_warning "'-rpath' is ignored for objects"
10151 test -n "$xrpath" && \
10152 func_warning "'-R' is ignored for objects"
10154 test -n "$vinfo" && \
10155 func_warning "'-version-info' is ignored for objects"
10157 test -n "$release" && \
10158 func_warning "'-release' is ignored for objects"
10162 test -n "$objs$old_deplibs" && \
10163 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10179 # single-version convenience libraries. Whenever we create
10180 # different ones for PIC/non-PIC, this we'll have to duplicate
10184 # if reload_cmds runs $LD directly, get rid of -Wl from
10190 if test -n "$convenience"; then
10191 if test -n "$whole_archive_flag_spec"; then
10193 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10205 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
10207 # Create the old-style object.
10214 if test -z "$libobj"; then
10215 if test -n "$gentop"; then
10222 test yes = "$build_libtool_libs" || {
10223 if test -n "$gentop"; then
10234 if test -n "$pic_flag" || test default != "$pic_mode"; then
10241 if test -n "$gentop"; then
10253 test -n "$vinfo" && \
10254 func_warning "'-version-info' is ignored for programs"
10256 test -n "$release" && \
10257 func_warning "'-release' is ignored for programs"
10260 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10264 *-*-rhapsody* | *-*-darwin1.[012])
10266 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10267 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10272 *-*-darwin*)
10275 if test CXX = "$tagname"; then
10276 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10278 func_append compile_command " $wl-bind_at_load"
10279 func_append finalize_command " $wl-bind_at_load"
10283 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10284 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10285 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10295 *" -L$path/$objdir "*) ;;
10298 *" -L$path/$objdir "*)
10299 func_append new_libs " -L$path/$objdir" ;;
10306 -L*)
10321 if test -n "$rpath$xrpath"; then
10324 # This is the magic to use -rpath.
10336 if test -n "$hardcode_libdir_flag_spec"; then
10337 if test -n "$hardcode_libdir_separator"; then
10338 if test -z "$hardcode_libdirs"; then
10354 elif test -n "$runpath_var"; then
10361 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10362 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10377 if test -n "$hardcode_libdir_separator" &&
10378 test -n "$hardcode_libdirs"; then
10387 if test -n "$hardcode_libdir_flag_spec"; then
10388 if test -n "$hardcode_libdir_separator"; then
10389 if test -z "$hardcode_libdirs"; then
10405 elif test -n "$runpath_var"; then
10413 if test -n "$hardcode_libdir_separator" &&
10414 test -n "$hardcode_libdirs"; then
10420 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10429 if test -n "$prelink_cmds"; then
10440 test yes = "$build_libtool_libs" || wrappers_required=false
10443 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10457 if test -n "$postlink_cmds"; then
10459 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10464 if test -f "$output_objdir/${outputname}S.$objext"; then
10471 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10474 if test -n "$finalize_shlibpath"; then
10480 if test -n "$runpath_var"; then
10481 if test -n "$perm_rpath"; then
10489 if test -n "$finalize_perm_rpath"; then
10499 if test yes = "$no_install"; then
10509 if test -n "$postlink_cmds"; then
10511 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10545 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10549 if test -n "$postlink_cmds"; then
10551 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10559 if test -n "$relink_command"; then
10562 if eval test -z \"\${$var+set}\"; then
10563 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10564 elif eval var_value=\$$var; test -z "$var_value"; then
10571 func_quote "(cd `pwd`; $relink_command)"
10583 # test for cygwin because mv fails w/o .exe extensions
10596 cwrappersource=$output_path/$objdir/lt-$output_name.c
10604 # because it contains $host paths and files. If cross-
10608 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10618 if test "x$build" = "x$host"; then
10619 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10638 # See if we need to build an old-fashioned archive.
10654 $preload && test -f "$symfileobj" \
10660 if test -n "$addlibs"; then
10669 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10674 if test -n "$dlprefiles"; then
10692 done | sort | sort -uc >/dev/null 2>&1); then
10712 newobj=lt$counter-$objbase
10717 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10733 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10735 elif test -n "$archiver_list_spec"; then
10769 if test "$len" -lt "$max_cmd_len"; then
10774 if test "$obj" = "$last_oldobj"; then
10777 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10785 if test -z "$oldobjs"; then
10795 test -n "$generated" && \
10802 test yes = "$build_old_libs" && old_library=$libname.$libext
10807 if eval test -z \"\${$var+set}\"; then
10808 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10809 elif eval var_value=\$$var; test -z "$var_value"; then
10817 …relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_p…
10820 if test yes = "$hardcode_automatic"; then
10827 if test yes = "$installed"; then
10828 if test -z "$install_libdir"; then
10840 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10841 test -z "$libdir" && \
10845 -L*)
10846 func_stripname -L '' "$deplib"
10848 func_append newdependency_libs " -L$func_replace_sysroot_result"
10850 -R*)
10851 func_stripname -R '' "$deplib"
10853 func_append newdependency_libs " -R$func_replace_sysroot_result"
10866 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10867 test -z "$libdir" && \
10879 # Only pass preopened files to the pseudo-archive (for
10885 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10886 test -z "$libdir" && \
10897 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10906 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10916 # systems that can't hard-code library paths into their executables
10919 # libtool variables, so we have to hard-code the OSs to which it
10926 # If a -bindir argument was supplied, place the dll there.
10927 if test -n "$bindir"; then
10937 # $outputname - a libtool library file
10969 # Should we warn about portability when linking against -modules?
10978 if test no,yes = "$installed,$need_relink"; then
10987 …func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname"…
10993 if test link = "$opt_mode" || test relink = "$opt_mode"; then
11015 -f) func_append RM " $arg"; rmforce=: ;;
11016 -*) func_append RM " $arg" ;;
11021 test -z "$RM" && \
11029 if test . = "$dir"; then
11036 test uninstall = "$opt_mode" && odir=$dir
11039 if test clean = "$opt_mode"; then
11046 # Don't error if the file doesn't exist and rm -f was used.
11047 if { test -L "$file"; } >/dev/null 2>&1 ||
11048 { test -h "$file"; } >/dev/null 2>&1 ||
11049 test -f "$file"; then
11051 elif test -d "$file"; then
11070 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11076 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11078 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11081 if test -n "$library_names"; then
11086 if test -n "$old_library"; then
11104 if test -n "$pic_object" && test none != "$pic_object"; then
11108 # Add non-PIC object to the list of files to remove.
11109 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11116 if test clean = "$opt_mode"; then
11125 # add $file without .exe
11129 # Do a test to see if this is a libtool program.
11144 if test yes = "$fast_install" && test -n "$relink_command"; then
11145 func_append rmfiles " $odir/lt-$name"
11147 if test "X$noexename" != "X$name"; then
11148 func_append rmfiles " $odir/lt-$noexename.c"
11159 if test -d "$dir"; then
11167 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11171 test -z "$opt_mode" && {
11176 test -z "$exec_cmd" && \
11179 if test -n "$exec_cmd"; then
11194 # time on that platform, so we default to a shared-only configuration.
11195 # If a disable-shared tag is given, we'll fallback to a static-only
11196 # configuration. But we'll never go from static-only to shared-only.
11198 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11201 # ### END LIBTOOL TAG CONFIG: disable-shared
11203 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11205 # ### END LIBTOOL TAG CONFIG: disable-static
11208 # mode:shell-script
11209 # sh-indentation:2