Lines Matching +full:generate +full:- +full:lockfile
2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2018-07-24.06
5 # libtool (GNU libtool) 2.4.6.42-b88ce-dirty
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
34 VERSION=2.4.6.42-b88ce-dirty
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=2018-07-24.06; # UTC
75 # Copyright (C) 2004-2018 Bootstrap Authors
79 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
85 # <https://github.com/gnulib-modules/bootstrap/issues>
88 ## ------ ##
90 ## ------ ##
95 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
101 ## -------------------- ##
103 ## -------------------- ##
109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
114 alias -g '${1+"$@"}'='"$@"'
117 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
143 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
144 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
151 # --------------
153 # In some shells, an 'unset VAR' statement leaves a non-zero return
156 # value) or when 'set -e' is active (causing even a spurious abort of
171 ## ------------------------- ##
173 ## ------------------------- ##
177 # ----------------------
181 test -f "$1" && test -x "$1"
186 # --------------------------------------------
187 # Search for either a program that responds to --version with output
199 _G_PATH=${3-"$PATH"}
203 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
206 test -z "$_G_dir" && _G_dir=.
211 case `"$_G_path_prog" --version 2>&1` in
222 test -z "$func_path_progs_result" && {
231 # to search for them ourselves - except when the results are already set
236 test -z "$SED" && {
256 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
259 if test "$_G_count" -gt "$_G_path_prog_max"; then
265 test 10 -lt "$_G_count" && break
267 rm -f conftest.in conftest.tmp conftest.nl conftest.out
271 rm -f conftest.sed
278 test -z "$GREP" && {
292 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
295 if test "$_G_count" -gt "$_G_path_prog_max"; then
301 test 10 -lt "$_G_count" && break
303 rm -f conftest.in conftest.tmp conftest.nl conftest.out
311 ## ------------------------------- ##
313 ## ------------------------------- ##
320 : ${CP="cp -f"}
322 : ${EGREP="$GREP -E"}
323 : ${FGREP="$GREP -F"}
324 : ${LN_S="ln -s"}
327 : ${MV="mv -f"}
328 : ${RM="rm -f"}
329 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
332 ## -------------------- ##
334 ## -------------------- ##
340 # metacharacters that are still active within double-quoted strings.
355 # Re-'\' parameter expansions in output of sed_double_quote_subst that
356 # were '\'-ed in input to the same. If an odd number of '\' preceded a
372 ## ----------------- ##
374 ## ----------------- ##
398 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
399 debug_cmd=${debug_cmd-":"}
406 # so that you can set exit_status to non-zero if you want to indicate
423 [\\/]*|[A-Za-z]:\\*) ;;
431 IFS=${PATH_SEPARATOR-:}
434 test -x "$progdir/$progname" && break
437 test -n "$progdir" || progdir=`pwd`
443 ## ----------------- ##
445 ## ----------------- ##
448 # below, and should be set appropriately depending on run-time para-
471 ## -------------------- ##
473 ## -------------------- ##
476 # particular resource (a file, or a non-empty configuration variable for
488 # -------------------
495 test -t 1 && {
499 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
509 test -n "`tput sgr0 2>/dev/null`" && {
511 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
513 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
514 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
515 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
516 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
517 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
526 ## ----------------- ##
528 ## ----------------- ##
537 # ---------------------
558 test -z "$_G_HAVE_PLUSEQ_OP" \
583 # ----------------------------
606 # --------------------------
610 # func_append_uniq options " --another-option option-argument"
612 # will only append to $options if " --another-option option-argument "
630 # ------------------
632 test -z "$_G_HAVE_ARITH_OP" \
654 # ------------------
687 # -------------------------------------------
699 # --------------------------------------------------------
720 # ----------------
739 # --------------------
740 # Invoke $ECHO with all args, space-separated.
748 # ------------------------------
765 test -n "$_G_tc" && {
784 # -----------------
797 # -----------------------
809 # -----------------------------
820 # ---------------
823 test -z "$_G_HAVE_XSI_OPS" \
845 # func_mkdir_p DIRECTORY-PATH
846 # ---------------------------
847 # Make sure the entire path to DIRECTORY-PATH is available.
855 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
857 # Protect directory names starting with '-'
859 -*) _G_directory_path=./$_G_directory_path ;;
863 while test ! -d "$_G_directory_path"; do
872 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
887 test -d "$_G_directory_path" || \
894 # -------------------------
902 _G_template=${TMPDIR-/tmp}/${1-$progname}
905 # Return a directory name, but don't create it in dry-run mode
906 _G_tmpdir=$_G_template-$$
910 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
912 if test ! -d "$_G_tmpdir"; then
914 _G_tmpdir=$_G_template-${RANDOM-0}$$
922 # If we're not in dry-run mode, bomb out on failure
923 test -d "$_G_tmpdir" || \
932 # ------------------------
933 # Remove doubled-up and trailing slashes, "." path components,
963 # we take advantage of case's first-match behaviour.
986 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
991 if test -z "$func_normal_abspath_result"; then
997 -e "$_G_pathcar"`
999 -e "$_G_pathcdr"`
1016 # Restore leading double-slash if one was found on entry.
1022 # --------------------
1031 # fails when set -e is in force, so we need another command to
1038 # --------------------------------
1063 if test -z "$func_relative_path_result"; then
1071 if test -z "$func_relative_path_tlibdir"; then
1082 # Now calculate path; take care to avoid doubling-up slashes.
1086 if test -n "$func_stripname_result"; then
1091 if test -n "$func_relative_path_result"; then
1096 test -n "$func_relative_path_result" || func_relative_path_result=.
1103 # ----------------------------
1113 # one-time-loop (easy break)
1118 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1166 # double-quote args containing shell metacharacters to delay
1179 # -----------------------
1182 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1183 printf -v _GL_test_printf_tilde %q '~'
1187 printf -v func_quotefast_eval_result %q "$1"
1199 printf -v func_quotefast_eval_result %q "$1"
1214 # ------------------------
1219 # double-quoted (when needed), suitable for a subsequent eval
1225 # ----------------
1227 # - escape shell special characters
1229 # - the same as 'eval'; but do not quote variable references
1231 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1235 # - produce also $func_quote_arg_unquoted_result which does not contain
1236 # wrapping double-quotes.
1241 # ------------+-----------------------+-------------------
1246 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1251 # --------------+---------------------+--------------------
1252 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1269 # Faster quote-for-eval for some shells.
1278 # ------------------------
1286 while test 0 -lt $#; do
1288 if test -n "$func_quote_result"; then
1299 # ---------------------------------
1321 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1322 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1329 # -----------------------------
1338 _G_fail_exp=${2-':'}
1346 if test 0 -ne "$_G_status"; then
1354 # ------------------------------------
1363 _G_fail_exp=${2-':'}
1375 if test 0 -ne "$_G_status"; then
1383 # ----------
1386 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1393 [0-9]* | *[!a-zA-Z0-9_]*)
1394 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1404 # -------------------
1417 # -----------------------------
1430 # ----------------------------
1455 # -----------------------
1456 # 'sort -V' is not generally available.
1458 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1468 | 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
1472 # ---------------------
1486 # mode: shell-script
1487 # sh-indentation: 2
1488 # eval: (add-hook 'before-save-hook 'time-stamp)
1489 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1490 # time-stamp-time-zone: "UTC"
1500 # Copyright (C) 2010-2018 Bootstrap Authors
1504 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1510 # <https://github.com/gnulib-modules/bootstrap/issues>
1513 scriptversion=2018-07-24.06; # UTC
1516 ## ------ ##
1518 ## ------ ##
1528 # . relative/path/to/options-parser
1534 # In order for the '--version' option to work, you will need to have a
1538 # For '-h' and '--help' to work, you will also need a one line
1542 # The default options also support '--debug', which will turn on shell
1544 # use), and '--verbose' and the func_verbose function to allow your script
1546 # '--verbose'.
1553 ## -------------- ##
1555 ## -------------- ##
1561 # The usage line for option parsing errors and the start of '-h' and
1562 # '--help' output messages. You can embed shell variables for delayed
1564 # quote other shell meta-characters carefully to prevent them being
1568 # Short help message in response to '-h' and '--help'. Add to this or
1572 --debug enable verbose shell tracing
1573 -W, --warnings=CATEGORY
1575 -v, --verbose verbosely report processing
1576 --version print version information and exit
1577 -h, --help print short or long help message and exit
1580 # Additional text appended to 'usage_message' in response to '--help'.
1588 fatal_help="Try '\$progname --help' for more information."
1592 ## ------------------------- ##
1594 ## ------------------------- ##
1601 # -----------------------
1613 # ---------------------------------
1630 # ------------------------------------
1642 # ---------------------------------------------
1660 # ---------------------------------
1663 # than a whitespace-delimited list of legal shell function names, and
1664 # no effort is wasted trying to catch shell meta-characters or preserve
1689 ## --------------- ##
1691 ## --------------- ##
1713 # -s, --silent don'\''t print informational messages
1730 # while test $# -gt 0; do
1733 # --silent|-s) opt_silent=:
1736 # # Separate non-argument short options:
1737 # -s*) func_split_short_opt "$_G_opt"
1739 # "-$func_split_short_opt_arg" ${1+"$@"}
1764 # '--silent' and '--verbose' options are mutually exclusive."
1774 # ----------------------------
1786 # ---------------------
1809 # As we (func_options) are top-level options-parser function and
1819 # --------------------------
1840 # ---------------------------
1849 while test $# -gt 0; do
1858 # this if-branch). No need to quote it again.
1863 test $# -gt 0 || break
1866 # and thus we remove _G_opt from "$@" and need to re-quote.
1871 --debug|-x) debug_cmd='set -x'
1876 --no-warnings|--no-warning|--no-warn)
1877 set dummy --warnings none ${1+"$@"}
1881 --warnings|--warning|-W)
1910 --verbose|-v) opt_verbose=: ;;
1911 --version) func_version ;;
1912 -\?|-h) func_usage ;;
1913 --help) func_help ;;
1916 --*=*) func_split_equals "$_G_opt"
1923 -W*)
1930 # Separate non-argument short options:
1931 -\?*|-h*|-v*|-x*)
1934 "-$func_split_short_opt_arg" ${1+"$@"}
1938 --) _G_parse_options_requote=: ; break ;;
1939 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1960 # ------------------------------
1968 # Display all warnings if -W was not given.
1969 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1980 ## ----------------- ##
1982 ## ----------------- ##
1985 # hookable option parser framework in ascii-betical order.
1989 # ----------------------
2004 # ---------
2017 # ------------------------
2030 # ------------------------
2033 test -z "$_G_HAVE_XSI_OPS" \
2066 # -----------------------------
2085 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2086 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2092 # ----------
2099 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2105 # ------------------
2113 $SED -n 's|^# ||
2125 # ------------
2141 $SED -n '
2161 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2171 # mode: shell-script
2172 # sh-indentation: 2
2173 # eval: (add-hook 'before-save-hook 'time-stamp)
2174 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2175 # time-stamp-time-zone: "UTC"
2179 scriptversion='(GNU libtool) 2.4.6.42-b88ce-dirty'
2183 # ----------------
2203 # -------------------
2214 ## ---------------- ##
2216 ## ---------------- ##
2221 usage='$progpath [OPTION]... [MODE-ARG]...'
2223 # Short help message in response to '-h'.
2225 --config show all configuration variables
2226 --debug enable verbose shell tracing
2227 -n, --dry-run display commands without modifying any files
2228 --features display basic configuration information and exit
2229 --mode=MODE use operation mode MODE
2230 --no-warnings equivalent to '-Wnone'
2231 --preserve-dup-deps don't remove duplicate dependency libraries
2232 --quiet, --silent don't print informational messages
2233 --tag=TAG use configuration variables from tag TAG
2234 -v, --verbose print more informational messages than default
2235 --version print version information
2236 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2237 -h, --help, --help-all print short, long, or detailed help message
2240 # Additional text appended to 'usage_message' in response to '--help'.
2258 MODE-ARGS vary depending on the MODE. When passed as first option,
2259 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2260 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2265 host-triplet: $host
2270 version: $progname (GNU libtool) 2.4.6.42-b88ce-dirty
2271 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2272 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2274 Report bugs to <bug-libtool@gnu.org>.
2281 # func_lo2o OBJECT-NAME
2282 # ---------------------
2283 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2298 # func_xform LIBOBJ-OR-SOURCE
2299 # ---------------------------
2300 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2301 # suffix to a '.lo' libtool-object suffix.
2321 # -------------------------------
2333 # -----------
2345 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2353 # -------------
2374 # -----------------------
2389 *[!-_A-Za-z0-9,/]*)
2404 # also don't use non-portable quotes within backquotes within
2406 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2417 # ------------------------
2424 if test -z "$macro_version"; then
2454 # -----------------------------
2474 # Shorthand for --mode=foo, only valid as the first argument
2477 shift; set dummy --mode clean ${1+"$@"}; shift
2480 shift; set dummy --mode compile ${1+"$@"}; shift
2483 shift; set dummy --mode execute ${1+"$@"}; shift
2486 shift; set dummy --mode finish ${1+"$@"}; shift
2489 shift; set dummy --mode install ${1+"$@"}; shift
2492 shift; set dummy --mode link ${1+"$@"}; shift
2495 shift; set dummy --mode uninstall ${1+"$@"}; shift
2512 # ---------------------------------
2522 while test $# -gt 0; do
2527 --dry-run|--dryrun|-n)
2531 --config) func_config ;;
2533 --dlopen|-dlopen)
2539 --preserve-dup-deps)
2542 --features) func_features ;;
2544 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2546 --help) opt_help=: ;;
2548 --help-all) opt_help=': help-all' ;;
2550 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2565 --no-silent|--no-quiet)
2570 --no-warnings|--no-warning|--no-warn)
2575 --no-verbose)
2580 --silent|--quiet)
2586 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2593 --verbose|-v) opt_quiet=false
2618 # ---------------------------------
2623 # save first non-option argument
2624 if test 0 -lt $#; then
2629 # preserve --debug
2630 test : = "$debug_cmd" || func_append preserve_args " --debug"
2655 # Only execute mode is allowed to have -dlopen flags.
2656 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2657 func_error "unrecognized option '-dlopen'"
2662 # Change the help message to a mode-specific one.
2664 help="Try '$progname --help --mode=$opt_mode' for more information."
2674 # Process options as early as possible so that --help and --version
2681 ## ----------- ##
2683 ## ----------- ##
2693 # will be execed at the end. This prevents here-documents from being
2720 test -f "$1" &&
2721 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2734 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2742 exec 0<&5 5<&-
2753 test -f "$1" &&
2793 # Execute tilde-delimited COMMANDS.
2795 # FAIL_CMD may read-access the current command in variable CMD!
2805 func_show_eval "$cmd" "${2-:}"
2814 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2861 # if one wasn't chosen via the "--tag" command line option.
2869 if test -n "$available_tags" && test -z "$tagname"; then
2887 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2890 # Double-quote args containing other shell metacharacters.
2908 # was found and let the user know that the "--tag" command
2910 if test -z "$tagname"; then
2912 func_fatal_error "specify a tag with '--tag'"
2943 # $write_libobj - a libtool object file
2952 # Name of the non-PIC object
2979 if test -n "$1"; then
2980 # Unfortunately, winepath does not exit with a non-zero error code, so we
2984 # zero AND non-empty stdout, which explains the odd construction:
2985 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2986 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2988 $SED -e "$sed_naive_backslashify"`
3013 if test -n "$1"; then
3019 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3020 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3052 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3054 if test "$?" -ne 0; then
3060 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3075 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3088 if test -z "$2" && test -n "$1"; then
3107 if test -z "$4" && test -n "$3"; then
3116 $SED -e "$lt_replace_pathsep_chars"`
3204 if test -n "$1"; then
3221 if test -n "$1"; then
3224 func_to_host_file_result=`cygpath -m "$1"`
3239 if test -n "$1"; then
3256 if test -n "$1"; then
3258 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3275 if test -n "$1"; then
3278 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3315 if test -z "$to_host_path_cmd"; then
3353 if test -n "$1"; then
3377 if test -n "$1"; then
3381 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3398 if test -n "$1"; then
3420 if test -n "$1"; then
3425 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3444 if test -n "$1"; then
3451 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3468 func_dll_def_p_tmp=`$SED -n \
3469 -e 's/^[ ]*//' \
3470 -e '/^\(;.*\)*$/d' \
3471 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3472 -e q \
3485 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3509 # Accept any command-line options.
3511 -o)
3512 test -n "$libobj" && \
3513 func_fatal_error "you cannot specify '-o' more than once"
3518 -pie | -fpie | -fPIE)
3523 -shared | -static | -prefer-pic | -prefer-non-pic)
3528 -no-suppress)
3533 -Xcompiler)
3538 -Wc,*)
3539 func_stripname '-Wc,' '' "$arg"
3573 func_fatal_error "you must specify an argument for -Xcompile"
3576 func_fatal_error "you must specify a target with '-o'"
3580 test -z "$libobj" && {
3588 # If the user specifies -o file.o, it is replaced with file.lo
3610 -shared)
3617 -static)
3623 -prefer-pic)
3628 -prefer-non-pic)
3644 test -z "$base_compile" && \
3661 # non-PIC code in shared libraries is not supported
3666 # not support -o with -c
3669 lockfile=$output_obj.lock
3673 lockfile=
3679 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3680 func_echo "Waiting for $lockfile to be removed"
3684 if test -f "$lockfile"; then
3686 *** ERROR, $lockfile exists and contains:
3687 `cat $lockfile 2>/dev/null`
3691 your compiler does not support '-c' and '-o' together. If you
3693 avoid parallel builds (make -j) in this platform, or get a better
3700 $ECHO "$srcfile" > "$lockfile"
3704 func_append removelist " $lockfile"
3726 if test -z "$output_obj"; then
3728 func_append command " -o $lobj"
3732 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3735 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3737 *** ERROR, $lockfile contains:
3738 `cat $lockfile 2>/dev/null`
3745 your compiler does not support '-c' and '-o' together. If you
3747 avoid parallel builds (make -j) in this platform, or get a better
3755 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3766 # Only build a position-dependent object if we build old libraries.
3775 func_append command " -o $obj"
3784 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3786 *** ERROR, $lockfile contains:
3787 `cat $lockfile 2>/dev/null`
3794 your compiler does not support '-c' and '-o' together. If you
3796 avoid parallel builds (make -j) in this platform, or get a better
3804 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3815 removelist=$lockfile
3816 $RM "$lockfile"
3839 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3844 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3853 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3859 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3860 -no-suppress do not suppress compiler output for multiple passes
3861 -prefer-pic try to build PIC objects only
3862 -prefer-non-pic try to build non-PIC objects only
3863 -shared do not build a '.o' file suitable for static linking
3864 -static only build a '.o' file suitable for static linking
3865 -Wc,FLAG pass FLAG directly to the compiler
3867 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3877 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3883 -dlopen FILE add the directory containing FILE to the library path
3885 This mode sets the library path environment variable according to '-dlopen'
3897 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3904 the '--dry-run' option if you just want to see what would be executed."
3909 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3913 INSTALL-COMMAND is the installation command. The first component should be
3916 The following components of INSTALL-COMMAND are treated specially:
3918 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3921 BSD-compatible install options are recognized)."
3926 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3931 LINK-COMMAND is a command using the C compiler that you would use to create
3934 The following components of LINK-COMMAND are treated specially:
3936 -all-static do not do any dynamic linking at all
3937 -avoid-version do not add a version suffix if possible
3938 -bindir BINDIR specify path to binaries directory (for systems where
3940 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3941 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3942 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3943 -export-symbols SYMFILE
3945 -export-symbols-regex REGEX
3947 -LLIBDIR search LIBDIR for required installed libraries
3948 -lNAME OUTPUT-FILE requires the installed library libNAME
3949 -module build a library that can dlopened
3950 -no-fast-install disable the fast-install mode
3951 -no-install link a not-installable executable
3952 -no-undefined declare that a library does not refer to external symbols
3953 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3954 -objectlist FILE use a list of object files found in FILE to specify objects
3955 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3956 -precious-files-regex REGEX
3958 -release RELEASE specify package release information
3959 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3960 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3961 -shared only do dynamic linking of libtool libraries
3962 -shrext SUFFIX override the standard shared library file extension
3963 -static do not do any dynamic linking of uninstalled libtool libraries
3964 -static-libtool-libs
3966 -version-info CURRENT[:REVISION[:AGE]]
3968 -weak LIBNAME declare that the target provides the LIBNAME interface
3969 -Wc,FLAG
3970 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3971 -Wl,FLAG
3972 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3973 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3975 All other options (arguments beginning with '-') are ignored.
3981 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3982 only library objects ('.lo' files) may be specified, and '-rpath' is
3985 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3988 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3994 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3999 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4012 $ECHO "Try '$progname --help' for more information about other modes."
4015 # Now that we've collected a possible --mode arg, show help if necessary
4025 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4041 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4054 test -z "$cmd" && \
4057 # Handle -dlopen flags immediately.
4059 test -f "$file" \
4078 if test -z "$dlname"; then
4080 test -n "$library_names" && \
4081 func_warning "'$file' was not linked with '-export-dynamic'"
4088 if test -f "$dir/$objdir/$dlname"; then
4091 if test ! -f "$dir/$dlname"; then
4104 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4111 test -n "$absdir" && dir=$absdir
4114 if eval "test -z \"\$$shlibpath_var\""; then
4130 -* | *.la | *.lo ) ;;
4151 if test -n "$shlibpath_var"; then
4158 if test -n "$shlibpath_var"; then
4192 if test -d "$opt"; then
4195 elif test -f "$opt"; then
4207 if test -n "$libs"; then
4208 if test -n "$lt_sysroot"; then
4223 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4224 > $tmpdir/tmp-la
4225 mv -f $tmpdir/tmp-la $lib
4231 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4233 if test -n "$finish_cmds"; then
4238 if test -n "$finish_eval"; then
4250 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4251 echo "----------------------------------------------------------------------"
4259 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4261 if test -n "$shlibpath_var"; then
4262 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4265 if test -n "$runpath_var"; then
4266 echo " - add LIBDIR to the '$runpath_var' environment variable"
4269 if test -n "$hardcode_libdir_flag_spec"; then
4273 $ECHO " - use the '$flag' linker flag"
4275 if test -n "$admincmds"; then
4276 $ECHO " - have your system administrator run these commands:$admincmds"
4278 if test -f /etc/ld.so.conf; then
4279 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4285 solaris2.[6789]|solaris2.1[0-9])
4293 echo "----------------------------------------------------------------------"
4344 if test -n "$dest"; then
4351 -d) isdir=: ;;
4352 -f)
4357 -g | -m | -o)
4360 -s)
4361 stripme=" -s"
4364 -*)
4368 if test -n "$prev"; then
4369 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4384 if test -n "$arg2"; then
4390 test -z "$install_prog" && \
4393 test -n "$prev" && \
4396 if test -n "$install_override_mode" && $no_mode; then
4399 func_append install_shared_prog " -m $func_quote_arg_result"
4403 if test -z "$files"; then
4404 if test -z "$dest"; then
4416 test -d "$dest" && isdir=:
4427 test "$#" -gt 1 && \
4431 [\\/]* | [A-Za-z]:[\\/]*) ;;
4491 if test -n "$relink_command"; then
4493 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4504 if test -n "$inst_prefix_dir"; then
4506 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4518 if test -n "$1"; then
4523 test -n "$relink_command" && srcname=${realname}T
4545 if test -n "$tstripme" && test -n "$striplib"; then
4549 if test "$#" -gt 0; then
4551 # Try 'ln -sf' first, because the 'ln' binary might depend on
4552 # the symlink we replace! Solaris /bin/ln does not understand -f,
4553 # so we also need to try rm && ln -s.
4557 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4566 # Install the pseudo-library for information purposes.
4573 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4580 if test -n "$destname"; then
4588 # Deduce the name of the destination old-style object file.
4604 test -n "$destfile" && \
4609 # Deduce the name of the old-style object file.
4619 if test -n "$destname"; then
4633 if test ! -f "$file"; then
4663 test -z "$generated_by_libtool_version" && \
4670 if test -f "$lib"; then
4674 if test -n "$libdir" && test ! -f "$libfile"; then
4684 if test no = "$fast_install" && test -n "$relink_command"; then
4734 $opt_dry_run || if test -n "$outputname"; then
4752 if test -n "$stripme" && test -n "$old_striplib"; then
4760 test -n "$future_libdirs" && \
4761 func_warning "remember to run '$progname --finish$future_libdirs'"
4763 if test -n "$current_libdirs"; then
4765 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4766 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4784 my_pic_p=${3-false}
4785 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4788 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4789 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4796 if test -n "$my_dlsyms"; then
4809 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4817 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4823 relocations are performed -- see ld's documentation on pseudo-relocs. */
4850 if test -n "$exclude_expsyms"; then
4852 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4857 if test -n "$export_symbols_regex"; then
4859 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4865 if test -z "$export_symbols"; then
4869 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4879 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4880 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4903 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4906 if test -n "$dlprefile_dlname"; then
4910 # no lafile. user explicitly requested -dlpreopen <import library>.
4916 if test -n "$dlprefile_dlbasename"; then
4924 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4946 test -f "$nlist" || : > "$nlist"
4948 if test -n "$exclude_expsyms"; then
4949 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4954 if $GREP -v "^: " < "$nlist" |
4955 if sort -k 3 </dev/null >/dev/null 2>&1; then
4956 sort -k 3
4963 $GREP -v "^: " < "$nlist" > "$nlist"S
4966 if test -f "$nlist"S; then
4973 if test -n "$global_symbol_to_import"; then
4988 if test -s "$nlist"I; then
4993 for (; symbol->name; ++symbol)
4995 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5005 if test -s "$nlist"I; then
5037 *" -static "*) ;;
5041 # a FreeBSD bug that causes programs to crash when -lm is
5043 # pic_flag when linking with -static. The problem exists in
5045 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5046 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5047 *-*-hpux*)
5058 -pie | -fpie | -fPIE) ;;
5064 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5073 if test -f "$output_objdir/$my_outputname.def"; then
5104 # ARG is a GNU/binutils-style import library. Returns
5111 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5112 test -n "$func_cygming_gnu_implib_tmp"
5117 # ARG is an MS-style import library. Returns
5125 test -n "$func_cygming_ms_implib_tmp"
5140 win32_fileres=`file -L $1 2>/dev/null`
5147 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5148 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5161 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5162 $SED -n -e '
5194 # Platform-specific function to extract the
5205 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5211 # platform-specific function to extract the name of the
5224 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5233 /:[ ]*file format pe[i]\{,1\}-/d
5241 $SED -n '
5262 # 0x302f exports -- but will fail for DLLs whose name actually
5267 $SED -e '/^\./d;/^.\./d;q'
5271 # Platform-specific function to extract the
5276 # does not support the --identify-strict option.
5289 # ms-generated import library
5306 lockfile=$f_ex_an_ar_oldlib.lock
5307 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
5308 func_echo "Waiting for $lockfile to be removed"
5313 'stat=$?; rm -f "$lockfile"; exit $stat'
5315 $opt_dry_run || rm -f "$lockfile"
5317 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5340 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5351 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5361 *-darwin*)
5371 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5372 if test -n "$darwin_arches"; then
5373 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5377 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5378 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5379 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5382 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5385 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5389 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5390 $LIPO -create -output "$darwin_file" $darwin_files
5392 $RM -rf unfat-$$
5404 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5423 # the $objdir directory. This is a cygwin/mingw-specific
5427 func_emit_wrapper_arg1=${1-no}
5432 # $output - temporary wrapper script for $objdir/$outputname
5442 # metacharacters that are still active within double-quoted strings.
5446 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5451 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5454 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5459 # The HP-UX ksh and POSIX shell print the target directory to stdout
5492 # windows platforms, and (c) all begin with the string "--lt-"
5496 # There are only two supported options: --lt-debug and
5497 # --lt-dump-script. There is, deliberately, no --lt-help.
5509 --lt-debug) lt_option_debug=1 ;;
5510 --lt-dump-script)
5511 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5513 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5517 --lt-*)
5518 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5525 if test -n \"\$lt_option_debug\"; then
5530 # Used when --lt-debug. Prints its arguments to stdout
5548 *-*-mingw | *-*-os2* | *-cegcc*)
5550 if test -n \"\$lt_option_debug\"; then
5560 if test -n \"\$lt_option_debug\"; then
5574 # Strips options in the --lt-* namespace from \$@ and
5579 *\\ --lt-*)
5583 --lt-*) ;;
5600 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5601 while test -n \"\$file\"; do
5607 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5613 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5633 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5638 program=lt-'$outputname'$exeext
5641 if test ! -f \"\$progdir/\$program\" ||
5642 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5645 file=\"\$\$-\$program\"
5647 if test ! -d \"\$progdir\"; then
5656 if test -n \"\$relink_command\"; then
5679 if test -f \"\$progdir/\$program\"; then"
5686 if test -n "$dllsearchpath"; then
5694 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5699 # Some systems cannot cope with colon-terminated $shlibpath_var
5732 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5770 /* declarations of non-ANSI functions */
5868 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5900 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5911 if test -n "$dllsearchpath"; then
5926 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5937 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5940 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5990 have already dealt with, above (inluding dump-script), then
5994 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5995 or a configure.ac-settable value.
6008 /* The GNU banner must be the first non-error debug message */
6038 /* target_name transforms -- use actual target program name; might have lt- prefix */
6064 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6067 /* DO want the lt- prefix here if it exists, so use target_name */
6121 if (rval == -1)
6275 p_len = (size_t) (q - p);
6346 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6348 p--;
6393 str += len - patlen;
6507 /* some systems can't cope with a ':'-terminated path #' */
6509 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6511 new_value[--len] = '\0';
6549 - Space and tab are interpreted as delimiters. They are not treated as
6551 - Unescaped double quotes are removed from the input. Their only effect is
6554 - Backslashes not followed by double quotes are not special.
6555 - But 2*n+1 backslashes followed by a double quote become
6557 \" -> "
6558 \\\" -> \"
6559 \\\\\" -> \\"
6623 for (j = backslashes + 1; j > 0; j--)
6635 for (j = backslashes; j > 0; j--)
6659 $SED -n -e '
6680 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6695 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6710 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6720 # -no-undefined on the libtool link line when we can be certain
6778 single_module=$wl-single_module
6781 # We need to know -static, to get the right output filenames.
6785 -shared)
6791 -all-static | -static | -static-libtool-libs)
6793 -all-static)
6794 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6797 if test -n "$link_static_flag"; then
6802 -static)
6803 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6808 -static-libtool-libs)
6809 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6823 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6826 while test "$#" -gt 0; do
6834 if test -n "$prev"; then
6890 test -f "$arg" \
6902 *-*-darwin*)
6920 # '-mllvm $arg' options when doing the link step.
6925 if test -f "$arg"; then
6932 # A libtool-controlled object.
6942 if test -z "$pic_object" ||
6943 test -z "$non_pic_object" ||
6968 # CHECK ME: I think I busted this. -Ossama
6970 # Preload the old-style object.
6980 # Non-PIC object.
6985 # A standard non-PIC object
6987 if test -z "$pic_object" || test none = "$pic_object"; then
6997 # Only an error if not doing a dry-run.
7031 release=-$arg
7038 [\\/]* | [A-Za-z]:[\\/]*) ;;
7040 func_fatal_error "only absolute run-paths are allowed"
7096 fi # test -n "$prev"
7101 -all-static)
7102 if test -n "$link_static_flag"; then
7103 # See comment for -static flag below, for more details.
7110 -allow-undefined)
7112 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7115 -avoid-version)
7120 -bindir)
7125 -dlopen)
7130 -dlpreopen)
7135 -export-dynamic)
7140 -export-symbols | -export-symbols-regex)
7141 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7142 func_fatal_error "more than one -exported-symbols argument is not allowed"
7144 if test X-export-symbols = "X$arg"; then
7152 -framework)
7157 -inst-prefix-dir)
7162 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7163 # so, if we see these flags be careful not to treat them like -L
7164 -L[A-Z][A-Z]*:*)
7166 no/*-*-irix* | /*-*-irix*)
7174 -L*)
7175 func_stripname "-L" '' "$arg"
7176 if test -z "$func_stripname_result"; then
7177 if test "$#" -gt 0; then
7178 func_fatal_error "require no space between '-L' and '$1'"
7180 func_fatal_error "need path for '-L' option"
7187 [\\/]* | [A-Za-z]:[\\/]*) ;;
7190 test -z "$absdir" && \
7196 *" -L$dir "* | *" $arg "*)
7202 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7203 *) func_append deplibs " -L$dir" ;;
7209 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7226 -l*)
7227 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7229 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7233 *-*-os2*)
7235 test X-lc = "X$arg" && continue
7237 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7239 test X-lc = "X$arg" && continue
7241 *-*-rhapsody* | *-*-darwin1.[012])
7246 *-*-sco3.2v5* | *-*-sco5v6*)
7248 test X-lc = "X$arg" && continue
7250 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7252 test X-lc = "X$arg" && continue
7255 elif test X-lc_r = "X$arg"; then
7257 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7258 # Do not include libc_r directly, use -pthread flag.
7267 -mllvm)
7272 -module)
7277 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7279 # Darwin uses the -arch flag to determine output architecture.
7280 -model|-arch|-isysroot|--sysroot)
7288 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7289 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7300 -multi_module)
7301 single_module=$wl-multi_module
7305 -no-fast-install)
7310 -no-install)
7312 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7315 func_warning "'-no-install' is ignored for $host"
7316 func_warning "assuming '-no-fast-install' instead"
7324 -no-undefined)
7329 -objectlist)
7334 -os2dllname)
7339 -o) prev=output ;;
7341 -precious-files-regex)
7346 -release)
7351 -rpath)
7356 -R)
7361 -R*)
7362 func_stripname '-R' '' "$arg"
7366 [\\/]* | [A-Za-z]:[\\/]*) ;;
7372 func_fatal_error "only absolute run-paths are allowed"
7382 -shared)
7383 # The effects of -shared are defined in a previous loop.
7387 -shrext)
7392 -static | -static-libtool-libs)
7393 # The effects of -static are defined in a previous loop.
7394 # We used to do the same as -all-static on platforms that
7401 -thread-safe)
7406 -version-info)
7411 -version-number)
7417 -weak)
7422 -Wc,*)
7423 func_stripname '-Wc,' '' "$arg"
7438 -Wl,*)
7439 func_stripname '-Wl,' '' "$arg"
7455 -Xcompiler)
7460 -Xlinker)
7465 -XCClinker)
7470 # -msg_* for osf cc
7471 -msg_*)
7477 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7478 # -r[0-9][0-9]* specify processor for the SGI compiler
7479 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7480 # +DA*, +DD* enable 64-bit mode for the HP compiler
7481 # -q* compiler args for the IBM compiler
7482 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7483 # -F/path path to uninstalled frameworks, gcc on darwin
7484 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7485 # -fstack-protector* stack protector flags for GCC
7487 # -tp=* Portland pgcc target processor selection
7488 # --sysroot=* for sysroot support
7489 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7490 # -specs=* GCC specs files
7491 # -stdlib=* select c++ std lib with clang
7492 # -fsanitize=* Clang/GCC memory and address sanitizer
7493 # -fuse-ld=* Linker select flags for GCC
7494 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7495 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7496 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7497 -specs=*|-fsanitize=*|-fuse-ld=*)
7506 -Z*)
7508 # OS/2 uses -Zxxx to specify OS/2-specific options
7513 -Zlinker | -Zstack)
7526 -* | +*)
7537 # A libtool-controlled object.
7547 if test -z "$pic_object" ||
7548 test -z "$non_pic_object" ||
7573 # CHECK ME: I think I busted this. -Ossama
7575 # Preload the old-style object.
7585 # Non-PIC object.
7590 # A standard non-PIC object
7592 if test -z "$pic_object" || test none = "$pic_object"; then
7602 # Only an error if not doing a dry-run.
7627 # A libtool-controlled library.
7631 # This library was specified with -dlopen.
7635 # The library was specified with -dlpreopen.
7654 if test -n "$arg"; then
7660 test -n "$prev" && \
7663 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7675 if test -n "$shlibpath_var"; then
7709 # that are linked more than once (e.g. -la -lb -la)
7741 notinst_deplibs= # not-installed libtool libraries
7742 notinst_path= # paths that contain not-installed libtool libraries
7751 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7770 # so that -L comes before libs that need it for instance...
7796 # Ignore non-libtool-libs
7826 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7827 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7842 -l*)
7844 func_warning "'-l' is ignored for archives/objects"
7847 func_stripname '-l' '' "$deplib"
7858 if test -f "$lib"; then
7912 ;; # -l
7928 -L*)
7934 func_stripname '-L' '' "$deplib"
7949 func_stripname '-L' '' "$deplib"
7954 func_warning "'-L' is ignored for archives/objects"
7958 ;; # -L
7959 -R*)
7961 func_stripname '-R' '' "$deplib"
7985 # but linking other static libraries is non-portable.
8054 $found || test -f "$lib" \
8081 # Convert "-framework foo" to "foo.ltframework"
8082 if test -n "$inherited_linker_flags"; then
8083 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8091 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8095 test -n "$dlopen" && func_append dlfiles " $dlopen"
8096 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8102 if test -z "$libdir"; then
8103 if test -z "$old_library"; then
8128 if test -n "$old_library" &&
8137 if test -z "$linklib"; then
8141 # This library was specified with -dlopen.
8143 test -z "$libdir" \
8144 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8145 if test -z "$dlname" ||
8162 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8165 if test -z "$abs_ladir"; then
8177 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8188 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8203 # This library was specified with -dlpreopen.
8205 if test -z "$libdir" && test prog = "$linkmode"; then
8206 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8209 # special handling for platforms with PE-DLLs.
8219 if test -n "$dlname"; then
8227 test -z "$libdir" && \
8234 if test -n "$old_library"; then
8238 test -z "$libdir" && \
8241 elif test -n "$dlname"; then
8250 if test -z "$libdir"; then
8269 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8277 -L*) func_stripname '-L' '' "$deplib"
8301 if test -n "$library_names" &&
8304 test -z "$old_library"; }; then
8306 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8315 # Skip directories that are in the system default run-time
8340 test -n "$library_names"; }; }; then
8351 if test -n "$library_names" &&
8352 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8368 # Warn about portability, can't link against -module's on some
8377 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8389 # Skip directories that are in the system default run-time
8411 if test -n "$old_archive_from_expsyms_cmds"; then
8419 if test -n "$dlname"; then
8421 elif test -n "$soname_spec"; then
8425 func_arith $current - $age
8427 versuffix=-$major
8440 newlib=libimp-$func_stripname_result.a
8443 if test -f "$output_objdir/$soname-def"; then :
8450 if test -f "$output_objdir/$newlib"; then :; else
8457 fi # test -n "$old_archive_from_expsyms_cmds"
8469 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8470 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8471 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8472 *-*-unixware7*) add_dir=-L$dir ;;
8473 *-*-darwin* )
8474 # if the lib is a (non-dlopened) module then we cannot
8476 if /usr/bin/file -L $add 2> /dev/null |
8480 if test -z "$old_library"; then
8487 elif test -n "$old_library"; then
8494 *-*-sunos*) add_shlibpath=$dir ;;
8496 add_dir=-L$dir
8497 add=-l$name
8500 add=-l$name
8510 add_dir=-L$absdir
8512 if test -n "$inst_prefix_dir"; then
8515 func_append add_dir " -L$inst_prefix_dir$libdir"
8519 add=-l$name
8522 add=-l$name
8534 if test -n "$add_shlibpath"; then
8541 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8542 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8544 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8545 test -n "$add" && deplibs="$add $deplibs"
8566 add_dir=-L$libdir
8567 add=-l$name
8573 add=-l$name
8575 if test -n "$inst_prefix_dir" &&
8576 test -f "$inst_prefix_dir$libdir/$linklib"; then
8583 add_dir=-L$libdir
8585 if test -n "$inst_prefix_dir"; then
8588 func_append add_dir " -L$inst_prefix_dir$libdir"
8592 add=-l$name
8596 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8597 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8599 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8600 test -n "$add" && deplibs="$add $deplibs"
8608 test -n "$old_library" && linklib=$old_library
8612 compile_deplibs="-l$name -L$dir $compile_deplibs"
8613 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8631 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8632 if test -z "$global_symbol_pipe"; then
8653 if test -n "$dependency_libs" &&
8657 # Extract -R from dependency_libs
8661 -R*) func_stripname '-R' '' "$libdir"
8681 -L*) func_stripname '-L' '' "$deplib"
8699 -L*) path=$deplib ;;
8707 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8710 if test -z "$absdir"; then
8718 *-*-darwin*)
8720 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8721 if test -n "$deplibrary_names"; then
8725 if test -f "$absdir/$objdir/$depdepl"; then
8727 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8728 if test -z "$darwin_install_name"; then
8729 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8731 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8732 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8738 path=-L$absdir/$objdir
8742 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8743 test -z "$libdir" && \
8748 path=-L$absdir
8765 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8805 -L*) new_libs="$deplib $new_libs" ;;
8806 -R*) ;;
8820 # using -Wl,-lname, so that libtool does not consider it
8837 -L*)
8854 case `$CC -V 2>&1 | sed 5q` in
8859 func_append postdeps ' -library=Cstd -library=Crun'
8872 func_append postdeps ' -library=Cstd -library=Crun'
8889 if test -n "$i"; then
8904 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8905 func_warning "'-dlopen' is ignored for archives"
8909 *\ -l* | *\ -L*)
8910 func_warning "'-l' and '-L' are ignored for archives" ;;
8913 test -n "$rpath" && \
8914 func_warning "'-rpath' is ignored for archives"
8916 test -n "$xrpath" && \
8917 func_warning "'-R' is ignored for archives"
8919 test -n "$vinfo" && \
8920 func_warning "'-version-info/-version-number' is ignored for archives"
8922 test -n "$release" && \
8923 func_warning "'-release' is ignored for archives"
8925 test -n "$export_symbols$export_symbols_regex" && \
8926 func_warning "'-export-symbols' is ignored for archives"
8935 # Make sure we only generate libraries of the form 'libNAME.la'.
8960 if test -n "$objs"; then
8962 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
8965 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8972 || func_warning "'-dlopen self' is ignored for libtool libraries"
8976 test 1 -lt "$#" \
8977 && func_warning "ignoring multiple '-rpath's for a libtool library"
8982 if test -z "$rpath"; then
8993 test -n "$vinfo" && \
8994 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8996 test -n "$release" && \
8997 func_warning "'-release' is ignored for convenience libraries"
9006 test -n "$7" && \
9007 func_fatal_help "too many parameters to '-version-info'"
9019 # There are really only two kinds -- those that
9027 darwin|freebsd-elf|linux|osf|windows|none)
9033 freebsd-aout|qnx|sunos)
9056 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]) ;;
9064 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]) ;;
9072 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]) ;;
9079 if test "$age" -gt "$current"; then
9094 func_arith $current - $age
9100 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9101 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9105 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9108 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9113 freebsd-aout)
9118 freebsd-elf)
9119 func_arith $current - $age
9126 func_arith $current - $age
9128 func_arith $current - $age + 1
9140 while test 0 -ne "$loop"; do
9141 func_arith $revision - $loop
9143 func_arith $loop - 1
9154 func_arith $current - $age
9160 func_arith $current - $age
9167 while test 0 -ne "$loop"; do
9168 func_arith $current - $loop
9170 func_arith $loop - 1
9195 # Use '-' rather than '.', since we only want one
9197 func_arith $current - $age
9199 versuffix=-$major
9208 if test -z "$vinfo" && test -n "$release"; then
9241 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9265 if test -n "$precious_files_regex"; then
9266 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9276 test -n "$removelist" && \
9291 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9292 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9295 if test -n "$xrpath"; then
9300 func_append temp_xrpath " -R$func_replace_sysroot_result"
9332 if test -n "$rpath"; then
9334 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9337 *-*-rhapsody* | *-*-darwin1.[012])
9341 *-*-netbsd*)
9344 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9347 *-*-sco3.2v5* | *-*-sco5v6*)
9350 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9356 func_append deplibs " -lc"
9369 # release should show up in the -l (ie -lgmp5) so we don't want to
9395 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9399 -l*)
9400 func_stripname -l '' "$i"
9410 if test -n "$i"; then
9415 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9439 -l*)
9440 func_stripname -l '' "$i"
9443 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9453 if test -n "$i"; then
9458 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9492 -l*)
9493 func_stripname -l '' "$a_deplib"
9503 if test -n "$a_deplib"; then
9505 if test -n "$file_magic_glob"; then
9506 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9510 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9513 shopt -s nocaseglob
9514 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9517 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9521 if ls -lLd "$potent_lib" 2>/dev/null |
9522 $GREP " -> " >/dev/null; then
9531 while test -h "$potlib" 2>/dev/null; do
9532 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9534 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9539 $SED -e 10q |
9548 if test -n "$a_deplib"; then
9556 if test -z "$potlib"; then
9565 # Add a -L argument.
9576 -l*)
9577 func_stripname -l '' "$a_deplib"
9587 if test -n "$a_deplib"; then
9590 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9592 potlib=$potent_lib # see symlink-check above in file_magic test
9602 if test -n "$a_deplib"; then
9610 if test -z "$potlib"; then
9619 # Add a -L argument.
9627 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9638 echo "*** Warning: inter-library dependencies are not supported in this platform."
9640 echo "*** Warning: inter-library dependencies are not known to be supported."
9642 echo "*** All declared inter-library dependencies are being dropped."
9655 *-*-rhapsody* | *-*-darwin1.[012])
9657 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9664 echo "*** Warning: libtool could not satisfy all declared inter-library"
9667 echo "*** application is linked with the -dlopen flag."
9668 if test -z "$global_symbol_pipe"; then
9683 echo "*** The inter-library dependencies that have been dropped here will be"
9685 echo "*** or is declared to -dlopen it."
9691 echo "*** it was explicitly requested with -no-undefined,"
9706 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9708 *-*-darwin*)
9709 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9710 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9711 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9720 *" -L$path/$objdir "*) ;;
9723 *" -L$path/$objdir "*)
9724 func_append new_libs " -L$path/$objdir" ;;
9731 -L*)
9742 # All the library-specific variables (install_libdir is set above).
9761 if test -n "$hardcode_libdir_flag_spec"; then
9762 if test -n "$hardcode_libdir_separator"; then
9765 if test -z "$hardcode_libdirs"; then
9781 elif test -n "$runpath_var"; then
9789 if test -n "$hardcode_libdir_separator" &&
9790 test -n "$hardcode_libdirs"; then
9794 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9802 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9807 if test -n "$shlibpath"; then
9819 if test -n "$soname_spec"; then
9824 if test -z "$dlname"; then
9836 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9840 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9849 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9867 if test -z "$export_symbols"; then
9868 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9890 && { test "$len" -lt "$max_cmd_len" \
9891 || test "$max_cmd_len" -le -1; }
9895 elif test -n "$nm_file_list_spec"; then
9924 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9925 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9931 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9933 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9937 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9945 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
9948 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9962 if test -n "$convenience"; then
9963 if test -n "$whole_archive_flag_spec" &&
9965 test -z "$libobjs"; then
9970 if test -n "$whole_archive_flag_spec"; then
9984 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9995 if test yes = "$module" && test -n "$module_cmds"; then
9996 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10004 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10016 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10031 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10046 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10059 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10079 if test -n "$save_libobjs"; then
10081 output=$output_objdir/$output_la-$k.$objext
10093 if test -z "$objlist" ||
10094 test "$len" -lt "$max_cmd_len"; then
10099 if test 1 -eq "$k"; then
10109 last_robj=$output_objdir/$output_la-$k.$objext
10112 output=$output_objdir/$output_la-$k.$objext
10122 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10125 if test -n "$last_robj"; then
10134 ${skipped_export-false} && {
10140 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10142 if test -n "$last_robj"; then
10147 test -n "$save_libobjs" &&
10173 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10174 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10179 ${skipped_export-false} && {
10180 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10182 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10186 if test -n "$orig_export_symbols"; then
10194 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10197 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10205 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10213 if test yes = "$module" && test -n "$module_cmds"; then
10214 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10220 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10228 if test -n "$delfiles"; then
10234 if test -n "$dlprefiles"; then
10271 if test -n "$convenience"; then
10272 if test -z "$whole_archive_flag_spec"; then
10287 # If -module or -export-dynamic was specified, set the dlname.
10296 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10297 func_warning "'-dlopen' is ignored for objects"
10301 *\ -l* | *\ -L*)
10302 func_warning "'-l' and '-L' are ignored for objects" ;;
10305 test -n "$rpath" && \
10306 func_warning "'-rpath' is ignored for objects"
10308 test -n "$xrpath" && \
10309 func_warning "'-R' is ignored for objects"
10311 test -n "$vinfo" && \
10312 func_warning "'-version-info' is ignored for objects"
10314 test -n "$release" && \
10315 func_warning "'-release' is ignored for objects"
10319 test -n "$objs$old_deplibs" && \
10320 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10336 # single-version convenience libraries. Whenever we create
10337 # different ones for PIC/non-PIC, this we'll have to duplicate
10341 # if reload_cmds runs $LD directly, get rid of -Wl from
10347 if test -n "$convenience"; then
10348 if test -n "$whole_archive_flag_spec"; then
10350 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10364 # Create the old-style object.
10371 if test -z "$libobj"; then
10372 if test -n "$gentop"; then
10380 if test -n "$gentop"; then
10391 if test -n "$pic_flag" || test default != "$pic_mode"; then
10398 if test -n "$gentop"; then
10410 test -n "$vinfo" && \
10411 func_warning "'-version-info' is ignored for programs"
10413 test -n "$release" && \
10414 func_warning "'-release' is ignored for programs"
10421 *-*-rhapsody* | *-*-darwin1.[012])
10423 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10424 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10429 *-*-darwin*)
10433 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10435 func_append compile_command " $wl-bind_at_load"
10436 func_append finalize_command " $wl-bind_at_load"
10440 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10441 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10442 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10452 *" -L$path/$objdir "*) ;;
10455 *" -L$path/$objdir "*)
10456 func_append new_libs " -L$path/$objdir" ;;
10463 -L*)
10478 if test -n "$rpath$xrpath"; then
10481 # This is the magic to use -rpath.
10493 if test -n "$hardcode_libdir_flag_spec"; then
10494 if test -n "$hardcode_libdir_separator"; then
10495 if test -z "$hardcode_libdirs"; then
10511 elif test -n "$runpath_var"; then
10518 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10519 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10534 if test -n "$hardcode_libdir_separator" &&
10535 test -n "$hardcode_libdirs"; then
10544 if test -n "$hardcode_libdir_flag_spec"; then
10545 if test -n "$hardcode_libdir_separator"; then
10546 if test -z "$hardcode_libdirs"; then
10562 elif test -n "$runpath_var"; then
10570 if test -n "$hardcode_libdir_separator" &&
10571 test -n "$hardcode_libdirs"; then
10577 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10586 if test -n "$prelink_cmds"; then
10614 if test -n "$postlink_cmds"; then
10616 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10621 if test -f "$output_objdir/${outputname}S.$objext"; then
10628 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10631 if test -n "$finalize_shlibpath"; then
10637 if test -n "$runpath_var"; then
10638 if test -n "$perm_rpath"; then
10646 if test -n "$finalize_perm_rpath"; then
10666 if test -n "$postlink_cmds"; then
10668 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10702 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10706 if test -n "$postlink_cmds"; then
10708 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10716 if test -n "$relink_command"; then
10719 if eval test -z \"\${$var+set}\"; then
10720 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10721 elif eval var_value=\$$var; test -z "$var_value"; then
10754 cwrappersource=$output_path/$objdir/lt-$output_name.c
10762 # because it contains $host paths and files. If cross-
10766 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10777 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10796 # See if we need to build an old-fashioned archive.
10812 $preload && test -f "$symfileobj" \
10818 if test -n "$addlibs"; then
10827 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10832 if test -n "$dlprefiles"; then
10850 done | sort | sort -uc >/dev/null 2>&1); then
10870 newobj=lt$counter-$objbase
10875 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10891 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10893 elif test -n "$archiver_list_spec"; then
10927 if test "$len" -lt "$max_cmd_len"; then
10935 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10943 if test -z "$oldobjs"; then
10953 test -n "$generated" && \
10965 if eval test -z \"\${$var+set}\"; then
10966 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10967 elif eval var_value=\$$var; test -z "$var_value"; then
10976 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
10987 if test -z "$install_libdir"; then
10999 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11000 test -z "$libdir" && \
11004 -L*)
11005 func_stripname -L '' "$deplib"
11007 func_append newdependency_libs " -L$func_replace_sysroot_result"
11009 -R*)
11010 func_stripname -R '' "$deplib"
11012 func_append newdependency_libs " -R$func_replace_sysroot_result"
11025 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11026 test -z "$libdir" && \
11038 # Only pass preopened files to the pseudo-archive (for
11044 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11045 test -z "$libdir" && \
11056 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11065 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11075 # systems that can't hard-code library paths into their executables
11078 # libtool variables, so we have to hard-code the OSs to which it
11085 # If a -bindir argument was supplied, place the dll there.
11086 if test -n "$bindir"; then
11096 # $outputname - a libtool library file
11128 # Should we warn about portability when linking against -modules?
11174 -f) func_append RM " $arg"; rmforce=: ;;
11175 -*) func_append RM " $arg" ;;
11180 test -z "$RM" && \
11205 # Don't error if the file doesn't exist and rm -f was used.
11206 if { test -L "$file"; } >/dev/null 2>&1 ||
11207 { test -h "$file"; } >/dev/null 2>&1 ||
11208 test -f "$file"; then
11210 elif test -d "$file"; then
11229 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11235 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11237 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11240 if test -n "$library_names"; then
11245 if test -n "$old_library"; then
11263 if test -n "$pic_object" && test none != "$pic_object"; then
11267 # Add non-PIC object to the list of files to remove.
11268 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11303 if test yes = "$fast_install" && test -n "$relink_command"; then
11304 func_append rmfiles " $odir/lt-$name"
11307 func_append rmfiles " $odir/lt-$noexename.c"
11318 if test -d "$dir"; then
11330 test -z "$opt_mode" && {
11335 test -z "$exec_cmd" && \
11338 if test -n "$exec_cmd"; then
11353 # time on that platform, so we default to a shared-only configuration.
11354 # If a disable-shared tag is given, we'll fallback to a static-only
11355 # configuration. But we'll never go from static-only to shared-only.
11357 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11360 # ### END LIBTOOL TAG CONFIG: disable-shared
11362 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11364 # ### END LIBTOOL TAG CONFIG: disable-static
11367 # mode:shell-script
11368 # sh-indentation:2