Lines Matching +full:mingw +full:- +full:no +full:- +full:asm
2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2019-02-19.15
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc.
10 # This is free software; see the source for copying conditions. There is NO
34 VERSION="2.4.7 Debian-2.4.7-7"
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=2019-02-19.15; # UTC
72 # This is free software. There is NO warranty; not even for
75 # Copyright (C) 2004-2019, 2021 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
149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
157 # --------------
159 # In some shells, an 'unset VAR' statement leaves a non-zero return
162 # value) or when 'set -e' is active (causing even a spurious abort of
177 ## ------------------------- ##
179 ## ------------------------- ##
183 # ----------------------
187 test -f "$1" && test -x "$1"
192 # --------------------------------------------
193 # Search for either a program that responds to --version with output
205 _G_PATH=${3-"$PATH"}
209 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
212 test -z "$_G_dir" && _G_dir=.
217 case `"$_G_path_prog" --version 2>&1` in
228 test -z "$func_path_progs_result" && {
229 echo "no acceptable sed could be found in \$PATH" >&2
237 # to search for them ourselves - except when the results are already set
242 test -z "$SED" && {
262 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
265 if test "$_G_count" -gt "$_G_path_prog_max"; then
271 test 10 -lt "$_G_count" && break
273 rm -f conftest.in conftest.tmp conftest.nl conftest.out
277 rm -f conftest.sed
284 test -z "$GREP" && {
298 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
301 if test "$_G_count" -gt "$_G_path_prog_max"; then
307 test 10 -lt "$_G_count" && break
309 rm -f conftest.in conftest.tmp conftest.nl conftest.out
317 ## ------------------------------- ##
319 ## ------------------------------- ##
326 : ${CP="cp -f"}
328 : ${EGREP="$GREP -E"}
329 : ${FGREP="$GREP -F"}
330 : ${LN_S="ln -s"}
333 : ${MV="mv -f"}
334 : ${RM="rm -f"}
335 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
338 ## -------------------- ##
340 ## -------------------- ##
346 # metacharacters that are still active within double-quoted strings.
361 # Re-'\' parameter expansions in output of sed_double_quote_subst that
362 # were '\'-ed in input to the same. If an odd number of '\' preceded a
378 # ---------------------------
407 ## ----------------- ##
409 ## ----------------- ##
415 # else. There's no portable way to scope variables in Bourne shell
433 # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
434 debug_cmd=${debug_cmd-":"}
441 # so that you can set exit_status to non-zero if you want to indicate
458 [\\/]*|[A-Za-z]:\\*) ;;
466 IFS=${PATH_SEPARATOR-:}
469 test -x "$progdir/$progname" && break
472 test -n "$progdir" || progdir=`pwd`
478 ## ----------------- ##
480 ## ----------------- ##
483 # below, and should be set appropriately depending on run-time para-
506 ## -------------------- ##
508 ## -------------------- ##
511 # particular resource (a file, or a non-empty configuration variable for
523 # -------------------
530 test -t 1 && {
534 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
544 test -n "`tput sgr0 2>/dev/null`" && {
546 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
548 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
549 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
550 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
551 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
552 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
561 ## ----------------- ##
563 ## ----------------- ##
572 # ---------------------
578 if test -z "$_G_HAVE_PLUSEQ_OP" && \
606 # ----------------------------
629 # --------------------------
633 # func_append_uniq options " --another-option option-argument"
635 # will only append to $options if " --another-option option-argument "
653 # ------------------
655 test -z "$_G_HAVE_ARITH_OP" \
677 # ------------------
710 # -------------------------------------------
722 # --------------------------------------------------------
743 # ----------------
762 # --------------------
763 # Invoke $ECHO with all args, space-separated.
771 # ------------------------------
788 test -n "$_G_tc" && {
807 # -----------------
820 # -----------------------
832 # -----------------------------
843 # ---------------
846 test -z "$_G_HAVE_XSI_OPS" \
868 # func_mkdir_p DIRECTORY-PATH
869 # ---------------------------
870 # Make sure the entire path to DIRECTORY-PATH is available.
878 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
880 # Protect directory names starting with '-'
882 -*) _G_directory_path=./$_G_directory_path ;;
886 while test ! -d "$_G_directory_path"; do
891 # If the last portion added has no slash in it, the list is done
895 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
910 test -d "$_G_directory_path" || \
917 # -------------------------
925 _G_template=${TMPDIR-/tmp}/${1-$progname}
928 # Return a directory name, but don't create it in dry-run mode
929 _G_tmpdir=$_G_template-$$
933 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
935 if test ! -d "$_G_tmpdir"; then
937 _G_tmpdir=$_G_template-${RANDOM-0}$$
945 # If we're not in dry-run mode, bomb out on failure
946 test -d "$_G_tmpdir" || \
955 # ------------------------
956 # Remove doubled-up and trailing slashes, "." path components,
986 # we take advantage of case's first-match behaviour.
1009 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
1014 if test -z "$func_normal_abspath_result"; then
1020 -e "$_G_pathcar"`
1022 -e "$_G_pathcdr"`
1039 # Restore leading double-slash if one was found on entry.
1045 # --------------------
1054 # fails when set -e is in force, so we need another command to
1061 # --------------------------------
1086 if test -z "$func_relative_path_result"; then
1094 if test -z "$func_relative_path_tlibdir"; then
1105 # Now calculate path; take care to avoid doubling-up slashes.
1109 if test -n "$func_stripname_result"; then
1114 if test -n "$func_relative_path_result"; then
1119 test -n "$func_relative_path_result" || func_relative_path_result=.
1126 # ----------------------------
1138 # one-time-loop (easy break)
1143 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1193 # double-quote args containing shell metacharacters to delay
1206 # -----------------------
1209 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1210 printf -v _GL_test_printf_tilde %q '~'
1214 printf -v func_quotefast_eval_result %q "$1"
1226 printf -v func_quotefast_eval_result %q "$1"
1241 # ------------------------
1246 # double-quoted (when needed), suitable for a subsequent eval
1252 # ----------------
1254 # - escape shell special characters
1256 # - the same as 'eval'; but do not quote variable references
1258 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1262 # - produce also $func_quote_arg_unquoted_result which does not contain
1263 # wrapping double-quotes.
1268 # ------------+-----------------------+-------------------
1273 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1278 # --------------+---------------------+--------------------
1279 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1296 # Faster quote-for-eval for some shells.
1305 # ------------------------
1313 while test 0 -lt $#; do
1315 if test -n "$func_quote_result"; then
1326 # ---------------------------------
1348 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1349 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1356 # -----------------------------
1365 _G_fail_exp=${2-':'}
1373 if test 0 -ne "$_G_status"; then
1381 # ------------------------------------
1390 _G_fail_exp=${2-':'}
1402 if test 0 -ne "$_G_status"; then
1410 # ----------
1413 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1420 [0-9]* | *[!a-zA-Z0-9_]*)
1421 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1431 # -------------------
1444 # -----------------------------
1457 # ----------------------------
1482 # -----------------------
1483 # 'sort -V' is not generally available.
1485 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1495 | 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
1499 # ---------------------
1513 # mode: shell-script
1514 # sh-indentation: 2
1515 # eval: (add-hook 'before-save-hook 'time-stamp)
1516 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1517 # time-stamp-time-zone: "UTC"
1524 # This is free software. There is NO warranty; not even for
1527 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1531 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1537 # <https://github.com/gnulib-modules/bootstrap/issues>
1540 scriptversion=2019-02-19.15; # UTC
1543 ## ------ ##
1545 ## ------ ##
1555 # . relative/path/to/options-parser
1561 # In order for the '--version' option to work, you will need to have a
1565 # For '-h' and '--help' to work, you will also need a one line
1569 # The default options also support '--debug', which will turn on shell
1571 # use), and '--verbose' and the func_verbose function to allow your script
1573 # '--verbose'.
1580 ## -------------- ##
1582 ## -------------- ##
1588 # The usage line for option parsing errors and the start of '-h' and
1589 # '--help' output messages. You can embed shell variables for delayed
1591 # quote other shell meta-characters carefully to prevent them being
1595 # Short help message in response to '-h' and '--help'. Add to this or
1599 --debug enable verbose shell tracing
1600 -W, --warnings=CATEGORY
1602 -v, --verbose verbosely report processing
1603 --version print version information and exit
1604 -h, --help print short or long help message and exit
1607 # Additional text appended to 'usage_message' in response to '--help'.
1615 fatal_help="Try '\$progname --help' for more information."
1619 ## ------------------------- ##
1621 ## ------------------------- ##
1628 # -----------------------
1640 # ---------------------------------
1657 # ------------------------------------
1669 # ---------------------------------------------
1687 # ---------------------------------
1690 # than a whitespace-delimited list of legal shell function names, and
1691 # no effort is wasted trying to catch shell meta-characters or preserve
1718 ## --------------- ##
1720 ## --------------- ##
1742 # -s, --silent don'\''t print informational messages
1744 # # No change in '$@' (ignored completely by this hook). Leave
1759 # while test $# -gt 0; do
1762 # --silent|-s) opt_silent=:
1765 # # Separate non-argument short options:
1766 # -s*) func_split_short_opt "$_G_opt"
1768 # "-$func_split_short_opt_arg" ${1+"$@"}
1793 # '--silent' and '--verbose' options are mutually exclusive."
1803 # ----------------------------
1815 # ---------------------
1838 # As we (func_options) are top-level options-parser function and
1848 # --------------------------
1869 # ---------------------------
1878 while test $# -gt 0; do
1887 # this if-branch). No need to quote it again.
1892 test $# -gt 0 || break
1895 # and thus we remove _G_opt from "$@" and need to re-quote.
1900 --debug|-x) debug_cmd='set -x'
1905 --no-warnings|--no-warning|--no-warn)
1906 set dummy --warnings none ${1+"$@"}
1910 --warnings|--warning|-W)
1939 --verbose|-v) opt_verbose=: ;;
1940 --version) func_version ;;
1941 -\?|-h) func_usage ;;
1942 --help) func_help ;;
1945 --*=*) func_split_equals "$_G_opt"
1952 -W*)
1959 # Separate non-argument short options:
1960 -\?*|-h*|-v*|-x*)
1963 "-$func_split_short_opt_arg" ${1+"$@"}
1967 --) _G_parse_options_requote=: ; break ;;
1968 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1989 # ------------------------------
1997 # Display all warnings if -W was not given.
1998 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
2009 ## ----------------- ##
2011 ## ----------------- ##
2014 # hookable option parser framework in ascii-betical order.
2018 # ----------------------
2033 # ---------
2046 # ------------------------
2059 # ------------------------
2062 test -z "$_G_HAVE_XSI_OPS" \
2095 # -----------------------------
2114 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
2115 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2121 # ----------
2128 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2134 # ------------------
2142 $SED -n 's|^# ||
2154 # ------------
2170 $SED -n '
2190 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2200 # mode: shell-script
2201 # sh-indentation: 2
2202 # eval: (add-hook 'before-save-hook 'time-stamp)
2203 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2204 # time-stamp-time-zone: "UTC"
2212 # ----------------
2232 # -------------------
2243 ## ---------------- ##
2245 ## ---------------- ##
2250 usage='$progpath [OPTION]... [MODE-ARG]...'
2252 # Short help message in response to '-h'.
2254 --config show all configuration variables
2255 --debug enable verbose shell tracing
2256 -n, --dry-run display commands without modifying any files
2257 --features display basic configuration information and exit
2258 --mode=MODE use operation mode MODE
2259 --no-warnings equivalent to '-Wnone'
2260 --preserve-dup-deps don't remove duplicate dependency libraries
2261 --quiet, --silent don't print informational messages
2262 --tag=TAG use configuration variables from tag TAG
2263 -v, --verbose print more informational messages than default
2264 --version print version information
2265 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2266 -h, --help, --help-all print short, long, or detailed help message
2269 # Additional text appended to 'usage_message' in response to '--help'.
2287 MODE-ARGS vary depending on the MODE. When passed as first option,
2288 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2289 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2294 host-triplet: $host
2299 version: $progname $scriptversion Debian-2.4.7-7
2300 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2301 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2303 Report bugs to <bug-libtool@gnu.org>.
2310 # func_lo2o OBJECT-NAME
2311 # ---------------------
2312 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2327 # func_xform LIBOBJ-OR-SOURCE
2328 # ---------------------------
2329 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2330 # suffix to a '.lo' libtool-object suffix.
2350 # -------------------------------
2362 # -----------
2374 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2382 # -------------
2403 # -----------------------
2418 *[!-_A-Za-z0-9,/]*)
2433 # also don't use non-portable quotes within backquotes within
2435 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2446 # ------------------------
2453 if test -z "$macro_version"; then
2483 # -----------------------------
2505 # Shorthand for --mode=foo, only valid as the first argument
2508 shift; set dummy --mode clean ${1+"$@"}; shift
2511 shift; set dummy --mode compile ${1+"$@"}; shift
2514 shift; set dummy --mode execute ${1+"$@"}; shift
2517 shift; set dummy --mode finish ${1+"$@"}; shift
2520 shift; set dummy --mode install ${1+"$@"}; shift
2523 shift; set dummy --mode link ${1+"$@"}; shift
2526 shift; set dummy --mode uninstall ${1+"$@"}; shift
2543 # ---------------------------------
2553 while test $# -gt 0; do
2558 --dry-run|--dryrun|-n)
2562 --config) func_config ;;
2564 --dlopen|-dlopen)
2570 --preserve-dup-deps)
2573 --features) func_features ;;
2575 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2577 --help) opt_help=: ;;
2579 --help-all) opt_help=': help-all' ;;
2581 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2596 --no-silent|--no-quiet)
2601 --no-warnings|--no-warning|--no-warn)
2606 --no-verbose)
2611 --silent|--quiet)
2617 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2624 --verbose|-v) opt_quiet=false
2649 # ---------------------------------
2654 # save first non-option argument
2655 if test 0 -lt $#; then
2660 # preserve --debug
2661 test : = "$debug_cmd" || func_append preserve_args " --debug"
2666 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2686 # Only execute mode is allowed to have -dlopen flags.
2687 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2688 func_error "unrecognized option '-dlopen'"
2693 # Change the help message to a mode-specific one.
2695 help="Try '$progname --help --mode=$opt_mode' for more information."
2705 # Process options as early as possible so that --help and --version
2712 ## ----------- ##
2714 ## ----------- ##
2724 # will be execed at the end. This prevents here-documents from being
2729 # A function that is used when there is no print builtin or printf.
2751 test -f "$1" &&
2752 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2764 lalib_p=no
2765 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2773 exec 0<&5 5<&-
2784 test -f "$1" &&
2824 # Execute tilde-delimited COMMANDS.
2826 # FAIL_CMD may read-access the current command in variable CMD!
2836 func_show_eval "$cmd" "${2-:}"
2844 # Note that it is not necessary on cygwin/mingw to append a dot to
2845 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2884 # Including no sysroot.
2892 # if one wasn't chosen via the "--tag" command line option.
2900 if test -n "$available_tags" && test -z "$tagname"; then
2918 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2921 # Double-quote args containing other shell metacharacters.
2938 # If $tagname still isn't set, then no tagged configuration
2939 # was found and let the user know that the "--tag" command
2941 if test -z "$tagname"; then
2943 func_fatal_error "specify a tag with '--tag'"
2974 # $write_libobj - a libtool object file
2983 # Name of the non-PIC object
2998 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
3010 if test -n "$1"; then
3011 # Unfortunately, winepath does not exit with a non-zero error code, so we
3015 # zero AND non-empty stdout, which explains the odd construction:
3016 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3017 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3019 $SED -e "$sed_naive_backslashify"`
3030 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
3032 # $PATH. Assumes ARG has no leading or trailing path separator characters.
3036 # Unconvertible file (directory) names in ARG are skipped; if no directory names
3044 if test -n "$1"; then
3050 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3051 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3083 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3085 if test "$?" -ne 0; then
3091 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3106 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3119 if test -z "$2" && test -n "$1"; then
3138 if test -z "$4" && test -n "$3"; then
3147 $SED -e "$lt_replace_pathsep_chars"`
3199 # in (the comma separated) LAZY, no conversion takes place.
3227 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
3235 if test -n "$1"; then
3252 if test -n "$1"; then
3253 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
3255 func_to_host_file_result=`cygpath -m "$1"`
3270 if test -n "$1"; then
3287 if test -n "$1"; then
3289 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3306 if test -n "$1"; then
3309 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3346 if test -z "$to_host_path_cmd"; then
3376 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
3384 if test -n "$1"; then
3408 if test -n "$1"; then
3412 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3429 if test -n "$1"; then
3451 if test -n "$1"; then
3456 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3475 if test -n "$1"; then
3482 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3499 func_dll_def_p_tmp=`$SED -n \
3500 -e 's/^[ ]*//' \
3501 -e '/^\(;.*\)*$/d' \
3502 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3503 -e q \
3516 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3540 # Accept any command-line options.
3542 -o)
3543 test -n "$libobj" && \
3544 func_fatal_error "you cannot specify '-o' more than once"
3549 -pie | -fpie | -fPIE)
3554 -shared | -static | -prefer-pic | -prefer-non-pic)
3559 -no-suppress)
3560 suppress_opt=no
3564 -Xcompiler)
3569 -Wc,*)
3570 func_stripname '-Wc,' '' "$arg"
3604 func_fatal_error "you must specify an argument for -Xcompile"
3607 func_fatal_error "you must specify a target with '-o'"
3611 test -z "$libobj" && {
3619 # If the user specifies -o file.o, it is replaced with file.lo
3622 *.ada | *.adb | *.ads | *.asm | \
3641 -shared)
3644 build_old_libs=no
3648 -static)
3649 build_libtool_libs=no
3654 -prefer-pic)
3659 -prefer-non-pic)
3660 pic_mode=no
3675 test -z "$base_compile" && \
3685 # On Cygwin there's no "real" PIC flag so we must build both object types
3687 cygwin* | mingw* | pw32* | os2* | cegcc*)
3691 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
3692 # non-PIC code in shared libraries is not supported
3697 # not support -o with -c
3698 if test no = "$compiler_c_o"; then
3703 need_locks=no
3715 if test -f "$lockfile"; then
3722 your compiler does not support '-c' and '-o' together. If you
3724 avoid parallel builds (make -j) in this platform, or get a better
3748 if test no != "$pic_mode"; then
3757 if test -z "$output_obj"; then
3759 func_append command " -o $lobj"
3763 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3776 your compiler does not support '-c' and '-o' together. If you
3778 avoid parallel builds (make -j) in this platform, or get a better
3786 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3797 # Only build a position-dependent object if we build old libraries.
3806 func_append command " -o $obj"
3825 your compiler does not support '-c' and '-o' together. If you
3827 avoid parallel builds (make -j) in this platform, or get a better
3835 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3845 if test no != "$need_locks"; then
3870 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3875 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3884 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3890 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3891 -no-suppress do not suppress compiler output for multiple passes
3892 -prefer-pic try to build PIC objects only
3893 -prefer-non-pic try to build non-PIC objects only
3894 -shared do not build a '.o' file suitable for static linking
3895 -static only build a '.o' file suitable for static linking
3896 -Wc,FLAG
3897 -Xcompiler FLAG pass FLAG directly to the compiler
3899 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3909 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3915 -dlopen FILE add the directory containing FILE to the library path
3917 This mode sets the library path environment variable according to '-dlopen'
3929 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3936 the '--dry-run' option if you just want to see what would be executed."
3941 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3945 INSTALL-COMMAND is the installation command. The first component should be
3948 The following components of INSTALL-COMMAND are treated specially:
3950 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3953 BSD-compatible install options are recognized)."
3958 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3963 LINK-COMMAND is a command using the C compiler that you would use to create
3966 The following components of LINK-COMMAND are treated specially:
3968 -all-static do not do any dynamic linking at all
3969 -avoid-version do not add a version suffix if possible
3970 -bindir BINDIR specify path to binaries directory (for systems where
3972 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3973 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3974 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3975 -export-symbols SYMFILE
3977 -export-symbols-regex REGEX
3979 -LLIBDIR search LIBDIR for required installed libraries
3980 -lNAME OUTPUT-FILE requires the installed library libNAME
3981 -module build a library that can dlopened
3982 -no-fast-install disable the fast-install mode
3983 -no-install link a not-installable executable
3984 -no-undefined declare that a library does not refer to external symbols
3985 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3986 -objectlist FILE use a list of object files found in FILE to specify objects
3987 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3988 -precious-files-regex REGEX
3990 -release RELEASE specify package release information
3991 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3992 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3993 -shared only do dynamic linking of libtool libraries
3994 -shrext SUFFIX override the standard shared library file extension
3995 -static do not do any dynamic linking of uninstalled libtool libraries
3996 -static-libtool-libs
3998 -version-info CURRENT[:REVISION[:AGE]]
4000 -weak LIBNAME declare that the target provides the LIBNAME interface
4001 -Wc,FLAG
4002 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4003 -Wa,FLAG
4004 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4005 -Wl,FLAG
4006 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4007 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4009 All other options (arguments beginning with '-') are ignored.
4015 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4016 only library objects ('.lo' files) may be specified, and '-rpath' is
4019 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4022 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4028 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4033 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4046 $ECHO "Try '$progname --help' for more information about other modes."
4049 # Now that we've collected a possible --mode arg, show help if necessary
4059 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4075 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4088 test -z "$cmd" && \
4091 # Handle -dlopen flags immediately.
4093 test -f "$file" \
4112 if test -z "$dlname"; then
4114 test -n "$library_names" && \
4115 func_warning "'$file' was not linked with '-export-dynamic'"
4122 if test -f "$dir/$objdir/$dlname"; then
4125 if test ! -f "$dir/$dlname"; then
4138 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4145 test -n "$absdir" && dir=$absdir
4148 if eval "test -z \"\$$shlibpath_var\""; then
4164 -* | *.la | *.lo ) ;;
4185 if test -n "$shlibpath_var"; then
4192 if test -n "$shlibpath_var"; then
4226 if test -d "$opt"; then
4229 elif test -f "$opt"; then
4241 if test -n "$libs"; then
4242 if test -n "$lt_sysroot"; then
4257 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4258 > $tmpdir/tmp-la
4259 mv -f $tmpdir/tmp-la $lib
4265 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4267 if test -n "$finish_cmds"; then
4272 if test -n "$finish_eval"; then
4284 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4285 echo "----------------------------------------------------------------------"
4293 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4295 if test -n "$shlibpath_var"; then
4296 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4299 if test -n "$runpath_var"; then
4300 echo " - add LIBDIR to the '$runpath_var' environment variable"
4303 if test -n "$hardcode_libdir_flag_spec"; then
4307 $ECHO " - use the '$flag' linker flag"
4309 if test -n "$admincmds"; then
4310 $ECHO " - have your system administrator run these commands:$admincmds"
4312 if test -f /etc/ld.so.conf; then
4313 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4319 solaris2.[6789]|solaris2.1[0-9])
4327 echo "----------------------------------------------------------------------"
4378 if test -n "$dest"; then
4385 -d) isdir=: ;;
4386 -f)
4391 -g | -m | -o)
4394 -s)
4395 stripme=" -s"
4398 -*)
4402 if test -n "$prev"; then
4403 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4418 if test -n "$arg2"; then
4424 test -z "$install_prog" && \
4427 test -n "$prev" && \
4430 if test -n "$install_override_mode" && $no_mode; then
4433 func_append install_shared_prog " -m $func_quote_arg_result"
4437 if test -z "$files"; then
4438 if test -z "$dest"; then
4439 func_fatal_help "no file or destination specified"
4450 test -d "$dest" && isdir=:
4461 test "$#" -gt 1 && \
4465 [\\/]* | [A-Za-z]:[\\/]*) ;;
4525 if test -n "$relink_command"; then
4527 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4538 if test -n "$inst_prefix_dir"; then
4540 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4552 if test -n "$1"; then
4557 test -n "$relink_command" && srcname=${realname}T
4564 cygwin* | mingw* | pw32* | cegcc*)
4579 if test -n "$tstripme" && test -n "$striplib"; then
4583 if test "$#" -gt 0; then
4585 # Try 'ln -sf' first, because the 'ln' binary might depend on
4586 # the symlink we replace! Solaris /bin/ln does not understand -f,
4587 # so we also need to try rm && ln -s.
4591 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4600 # Install the pseudo-library for information purposes.
4607 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4614 if test -n "$destname"; then
4622 # Deduce the name of the destination old-style object file.
4638 test -n "$destfile" && \
4643 # Deduce the name of the old-style object file.
4653 if test -n "$destname"; then
4667 if test ! -f "$file"; then
4677 *cygwin* | *mingw*)
4697 test -z "$generated_by_libtool_version" && \
4704 if test -f "$lib"; then
4708 if test -n "$libdir" && test ! -f "$libfile"; then
4718 if test no = "$fast_install" && test -n "$relink_command"; then
4768 $opt_dry_run || if test -n "$outputname"; then
4786 if test -n "$stripme" && test -n "$old_striplib"; then
4794 test -n "$future_libdirs" && \
4795 func_warning "remember to run '$progname --finish$future_libdirs'"
4797 if test -n "$current_libdirs"; then
4799 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4800 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4818 my_pic_p=${3-false}
4819 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4822 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4823 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4830 if test -n "$my_dlsyms"; then
4843 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4851 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4857 relocations are performed -- see ld's documentation on pseudo-relocs. */
4884 if test -n "$exclude_expsyms"; then
4886 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4891 if test -n "$export_symbols_regex"; then
4893 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4899 if test -z "$export_symbols"; then
4903 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4905 *cygwin* | *mingw* | *cegcc* )
4913 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4914 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4917 *cygwin* | *mingw* | *cegcc* )
4931 *cygwin* | *mingw* | *cegcc* )
4937 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4940 if test -n "$dlprefile_dlname"; then
4944 # no lafile. user explicitly requested -dlpreopen <import library>.
4950 if test -n "$dlprefile_dlbasename"; then
4958 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4980 test -f "$nlist" || : > "$nlist"
4982 if test -n "$exclude_expsyms"; then
4983 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4988 if $GREP -v "^: " < "$nlist" |
4989 if sort -k 3 </dev/null >/dev/null 2>&1; then
4990 sort -k 3
4997 $GREP -v "^: " < "$nlist" > "$nlist"S
5000 if test -f "$nlist"S; then
5007 if test -n "$global_symbol_to_import"; then
5022 if test -s "$nlist"I; then
5027 for (; symbol->name; ++symbol)
5029 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5039 if test -s "$nlist"I; then
5045 no)
5071 *" -static "*) ;;
5075 # a FreeBSD bug that causes programs to crash when -lm is
5077 # pic_flag when linking with -static. The problem exists in
5079 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5080 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5081 *-*-hpux*)
5092 -pie | -fpie | -fPIE) ;;
5098 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5106 *cygwin* | *mingw* | *cegcc* )
5107 if test -f "$output_objdir/$my_outputname.def"; then
5138 # ARG is a GNU/binutils-style import library. Returns
5145 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5146 test -n "$func_cygming_gnu_implib_tmp"
5151 # ARG is an MS-style import library. Returns
5159 test -n "$func_cygming_ms_implib_tmp"
5174 win32_fileres=`file -L $1 2>/dev/null`
5181 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5182 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5195 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5196 $SED -n -e '
5228 # Platform-specific function to extract the
5239 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5245 # platform-specific function to extract the name of the
5258 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5267 /:[ ]*file format pe[i]\{,1\}-/d
5275 $SED -n '
5296 # 0x302f exports -- but will fail for DLLs whose name actually
5301 $SED -e '/^\./d;/^.\./d;q'
5305 # Platform-specific function to extract the
5310 # does not support the --identify-strict option.
5323 # ms-generated import library
5347 'stat=$?; rm -f "$lockfile"; exit $stat'
5349 $opt_dry_run || rm -f "$lockfile"
5351 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5374 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5385 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5395 *-darwin*)
5405 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5406 if test -n "$darwin_arches"; then
5407 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5411 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5412 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5413 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5416 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5419 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5423 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5424 $LIPO -create -output "$darwin_file" $darwin_files
5426 $RM -rf unfat-$$
5438 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5445 # func_emit_wrapper [arg=no]
5449 # incorporate the script contents within a cygwin/mingw
5457 # the $objdir directory. This is a cygwin/mingw-specific
5461 func_emit_wrapper_arg1=${1-no}
5466 # $output - temporary wrapper script for $objdir/$outputname
5476 # metacharacters that are still active within double-quoted strings.
5480 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5485 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5488 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5493 # The HP-UX ksh and POSIX shell print the target directory to stdout
5513 # A function that is used when there is no print builtin or printf.
5526 # windows platforms, and (c) all begin with the string "--lt-"
5530 # There are only two supported options: --lt-debug and
5531 # --lt-dump-script. There is, deliberately, no --lt-help.
5543 --lt-debug) lt_option_debug=1 ;;
5544 --lt-dump-script)
5545 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5547 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5551 --lt-*)
5552 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5559 if test -n \"\$lt_option_debug\"; then
5564 # Used when --lt-debug. Prints its arguments to stdout
5582 *-*-mingw | *-*-os2* | *-cegcc*)
5584 if test -n \"\$lt_option_debug\"; then
5594 if test -n \"\$lt_option_debug\"; then
5608 # Strips options in the --lt-* namespace from \$@ and
5613 *\\ --lt-*)
5617 --lt-*) ;;
5634 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5635 while test -n \"\$file\"; do
5641 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5647 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5650 # Usually 'no', except on cygwin/mingw when embedded into
5667 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5672 program=lt-'$outputname'$exeext
5675 if test ! -f \"\$progdir/\$program\" ||
5676 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5679 file=\"\$\$-\$program\"
5681 if test ! -d \"\$progdir\"; then
5690 if test -n \"\$relink_command\"; then
5713 if test -f \"\$progdir/\$program\"; then"
5720 if test -n "$dllsearchpath"; then
5728 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5733 # Some systems cannot cope with colon-terminated $shlibpath_var
5766 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5804 /* declarations of non-ANSI functions */
5902 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5934 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5945 if test -n "$dllsearchpath"; then
5960 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5964 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
5971 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5974 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6005 *mingw* | *cygwin* )
6024 have already dealt with, above (inluding dump-script), then
6028 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6029 or a configure.ac-settable value.
6042 /* The GNU banner must be the first non-error debug message */
6072 /* target_name transforms -- use actual target program name; might have lt- prefix */
6098 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6101 /* DO want the lt- prefix here if it exists, so use target_name */
6108 mingw*)
6150 mingw*)
6152 /* execv doesn't actually work on mingw as expected on unix */
6155 if (rval == -1)
6298 /* no slashes; search PATH */
6309 p_len = (size_t) (q - p);
6380 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6382 p--;
6385 /* no more DIR_SEPARATORS left */
6427 str += len - patlen;
6541 /* some systems can't cope with a ':'-terminated path #' */
6543 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6545 new_value[--len] = '\0';
6569 mingw*)
6583 - Space and tab are interpreted as delimiters. They are not treated as
6585 - Unescaped double quotes are removed from the input. Their only effect is
6588 - Backslashes not followed by double quotes are not special.
6589 - But 2*n+1 backslashes followed by a double quote become
6591 \" -> "
6592 \\\" -> \"
6593 \\\\\" -> \\"
6657 for (j = backslashes + 1; j > 0; j--)
6669 for (j = backslashes; j > 0; j--)
6693 $SED -n -e '
6714 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6729 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6730 suncc_use_cstd_abi=no
6744 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6749 # allow_undefined=no
6754 # -no-undefined on the libtool link line when we can be certain
6782 avoid_version=no
6786 dlself=no
6787 export_dynamic=no
6793 module=no
6794 no_install=no
6799 prefer_static_libs=no
6808 thread_safe=no
6810 vinfo_number=no
6812 single_module=$wl-single_module
6815 # We need to know -static, to get the right output filenames.
6819 -shared)
6822 build_old_libs=no
6825 -all-static | -static | -static-libtool-libs)
6827 -all-static)
6828 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6831 if test -n "$link_static_flag"; then
6836 -static)
6837 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6842 -static-libtool-libs)
6843 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6849 build_libtool_libs=no
6857 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6860 while test "$#" -gt 0; do
6868 if test -n "$prev"; then
6892 if test no = "$dlself"; then
6924 test -f "$arg" \
6936 *-*-darwin*)
6954 # '-mllvm $arg' options when doing the link step.
6959 if test -f "$arg"; then
6966 # A libtool-controlled object.
6976 if test -z "$pic_object" ||
6977 test -z "$non_pic_object" ||
7002 # CHECK ME: I think I busted this. -Ossama
7004 # Preload the old-style object.
7014 # Non-PIC object.
7019 # A standard non-PIC object
7021 if test -z "$pic_object" || test none = "$pic_object"; then
7031 # Only an error if not doing a dry-run.
7065 release=-$arg
7072 [\\/]* | [A-Za-z]:[\\/]*) ;;
7074 func_fatal_error "only absolute run-paths are allowed"
7102 func_append compiler_flags " -Xassembler $qarg"
7104 func_append compile_command " -Xassembler $qarg"
7105 func_append finalize_command " -Xassembler $qarg"
7137 fi # test -n "$prev"
7142 -all-static)
7143 if test -n "$link_static_flag"; then
7144 # See comment for -static flag below, for more details.
7151 -allow-undefined)
7153 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7156 -avoid-version)
7161 -bindir)
7166 -dlopen)
7171 -dlpreopen)
7176 -export-dynamic)
7181 -export-symbols | -export-symbols-regex)
7182 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7183 func_fatal_error "more than one -exported-symbols argument is not allowed"
7185 if test X-export-symbols = "X$arg"; then
7193 -framework)
7198 -inst-prefix-dir)
7203 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7204 # so, if we see these flags be careful not to treat them like -L
7205 -L[A-Z][A-Z]*:*)
7207 no/*-*-irix* | /*-*-irix*)
7215 -L*)
7216 func_stripname "-L" '' "$arg"
7217 if test -z "$func_stripname_result"; then
7218 if test "$#" -gt 0; then
7219 func_fatal_error "require no space between '-L' and '$1'"
7221 func_fatal_error "need path for '-L' option"
7228 [\\/]* | [A-Za-z]:[\\/]*) ;;
7231 test -z "$absdir" && \
7237 *" -L$dir "* | *" $arg "*)
7243 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7244 *) func_append deplibs " -L$dir" ;;
7250 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7267 -l*)
7268 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7270 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7274 *-*-os2*)
7276 test X-lc = "X$arg" && continue
7278 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7280 test X-lc = "X$arg" && continue
7282 *-*-rhapsody* | *-*-darwin1.[012])
7287 *-*-sco3.2v5* | *-*-sco5v6*)
7289 test X-lc = "X$arg" && continue
7291 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7293 test X-lc = "X$arg" && continue
7296 elif test X-lc_r = "X$arg"; then
7298 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7299 # Do not include libc_r directly, use -pthread flag.
7308 -mllvm)
7313 -module)
7318 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7320 # Darwin uses the -arch flag to determine output architecture.
7321 -model|-arch|-isysroot|--sysroot)
7329 -pthread)
7341 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7342 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7353 -multi_module)
7354 single_module=$wl-multi_module
7358 -no-fast-install)
7359 fast_install=no
7363 -no-install)
7365 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7368 func_warning "'-no-install' is ignored for $host"
7369 func_warning "assuming '-no-fast-install' instead"
7370 fast_install=no
7377 -no-undefined)
7378 allow_undefined=no
7382 -objectlist)
7387 -os2dllname)
7392 -o) prev=output ;;
7394 -precious-files-regex)
7399 -release)
7404 -rpath)
7409 -R)
7414 -R*)
7415 func_stripname '-R' '' "$arg"
7419 [\\/]* | [A-Za-z]:[\\/]*) ;;
7425 func_fatal_error "only absolute run-paths are allowed"
7435 -shared)
7436 # The effects of -shared are defined in a previous loop.
7440 -shrext)
7445 -static | -static-libtool-libs)
7446 # The effects of -static are defined in a previous loop.
7447 # We used to do the same as -all-static on platforms that
7454 -thread-safe)
7459 -version-info)
7464 -version-number)
7470 -weak)
7475 -Wc,*)
7476 func_stripname '-Wc,' '' "$arg"
7491 -Wl,*)
7492 func_stripname '-Wl,' '' "$arg"
7508 -Xassembler)
7513 -Xcompiler)
7518 -Xlinker)
7523 -XCClinker)
7528 # -msg_* for osf cc
7529 -msg_*)
7535 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7536 # -r[0-9][0-9]* specify processor for the SGI compiler
7537 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7538 # +DA*, +DD* enable 64-bit mode for the HP compiler
7539 # -q* compiler args for the IBM compiler
7540 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7541 # -F/path path to uninstalled frameworks, gcc on darwin
7542 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7543 # -fstack-protector* stack protector flags for GCC
7545 # -tp=* Portland pgcc target processor selection
7546 # --sysroot=* for sysroot support
7547 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7548 # -specs=* GCC specs files
7549 # -stdlib=* select c++ std lib with clang
7550 # -fsanitize=* Clang/GCC memory and address sanitizer
7551 # -fuse-ld=* Linker select flags for GCC
7552 # -static-* direct GCC to link specific libraries statically
7553 # -fcilkplus Cilk Plus language extension features for C/C++
7554 # -Wa,* Pass flags directly to the assembler
7555 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7556 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7557 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7558 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*)
7567 -Z*)
7569 # OS/2 uses -Zxxx to specify OS/2-specific options
7574 -Zlinker | -Zstack)
7587 -* | +*)
7598 # A libtool-controlled object.
7608 if test -z "$pic_object" ||
7609 test -z "$non_pic_object" ||
7634 # CHECK ME: I think I busted this. -Ossama
7636 # Preload the old-style object.
7646 # Non-PIC object.
7651 # A standard non-PIC object
7653 if test -z "$pic_object" || test none = "$pic_object"; then
7663 # Only an error if not doing a dry-run.
7688 # A libtool-controlled library.
7692 # This library was specified with -dlopen.
7696 # The library was specified with -dlpreopen.
7715 if test -n "$arg"; then
7721 test -n "$prev" && \
7724 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7736 if test -n "$shlibpath_var"; then
7770 # that are linked more than once (e.g. -la -lb -la)
7801 need_relink=no # whether we're linking any uninstalled libtool libraries
7802 notinst_deplibs= # not-installed libtool libraries
7803 notinst_path= # paths that contain not-installed libtool libraries
7812 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7831 # so that -L comes before libs that need it for instance...
7860 # Ignore non-libtool-libs
7890 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7891 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7906 -l*)
7908 func_warning "'-l' is ignored for archives/objects"
7911 func_stripname '-l' '' "$deplib"
7922 if test -f "$lib"; then
7976 ;; # -l
7992 -L*)
7998 func_stripname '-L' '' "$deplib"
8013 func_stripname '-L' '' "$deplib"
8018 func_warning "'-L' is ignored for archives/objects"
8022 ;; # -L
8023 -R*)
8025 func_stripname '-R' '' "$deplib"
8049 # but linking other static libraries is non-portable.
8100 …if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; t…
8101 # If there is no dlopen support or we're linking statically,
8118 $found || test -f "$lib" \
8138 shouldnotlink=no
8145 # Convert "-framework foo" to "foo.ltframework"
8146 if test -n "$inherited_linker_flags"; then
8147 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8155 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8159 test -n "$dlopen" && func_append dlfiles " $dlopen"
8160 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8166 if test -z "$libdir"; then
8167 if test -z "$old_library"; then
8192 if test -n "$old_library" &&
8194 test built,no = "$prefer_static_libs,$installed"; }; then
8201 if test -z "$linklib"; then
8205 # This library was specified with -dlopen.
8207 test -z "$libdir" \
8208 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8209 if test -z "$dlname" ||
8211 test no = "$build_libtool_libs"
8213 # If there is no dlname, no dlopen support or we're linking
8226 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8229 if test -z "$abs_ladir"; then
8241 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8252 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8267 # This library was specified with -dlpreopen.
8269 if test -z "$libdir" && test prog = "$linkmode"; then
8270 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8273 # special handling for platforms with PE-DLLs.
8274 *cygwin* | *mingw* | *cegcc* )
8283 if test -n "$dlname"; then
8291 test -z "$libdir" && \
8296 # Prefer using a static library (so that no silly _DYNAMIC symbols
8298 if test -n "$old_library"; then
8302 test -z "$libdir" && \
8305 elif test -n "$dlname"; then
8314 if test -z "$libdir"; then
8333 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8334 test no = "$build_libtool_libs"; then
8341 -L*) func_stripname '-L' '' "$deplib"
8365 if test -n "$library_names" &&
8366 { { test no = "$prefer_static_libs" ||
8368 test -z "$old_library"; }; then
8370 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8379 # Skip directories that are in the system default run-time
8404 test -n "$library_names"; }; }; then
8410 link_static=no # Whether the deplib will be linked statically
8413 use_static_libs=no
8415 if test -n "$library_names" &&
8416 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8418 *cygwin* | *mingw* | *cegcc* | *os2*)
8419 # No point in relinking DLLs because paths are not encoded
8421 need_relink=no
8424 if test no = "$installed"; then
8432 # Warn about portability, can't link against -module's on some
8441 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8453 # Skip directories that are in the system default run-time
8475 if test -n "$old_archive_from_expsyms_cmds"; then
8482 # use dlname if we got it. it's perfectly good, no?
8483 if test -n "$dlname"; then
8485 elif test -n "$soname_spec"; then
8488 *cygwin* | mingw* | *cegcc* | *os2*)
8489 func_arith $current - $age
8491 versuffix=-$major
8504 newlib=libimp-$func_stripname_result.a
8506 # If the library has no export list, then create one now
8507 if test -f "$output_objdir/$soname-def"; then :
8514 if test -f "$output_objdir/$newlib"; then :; else
8521 fi # test -n "$old_archive_from_expsyms_cmds"
8530 if test no = "$hardcode_direct"; then
8533 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8534 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8535 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8536 *-*-unixware7*) add_dir=-L$dir ;;
8537 *-*-darwin* )
8538 # if the lib is a (non-dlopened) module then we cannot
8540 if /usr/bin/file -L $add 2> /dev/null |
8544 if test -z "$old_library"; then
8551 elif test -n "$old_library"; then
8556 elif test no = "$hardcode_minus_L"; then
8558 *-*-sunos*) add_shlibpath=$dir ;;
8560 add_dir=-L$dir
8561 add=-l$name
8562 elif test no = "$hardcode_shlibpath_var"; then
8564 add=-l$name
8566 lib_linked=no
8571 test no = "$hardcode_direct_absolute"; then
8574 add_dir=-L$absdir
8576 if test -n "$inst_prefix_dir"; then
8579 func_append add_dir " -L$inst_prefix_dir$libdir"
8583 add=-l$name
8586 add=-l$name
8588 lib_linked=no
8591 *) lib_linked=no ;;
8598 if test -n "$add_shlibpath"; then
8605 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8606 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8608 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8609 test -n "$add" && deplibs="$add $deplibs"
8627 test no = "$hardcode_direct_absolute"; then
8630 add_dir=-L$libdir
8631 add=-l$name
8637 add=-l$name
8639 if test -n "$inst_prefix_dir" &&
8640 test -f "$inst_prefix_dir$libdir/$linklib"; then
8647 add_dir=-L$libdir
8649 if test -n "$inst_prefix_dir"; then
8652 func_append add_dir " -L$inst_prefix_dir$libdir"
8656 add=-l$name
8660 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8661 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8663 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8664 test -n "$add" && deplibs="$add $deplibs"
8672 test -n "$old_library" && linklib=$old_library
8676 compile_deplibs="-l$name -L$dir $compile_deplibs"
8677 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8695 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8696 if test -z "$global_symbol_pipe"; then
8703 if test no = "$build_old_libs"; then
8707 build_libtool_libs=no
8717 if test -n "$dependency_libs" &&
8721 # Extract -R from dependency_libs
8725 -R*) func_stripname '-R' '' "$libdir"
8739 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8745 -L*) func_stripname '-L' '' "$deplib"
8758 if test no != "$link_all_deplibs"; then
8763 -L*) path=$deplib ;;
8771 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8774 if test -z "$absdir"; then
8780 if $GREP "^installed=no" $deplib > /dev/null; then
8782 *-*-darwin*)
8784 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8785 if test -n "$deplibrary_names"; then
8789 if test -f "$absdir/$objdir/$depdepl"; then
8791 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8792 if test -z "$darwin_install_name"; then
8793 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8795 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8796 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8802 path=-L$absdir/$objdir
8806 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8807 test -z "$libdir" && \
8812 path=-L$absdir
8821 fi # link_all_deplibs != no
8829 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8869 -L*) new_libs="$deplib $new_libs" ;;
8870 -R*) ;;
8884 # using -Wl,-lname, so that libtool does not consider it
8901 -L*)
8918 case `$CC -V 2>&1 | $SED 5q` in
8922 if test no != "$suncc_use_cstd_abi"; then
8923 func_append postdeps ' -library=Cstd -library=Crun'
8935 if test no != "$suncc_use_cstd_abi"; then
8936 func_append postdeps ' -library=Cstd -library=Crun'
8953 if test -n "$i"; then
8968 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8969 func_warning "'-dlopen' is ignored for archives"
8973 *\ -l* | *\ -L*)
8974 func_warning "'-l' and '-L' are ignored for archives" ;;
8977 test -n "$rpath" && \
8978 func_warning "'-rpath' is ignored for archives"
8980 test -n "$xrpath" && \
8981 func_warning "'-R' is ignored for archives"
8983 test -n "$vinfo" && \
8984 func_warning "'-version-info/-version-number' is ignored for archives"
8986 test -n "$release" && \
8987 func_warning "'-release' is ignored for archives"
8989 test -n "$export_symbols$export_symbols_regex" && \
8990 func_warning "'-export-symbols' is ignored for archives"
8993 build_libtool_libs=no
9008 test no = "$module" \
9011 if test no != "$need_lib_prefix"; then
9024 if test -n "$objs"; then
9026 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9029 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
9035 test no = "$dlself" \
9036 || func_warning "'-dlopen self' is ignored for libtool libraries"
9040 test 1 -lt "$#" \
9041 && func_warning "ignoring multiple '-rpath's for a libtool library"
9046 if test -z "$rpath"; then
9057 test -n "$vinfo" && \
9058 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9060 test -n "$release" && \
9061 func_warning "'-release' is ignored for convenience libraries"
9070 test -n "$7" && \
9071 func_fatal_help "too many parameters to '-version-info'"
9083 # There are really only two kinds -- those that
9091 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
9097 freebsd-aout|qnx|sunos)
9107 lt_irix_increment=no
9114 no)
9123 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]) ;;
9131 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]) ;;
9139 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]) ;;
9146 if test "$age" -gt "$current"; then
9161 func_arith $current - $age
9167 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
9168 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9172 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
9175 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9180 freebsd-aout)
9185 freebsd-elf | midnightbsd-elf)
9186 func_arith $current - $age
9192 if test no = "$lt_irix_increment"; then
9193 func_arith $current - $age
9195 func_arith $current - $age + 1
9207 while test 0 -ne "$loop"; do
9208 func_arith $revision - $loop
9210 func_arith $loop - 1
9221 func_arith $current - $age
9227 func_arith $current - $age
9234 while test 0 -ne "$loop"; do
9235 func_arith $current - $loop
9237 func_arith $loop - 1
9262 # Use '-' rather than '.', since we only want one
9264 func_arith $current - $age
9266 versuffix=-$major
9275 if test -z "$vinfo" && test -n "$release"; then
9287 if test no = "$need_version"; then
9295 if test yes,no = "$avoid_version,$need_version"; then
9306 build_libtool_libs=no
9308 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9332 if test -n "$precious_files_regex"; then
9333 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9343 test -n "$removelist" && \
9358 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9359 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9362 if test -n "$xrpath"; then
9367 func_append temp_xrpath " -R$func_replace_sysroot_result"
9399 if test -n "$rpath"; then
9401 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9404 *-*-rhapsody* | *-*-darwin1.[012])
9408 *-*-netbsd*)
9411 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
9414 *-*-sco3.2v5* | *-*-sco5v6*)
9417 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9423 func_append deplibs " -lc"
9436 # release should show up in the -l (ie -lgmp5) so we don't want to
9442 droppeddeps=no
9462 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9466 -l*)
9467 func_stripname -l '' "$i"
9477 if test -n "$i"; then
9482 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9506 -l*)
9507 func_stripname -l '' "$i"
9510 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9520 if test -n "$i"; then
9525 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9559 -l*)
9560 func_stripname -l '' "$a_deplib"
9570 if test -n "$a_deplib"; then
9572 if test -n "$file_magic_glob"; then
9573 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9577 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9580 shopt -s nocaseglob
9581 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9584 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9588 if ls -lLd "$potent_lib" 2>/dev/null |
9589 $GREP " -> " >/dev/null; then
9598 while test -h "$potlib" 2>/dev/null; do
9599 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9601 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9606 $SED -e 10q |
9615 if test -n "$a_deplib"; then
9623 if test -z "$potlib"; then
9624 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9632 # Add a -L argument.
9643 -l*)
9644 func_stripname -l '' "$a_deplib"
9654 if test -n "$a_deplib"; then
9657 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9659 potlib=$potent_lib # see symlink-check above in file_magic test
9669 if test -n "$a_deplib"; then
9677 if test -z "$potlib"; then
9678 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9686 # Add a -L argument.
9694 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9705 echo "*** Warning: inter-library dependencies are not supported in this platform."
9707 echo "*** Warning: inter-library dependencies are not known to be supported."
9709 echo "*** All declared inter-library dependencies are being dropped."
9722 *-*-rhapsody* | *-*-darwin1.[012])
9724 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9731 echo "*** Warning: libtool could not satisfy all declared inter-library"
9734 echo "*** application is linked with the -dlopen flag."
9735 if test -z "$global_symbol_pipe"; then
9742 if test no = "$build_old_libs"; then
9747 build_libtool_libs=no
9750 echo "*** The inter-library dependencies that have been dropped here will be"
9752 echo "*** or is declared to -dlopen it."
9754 if test no = "$allow_undefined"; then
9758 echo "*** it was explicitly requested with -no-undefined,"
9760 if test no = "$build_old_libs"; then
9765 build_libtool_libs=no
9773 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9775 *-*-darwin*)
9776 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9777 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9778 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9787 *" -L$path/$objdir "*) ;;
9790 *" -L$path/$objdir "*)
9791 func_append new_libs " -L$path/$objdir" ;;
9798 -L*)
9809 # All the library-specific variables (install_libdir is set above).
9828 if test -n "$hardcode_libdir_flag_spec"; then
9829 if test -n "$hardcode_libdir_separator"; then
9832 if test -z "$hardcode_libdirs"; then
9848 elif test -n "$runpath_var"; then
9856 if test -n "$hardcode_libdir_separator" &&
9857 test -n "$hardcode_libdirs"; then
9861 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9869 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9874 if test -n "$shlibpath"; then
9886 if test -n "$soname_spec"; then
9891 if test -z "$dlname"; then
9903 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9907 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9915 cygwin* | mingw* | cegcc*)
9916 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9934 if test -z "$export_symbols"; then
9935 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9953 try_normal_branch=no
9957 && { test "$len" -lt "$max_cmd_len" \
9958 || test "$max_cmd_len" -le -1; }
9962 elif test -n "$nm_file_list_spec"; then
9991 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9992 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9998 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10000 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10004 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
10012 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10015 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10029 if test -n "$convenience"; then
10030 if test -n "$whole_archive_flag_spec" &&
10032 test -z "$libobjs"; then
10037 if test -n "$whole_archive_flag_spec"; then
10051 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
10062 if test yes = "$module" && test -n "$module_cmds"; then
10063 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10071 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10083 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10098 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10113 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10126 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10146 if test -n "$save_libobjs"; then
10148 output=$output_objdir/$output_la-$k.$objext
10160 if test -z "$objlist" ||
10161 test "$len" -lt "$max_cmd_len"; then
10166 if test 1 -eq "$k"; then
10176 last_robj=$output_objdir/$output_la-$k.$objext
10179 output=$output_objdir/$output_la-$k.$objext
10189 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10192 if test -n "$last_robj"; then
10201 ${skipped_export-false} && {
10207 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10209 if test -n "$last_robj"; then
10214 test -n "$save_libobjs" &&
10240 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10241 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10246 ${skipped_export-false} && {
10247 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10249 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10253 if test -n "$orig_export_symbols"; then
10261 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10264 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10272 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10280 if test yes = "$module" && test -n "$module_cmds"; then
10281 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10287 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10295 if test -n "$delfiles"; then
10301 if test -n "$dlprefiles"; then
10338 if test -n "$convenience"; then
10339 if test -z "$whole_archive_flag_spec"; then
10354 # If -module or -export-dynamic was specified, set the dlname.
10363 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10364 func_warning "'-dlopen' is ignored for objects"
10368 *\ -l* | *\ -L*)
10369 func_warning "'-l' and '-L' are ignored for objects" ;;
10372 test -n "$rpath" && \
10373 func_warning "'-rpath' is ignored for objects"
10375 test -n "$xrpath" && \
10376 func_warning "'-R' is ignored for objects"
10378 test -n "$vinfo" && \
10379 func_warning "'-version-info' is ignored for objects"
10381 test -n "$release" && \
10382 func_warning "'-release' is ignored for objects"
10386 test -n "$objs$old_deplibs" && \
10387 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10403 # single-version convenience libraries. Whenever we create
10404 # different ones for PIC/non-PIC, this we'll have to duplicate
10408 # if reload_cmds runs $LD directly, get rid of -Wl from
10414 if test -n "$convenience"; then
10415 if test -n "$whole_archive_flag_spec"; then
10417 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10431 # Create the old-style object.
10438 if test -z "$libobj"; then
10439 if test -n "$gentop"; then
10447 if test -n "$gentop"; then
10451 # Create an invalid libtool object if no PIC, so that we don't
10458 if test -n "$pic_flag" || test default != "$pic_mode"; then
10465 if test -n "$gentop"; then
10477 test -n "$vinfo" && \
10478 func_warning "'-version-info' is ignored for programs"
10480 test -n "$release" && \
10481 func_warning "'-release' is ignored for programs"
10485 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
10488 *-*-rhapsody* | *-*-darwin1.[012])
10490 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10491 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10496 *-*-darwin*)
10500 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10502 func_append compile_command " $wl-bind_at_load"
10503 func_append finalize_command " $wl-bind_at_load"
10507 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10508 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10509 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10519 *" -L$path/$objdir "*) ;;
10522 *" -L$path/$objdir "*)
10523 func_append new_libs " -L$path/$objdir" ;;
10530 -L*)
10545 if test -n "$rpath$xrpath"; then
10548 # This is the magic to use -rpath.
10560 if test -n "$hardcode_libdir_flag_spec"; then
10561 if test -n "$hardcode_libdir_separator"; then
10562 if test -z "$hardcode_libdirs"; then
10578 elif test -n "$runpath_var"; then
10585 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10586 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10601 if test -n "$hardcode_libdir_separator" &&
10602 test -n "$hardcode_libdirs"; then
10611 if test -n "$hardcode_libdir_flag_spec"; then
10612 if test -n "$hardcode_libdir_separator"; then
10613 if test -z "$hardcode_libdirs"; then
10629 elif test -n "$runpath_var"; then
10637 if test -n "$hardcode_libdir_separator" &&
10638 test -n "$hardcode_libdirs"; then
10644 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10653 if test -n "$prelink_cmds"; then
10663 *cygwin* | *mingw* )
10667 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10677 # We have no uninstalled library dependencies, so finalize right now.
10681 if test -n "$postlink_cmds"; then
10683 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10688 if test -f "$output_objdir/${outputname}S.$objext"; then
10695 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10698 if test -n "$finalize_shlibpath"; then
10704 if test -n "$runpath_var"; then
10705 if test -n "$perm_rpath"; then
10713 if test -n "$finalize_perm_rpath"; then
10733 if test -n "$postlink_cmds"; then
10735 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10755 *,no)
10769 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10773 if test -n "$postlink_cmds"; then
10775 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10783 if test -n "$relink_command"; then
10786 if eval test -z \"\${$var+set}\"; then
10787 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10788 elif eval var_value=\$$var; test -z "$var_value"; then
10817 *cygwin* | *mingw* )
10821 cwrappersource=$output_path/$objdir/lt-$output_name.c
10829 # because it contains $host paths and files. If cross-
10833 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10844 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10846 func_emit_wrapper no > $func_ltwrapper_scriptname_result
10854 func_emit_wrapper no > $output
10863 # See if we need to build an old-fashioned archive.
10870 build_libtool_libs=no
10875 build_libtool_libs=no
10879 $preload && test -f "$symfileobj" \
10885 if test -n "$addlibs"; then
10894 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10899 if test -n "$dlprefiles"; then
10907 # POSIX demands no paths to be encoded in archives. We have
10917 done | sort | sort -uc >/dev/null 2>&1); then
10937 newobj=lt$counter-$objbase
10942 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10958 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10960 elif test -n "$archiver_list_spec"; then
10994 if test "$len" -lt "$max_cmd_len"; then
11002 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
11010 if test -z "$oldobjs"; then
11020 test -n "$generated" && \
11032 if eval test -z \"\${$var+set}\"; then
11033 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
11034 elif eval var_value=\$$var; test -z "$var_value"; then
11043 …relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_ar…
11052 for installed in no yes; do
11054 if test -z "$install_libdir"; then
11066 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
11067 test -z "$libdir" && \
11071 -L*)
11072 func_stripname -L '' "$deplib"
11074 func_append newdependency_libs " -L$func_replace_sysroot_result"
11076 -R*)
11077 func_stripname -R '' "$deplib"
11079 func_append newdependency_libs " -R$func_replace_sysroot_result"
11092 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11093 test -z "$libdir" && \
11105 # Only pass preopened files to the pseudo-archive (for
11111 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11112 test -z "$libdir" && \
11123 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11132 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11142 # systems that can't hard-code library paths into their executables
11143 # and that have no shared library path variable independent of PATH,
11145 # libtool variables, so we have to hard-code the OSs to which it
11151 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
11152 # If a -bindir argument was supplied, place the dll there.
11153 if test -n "$bindir"; then
11163 # $outputname - a libtool library file
11195 # Should we warn about portability when linking against -modules?
11204 if test no,yes = "$installed,$need_relink"; then
11241 -f) func_append RM " $arg"; rmforce=: ;;
11242 -*) func_append RM " $arg" ;;
11247 test -z "$RM" && \
11272 # Don't error if the file doesn't exist and rm -f was used.
11273 if { test -L "$file"; } >/dev/null 2>&1 ||
11274 { test -h "$file"; } >/dev/null 2>&1 ||
11275 test -f "$file"; then
11277 elif test -d "$file"; then
11296 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11302 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11304 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11307 if test -n "$library_names"; then
11312 if test -n "$old_library"; then
11330 if test -n "$pic_object" && test none != "$pic_object"; then
11334 # Add non-PIC object to the list of files to remove.
11335 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11370 if test yes = "$fast_install" && test -n "$relink_command"; then
11371 func_append rmfiles " $odir/lt-$name"
11374 func_append rmfiles " $odir/lt-$noexename.c"
11385 if test -d "$dir"; then
11397 test -z "$opt_mode" && {
11402 test -z "$exec_cmd" && \
11405 if test -n "$exec_cmd"; then
11420 # time on that platform, so we default to a shared-only configuration.
11421 # If a disable-shared tag is given, we'll fallback to a static-only
11422 # configuration. But we'll never go from static-only to shared-only.
11424 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11425 build_libtool_libs=no
11427 # ### END LIBTOOL TAG CONFIG: disable-shared
11429 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11430 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
11431 # ### END LIBTOOL TAG CONFIG: disable-static
11434 # mode:shell-script
11435 # sh-indentation:2