• Home
  • Raw
  • Download

Lines Matching +full:libltdl +full:- +full:dev

2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2019-02-19.15
5 # libtool (GNU libtool) 2.4.6.59-b55b-dirty
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2019, 2021 Free Software Foundation, Inc.
34 VERSION=2.4.6.59-b55b-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=2019-02-19.15; # UTC
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
166 { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; }
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" && {
237 # to search for them ourselves - except when the results are already set
242 test -z "$SED" && {
247 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
262 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
263 diff conftest.out conftest.nl >/dev/null 2>&1 || 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
299 diff conftest.out conftest.nl >/dev/null 2>&1 || 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 ## ----------------- ##
433 # debug_cmd='eval 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 # ---------------------
593 test -z "$_G_HAVE_PLUSEQ_OP" \
594 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
618 # ----------------------------
641 # --------------------------
645 # func_append_uniq options " --another-option option-argument"
647 # will only append to $options if " --another-option option-argument "
665 # ------------------
667 test -z "$_G_HAVE_ARITH_OP" \
668 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
689 # ------------------
722 # -------------------------------------------
734 # --------------------------------------------------------
755 # ----------------
774 # --------------------
775 # Invoke $ECHO with all args, space-separated.
783 # ------------------------------
800 test -n "$_G_tc" && {
819 # -----------------
832 # -----------------------
844 # -----------------------------
850 $GREP "$1" "$2" >/dev/null 2>&1
855 # ---------------
858 test -z "$_G_HAVE_XSI_OPS" \
860 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
875 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
880 # func_mkdir_p DIRECTORY-PATH
881 # ---------------------------
882 # Make sure the entire path to DIRECTORY-PATH is available.
890 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
892 # Protect directory names starting with '-'
894 -*) _G_directory_path=./$_G_directory_path ;;
898 while test ! -d "$_G_directory_path"; do
907 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
917 $MKDIR "$_G_dir" 2>/dev/null || :
922 test -d "$_G_directory_path" || \
929 # -------------------------
937 _G_template=${TMPDIR-/tmp}/${1-$progname}
940 # Return a directory name, but don't create it in dry-run mode
941 _G_tmpdir=$_G_template-$$
945 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
947 if test ! -d "$_G_tmpdir"; then
949 _G_tmpdir=$_G_template-${RANDOM-0}$$
957 # If we're not in dry-run mode, bomb out on failure
958 test -d "$_G_tmpdir" || \
967 # ------------------------
968 # Remove doubled-up and trailing slashes, "." path components,
998 # we take advantage of case's first-match behaviour.
1021 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
1026 if test -z "$func_normal_abspath_result"; then
1032 -e "$_G_pathcar"`
1034 -e "$_G_pathcdr"`
1051 # Restore leading double-slash if one was found on entry.
1057 # --------------------
1066 # fails when set -e is in force, so we need another command to
1073 # --------------------------------
1098 if test -z "$func_relative_path_result"; then
1106 if test -z "$func_relative_path_tlibdir"; then
1117 # Now calculate path; take care to avoid doubling-up slashes.
1121 if test -n "$func_stripname_result"; then
1126 if test -n "$func_relative_path_result"; then
1131 test -n "$func_relative_path_result" || func_relative_path_result=.
1138 # ----------------------------
1150 # one-time-loop (easy break)
1155 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1205 # double-quote args containing shell metacharacters to delay
1218 # -----------------------
1221 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1222 printf -v _GL_test_printf_tilde %q '~'
1226 printf -v func_quotefast_eval_result %q "$1"
1238 printf -v func_quotefast_eval_result %q "$1"
1253 # ------------------------
1258 # double-quoted (when needed), suitable for a subsequent eval
1264 # ----------------
1266 # - escape shell special characters
1268 # - the same as 'eval'; but do not quote variable references
1270 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1274 # - produce also $func_quote_arg_unquoted_result which does not contain
1275 # wrapping double-quotes.
1280 # ------------+-----------------------+-------------------
1285 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1290 # --------------+---------------------+--------------------
1291 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1308 # Faster quote-for-eval for some shells.
1317 # ------------------------
1325 while test 0 -lt $#; do
1327 if test -n "$func_quote_result"; then
1338 # ---------------------------------
1360 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1361 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1368 # -----------------------------
1377 _G_fail_exp=${2-':'}
1385 if test 0 -ne "$_G_status"; then
1393 # ------------------------------------
1402 _G_fail_exp=${2-':'}
1414 if test 0 -ne "$_G_status"; then
1422 # ----------
1425 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1432 [0-9]* | *[!a-zA-Z0-9_]*)
1433 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1443 # -------------------
1456 # -----------------------------
1469 # ----------------------------
1494 # -----------------------
1495 # 'sort -V' is not generally available.
1497 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1507 | 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
1511 # ---------------------
1525 # mode: shell-script
1526 # sh-indentation: 2
1527 # eval: (add-hook 'before-save-hook 'time-stamp)
1528 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1529 # time-stamp-time-zone: "UTC"
1539 # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1543 # <http://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1549 # <https://github.com/gnulib-modules/bootstrap/issues>
1552 scriptversion=2019-02-19.15; # UTC
1555 ## ------ ##
1557 ## ------ ##
1567 # . relative/path/to/options-parser
1573 # In order for the '--version' option to work, you will need to have a
1577 # For '-h' and '--help' to work, you will also need a one line
1581 # The default options also support '--debug', which will turn on shell
1583 # use), and '--verbose' and the func_verbose function to allow your script
1585 # '--verbose'.
1592 ## -------------- ##
1594 ## -------------- ##
1600 # The usage line for option parsing errors and the start of '-h' and
1601 # '--help' output messages. You can embed shell variables for delayed
1603 # quote other shell meta-characters carefully to prevent them being
1607 # Short help message in response to '-h' and '--help'. Add to this or
1611 --debug enable verbose shell tracing
1612 -W, --warnings=CATEGORY
1614 -v, --verbose verbosely report processing
1615 --version print version information and exit
1616 -h, --help print short or long help message and exit
1619 # Additional text appended to 'usage_message' in response to '--help'.
1627 fatal_help="Try '\$progname --help' for more information."
1631 ## ------------------------- ##
1633 ## ------------------------- ##
1640 # -----------------------
1652 # ---------------------------------
1669 # ------------------------------------
1681 # ---------------------------------------------
1699 # ---------------------------------
1702 # than a whitespace-delimited list of legal shell function names, and
1703 # no effort is wasted trying to catch shell meta-characters or preserve
1728 ## --------------- ##
1730 ## --------------- ##
1752 # -s, --silent don'\''t print informational messages
1769 # while test $# -gt 0; do
1772 # --silent|-s) opt_silent=:
1775 # # Separate non-argument short options:
1776 # -s*) func_split_short_opt "$_G_opt"
1778 # "-$func_split_short_opt_arg" ${1+"$@"}
1803 # '--silent' and '--verbose' options are mutually exclusive."
1813 # ----------------------------
1825 # ---------------------
1848 # As we (func_options) are top-level options-parser function and
1858 # --------------------------
1879 # ---------------------------
1888 while test $# -gt 0; do
1897 # this if-branch). No need to quote it again.
1902 test $# -gt 0 || break
1905 # and thus we remove _G_opt from "$@" and need to re-quote.
1910 --debug|-x) debug_cmd='set -x'
1915 --no-warnings|--no-warning|--no-warn)
1916 set dummy --warnings none ${1+"$@"}
1920 --warnings|--warning|-W)
1949 --verbose|-v) opt_verbose=: ;;
1950 --version) func_version ;;
1951 -\?|-h) func_usage ;;
1952 --help) func_help ;;
1955 --*=*) func_split_equals "$_G_opt"
1962 -W*)
1969 # Separate non-argument short options:
1970 -\?*|-h*|-v*|-x*)
1973 "-$func_split_short_opt_arg" ${1+"$@"}
1977 --) _G_parse_options_requote=: ; break ;;
1978 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1999 # ------------------------------
2007 # Display all warnings if -W was not given.
2008 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
2019 ## ----------------- ##
2021 ## ----------------- ##
2024 # hookable option parser framework in ascii-betical order.
2028 # ----------------------
2043 # ---------
2056 # ------------------------
2069 # ------------------------
2072 test -z "$_G_HAVE_XSI_OPS" \
2074 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
2105 # -----------------------------
2124 func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'`
2125 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2131 # ----------
2138 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2144 # ------------------
2152 $SED -n 's|^# ||
2164 # ------------
2180 $SED -n '
2200 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2210 # mode: shell-script
2211 # sh-indentation: 2
2212 # eval: (add-hook 'before-save-hook 'time-stamp)
2213 # time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2214 # time-stamp-time-zone: "UTC"
2218 scriptversion='(GNU libtool) 2.4.6.59-b55b-dirty'
2222 # ----------------
2242 # -------------------
2253 ## ---------------- ##
2255 ## ---------------- ##
2260 usage='$progpath [OPTION]... [MODE-ARG]...'
2262 # Short help message in response to '-h'.
2264 --config show all configuration variables
2265 --debug enable verbose shell tracing
2266 -n, --dry-run display commands without modifying any files
2267 --features display basic configuration information and exit
2268 --mode=MODE use operation mode MODE
2269 --no-warnings equivalent to '-Wnone'
2270 --preserve-dup-deps don't remove duplicate dependency libraries
2271 --quiet, --silent don't print informational messages
2272 --tag=TAG use configuration variables from tag TAG
2273 -v, --verbose print more informational messages than default
2274 --version print version information
2275 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2276 -h, --help, --help-all print short, long, or detailed help message
2279 # Additional text appended to 'usage_message' in response to '--help'.
2297 MODE-ARGS vary depending on the MODE. When passed as first option,
2298 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2299 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2304 host-triplet: $host
2309 version: $progname (GNU libtool) 2.4.6.59-b55b-dirty
2310 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2311 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2313 Report bugs to <bug-libtool@gnu.org>.
2320 # func_lo2o OBJECT-NAME
2321 # ---------------------
2322 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2337 # func_xform LIBOBJ-OR-SOURCE
2338 # ---------------------------
2339 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2340 # suffix to a '.lo' libtool-object suffix.
2360 # -------------------------------
2372 # -----------
2384 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2392 # -------------
2413 # -----------------------
2428 *[!-_A-Za-z0-9,/]*)
2438 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2443 # also don't use non-portable quotes within backquotes within
2445 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2456 # ------------------------
2463 if test -z "$macro_version"; then
2493 # -----------------------------
2513 # Shorthand for --mode=foo, only valid as the first argument
2516 shift; set dummy --mode clean ${1+"$@"}; shift
2519 shift; set dummy --mode compile ${1+"$@"}; shift
2522 shift; set dummy --mode execute ${1+"$@"}; shift
2525 shift; set dummy --mode finish ${1+"$@"}; shift
2528 shift; set dummy --mode install ${1+"$@"}; shift
2531 shift; set dummy --mode link ${1+"$@"}; shift
2534 shift; set dummy --mode uninstall ${1+"$@"}; shift
2551 # ---------------------------------
2561 while test $# -gt 0; do
2566 --dry-run|--dryrun|-n)
2570 --config) func_config ;;
2572 --dlopen|-dlopen)
2578 --preserve-dup-deps)
2581 --features) func_features ;;
2583 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2585 --help) opt_help=: ;;
2587 --help-all) opt_help=': help-all' ;;
2589 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2604 --no-silent|--no-quiet)
2609 --no-warnings|--no-warning|--no-warn)
2614 --no-verbose)
2619 --silent|--quiet)
2625 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2632 --verbose|-v) opt_quiet=false
2657 # ---------------------------------
2662 # save first non-option argument
2663 if test 0 -lt $#; then
2668 # preserve --debug
2669 test : = "$debug_cmd" || func_append preserve_args " --debug"
2694 # Only execute mode is allowed to have -dlopen flags.
2695 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2696 func_error "unrecognized option '-dlopen'"
2701 # Change the help message to a mode-specific one.
2703 help="Try '$progname --help --mode=$opt_mode' for more information."
2713 # Process options as early as possible so that --help and --version
2720 ## ----------- ##
2722 ## ----------- ##
2732 # will be execed at the end. This prevents here-documents from being
2750 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2759 test -f "$1" &&
2760 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2773 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2781 exec 0<&5 5<&-
2792 test -f "$1" &&
2793 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
2807 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
2832 # Execute tilde-delimited COMMANDS.
2834 # FAIL_CMD may read-access the current command in variable CMD!
2844 func_show_eval "$cmd" "${2-:}"
2853 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2900 # if one wasn't chosen via the "--tag" command line option.
2908 if test -n "$available_tags" && test -z "$tagname"; then
2924 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
2926 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2929 # Double-quote args containing other shell metacharacters.
2947 # was found and let the user know that the "--tag" command
2949 if test -z "$tagname"; then
2951 func_fatal_error "specify a tag with '--tag'"
2982 # $write_libobj - a libtool object file
2991 # Name of the non-PIC object
3018 if test -n "$1"; then
3019 # Unfortunately, winepath does not exit with a non-zero error code, so we
3023 # zero AND non-empty stdout, which explains the odd construction:
3024 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
3025 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
3027 $SED -e "$sed_naive_backslashify"`
3052 if test -n "$1"; then
3058 if test -n "$func_convert_core_file_wine_to_w32_result"; then
3059 if test -z "$func_convert_core_path_wine_to_w32_result"; then
3091 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3092 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
3093 if test "$?" -ne 0; then
3099 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3113 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
3114 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3127 if test -z "$2" && test -n "$1"; then
3146 if test -z "$4" && test -n "$3"; then
3155 $SED -e "$lt_replace_pathsep_chars"`
3243 if test -n "$1"; then
3260 if test -n "$1"; then
3263 func_to_host_file_result=`cygpath -m "$1"`
3278 if test -n "$1"; then
3295 if test -n "$1"; then
3297 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3314 if test -n "$1"; then
3317 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3354 if test -z "$to_host_path_cmd"; then
3392 if test -n "$1"; then
3416 if test -n "$1"; then
3420 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3437 if test -n "$1"; then
3459 if test -n "$1"; then
3464 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3483 if test -n "$1"; then
3490 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3507 func_dll_def_p_tmp=`$SED -n \
3508 -e 's/^[ ]*//' \
3509 -e '/^\(;.*\)*$/d' \
3510 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3511 -e q \
3524 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3548 # Accept any command-line options.
3550 -o)
3551 test -n "$libobj" && \
3552 func_fatal_error "you cannot specify '-o' more than once"
3557 -pie | -fpie | -fPIE)
3562 -shared | -static | -prefer-pic | -prefer-non-pic)
3567 -no-suppress)
3572 -Xcompiler)
3577 -Wc,*)
3578 func_stripname '-Wc,' '' "$arg"
3612 func_fatal_error "you must specify an argument for -Xcompile"
3615 func_fatal_error "you must specify a target with '-o'"
3619 test -z "$libobj" && {
3627 # If the user specifies -o file.o, it is replaced with file.lo
3649 -shared)
3656 -static)
3662 -prefer-pic)
3667 -prefer-non-pic)
3683 test -z "$base_compile" && \
3700 # non-PIC code in shared libraries is not supported
3705 # not support -o with -c
3718 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3723 if test -f "$lockfile"; then
3726 `cat $lockfile 2>/dev/null`
3730 your compiler does not support '-c' and '-o' together. If you
3732 avoid parallel builds (make -j) in this platform, or get a better
3765 if test -z "$output_obj"; then
3767 func_append command " -o $lobj"
3771 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3774 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3777 `cat $lockfile 2>/dev/null`
3784 your compiler does not support '-c' and '-o' together. If you
3786 avoid parallel builds (make -j) in this platform, or get a better
3794 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3801 suppress_output=' >/dev/null 2>&1'
3805 # Only build a position-dependent object if we build old libraries.
3814 func_append command " -o $obj"
3823 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3826 `cat $lockfile 2>/dev/null`
3833 your compiler does not support '-c' and '-o' together. If you
3835 avoid parallel builds (make -j) in this platform, or get a better
3843 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3878 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3883 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3892 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3898 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3899 -no-suppress do not suppress compiler output for multiple passes
3900 -prefer-pic try to build PIC objects only
3901 -prefer-non-pic try to build non-PIC objects only
3902 -shared do not build a '.o' file suitable for static linking
3903 -static only build a '.o' file suitable for static linking
3904 -Wc,FLAG
3905 -Xcompiler FLAG pass FLAG directly to the compiler
3907 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3917 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3923 -dlopen FILE add the directory containing FILE to the library path
3925 This mode sets the library path environment variable according to '-dlopen'
3937 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3944 the '--dry-run' option if you just want to see what would be executed."
3949 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3953 INSTALL-COMMAND is the installation command. The first component should be
3956 The following components of INSTALL-COMMAND are treated specially:
3958 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3961 BSD-compatible install options are recognized)."
3966 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3971 LINK-COMMAND is a command using the C compiler that you would use to create
3974 The following components of LINK-COMMAND are treated specially:
3976 -all-static do not do any dynamic linking at all
3977 -avoid-version do not add a version suffix if possible
3978 -bindir BINDIR specify path to binaries directory (for systems where
3980 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3981 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3982 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3983 -export-symbols SYMFILE
3985 -export-symbols-regex REGEX
3987 -LLIBDIR search LIBDIR for required installed libraries
3988 -lNAME OUTPUT-FILE requires the installed library libNAME
3989 -module build a library that can dlopened
3990 -no-fast-install disable the fast-install mode
3991 -no-install link a not-installable executable
3992 -no-undefined declare that a library does not refer to external symbols
3993 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3994 -objectlist FILE use a list of object files found in FILE to specify objects
3995 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3996 -precious-files-regex REGEX
3998 -release RELEASE specify package release information
3999 -rpath LIBDIR the created library will eventually be installed in LIBDIR
4000 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
4001 -shared only do dynamic linking of libtool libraries
4002 -shrext SUFFIX override the standard shared library file extension
4003 -static do not do any dynamic linking of uninstalled libtool libraries
4004 -static-libtool-libs
4006 -version-info CURRENT[:REVISION[:AGE]]
4008 -weak LIBNAME declare that the target provides the LIBNAME interface
4009 -Wc,FLAG
4010 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
4011 -Wa,FLAG
4012 -Xassembler FLAG pass linker-specific FLAG directly to the assembler
4013 -Wl,FLAG
4014 -Xlinker FLAG pass linker-specific FLAG directly to the linker
4015 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
4017 All other options (arguments beginning with '-') are ignored.
4023 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
4024 only library objects ('.lo' files) may be specified, and '-rpath' is
4027 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
4030 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
4036 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
4041 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
4054 $ECHO "Try '$progname --help' for more information about other modes."
4057 # Now that we've collected a possible --mode arg, show help if necessary
4067 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
4083 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4096 test -z "$cmd" && \
4099 # Handle -dlopen flags immediately.
4101 test -f "$file" \
4120 if test -z "$dlname"; then
4122 test -n "$library_names" && \
4123 func_warning "'$file' was not linked with '-export-dynamic'"
4130 if test -f "$dir/$objdir/$dlname"; then
4133 if test ! -f "$dir/$dlname"; then
4146 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4153 test -n "$absdir" && dir=$absdir
4156 if eval "test -z \"\$$shlibpath_var\""; then
4172 -* | *.la | *.lo ) ;;
4193 if test -n "$shlibpath_var"; then
4200 if test -n "$shlibpath_var"; then
4234 if test -d "$opt"; then
4237 elif test -f "$opt"; then
4249 if test -n "$libs"; then
4250 if test -n "$lt_sysroot"; then
4265 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4266 > $tmpdir/tmp-la
4267 mv -f $tmpdir/tmp-la $lib
4273 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4275 if test -n "$finish_cmds"; then
4280 if test -n "$finish_eval"; then
4292 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4293 echo "----------------------------------------------------------------------"
4301 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4303 if test -n "$shlibpath_var"; then
4304 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4307 if test -n "$runpath_var"; then
4308 echo " - add LIBDIR to the '$runpath_var' environment variable"
4311 if test -n "$hardcode_libdir_flag_spec"; then
4315 $ECHO " - use the '$flag' linker flag"
4317 if test -n "$admincmds"; then
4318 $ECHO " - have your system administrator run these commands:$admincmds"
4320 if test -f /etc/ld.so.conf; then
4321 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4327 solaris2.[6789]|solaris2.1[0-9])
4335 echo "----------------------------------------------------------------------"
4386 if test -n "$dest"; then
4393 -d) isdir=: ;;
4394 -f)
4399 -g | -m | -o)
4402 -s)
4403 stripme=" -s"
4406 -*)
4410 if test -n "$prev"; then
4411 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4426 if test -n "$arg2"; then
4432 test -z "$install_prog" && \
4435 test -n "$prev" && \
4438 if test -n "$install_override_mode" && $no_mode; then
4441 func_append install_shared_prog " -m $func_quote_arg_result"
4445 if test -z "$files"; then
4446 if test -z "$dest"; then
4458 test -d "$dest" && isdir=:
4469 test "$#" -gt 1 && \
4473 [\\/]* | [A-Za-z]:[\\/]*) ;;
4533 if test -n "$relink_command"; then
4535 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4546 if test -n "$inst_prefix_dir"; then
4548 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4560 if test -n "$1"; then
4565 test -n "$relink_command" && srcname=${realname}T
4587 if test -n "$tstripme" && test -n "$striplib"; then
4591 if test "$#" -gt 0; then
4593 # Try 'ln -sf' first, because the 'ln' binary might depend on
4594 # the symlink we replace! Solaris /bin/ln does not understand -f,
4595 # so we also need to try rm && ln -s.
4599 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4608 # Install the pseudo-library for information purposes.
4615 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4622 if test -n "$destname"; then
4630 # Deduce the name of the destination old-style object file.
4646 test -n "$destfile" && \
4651 # Deduce the name of the old-style object file.
4661 if test -n "$destname"; then
4675 if test ! -f "$file"; then
4705 test -z "$generated_by_libtool_version" && \
4712 if test -f "$lib"; then
4716 if test -n "$libdir" && test ! -f "$libfile"; then
4726 if test no = "$fast_install" && test -n "$relink_command"; then
4776 $opt_dry_run || if test -n "$outputname"; then
4794 if test -n "$stripme" && test -n "$old_striplib"; then
4802 test -n "$future_libdirs" && \
4803 func_warning "remember to run '$progname --finish$future_libdirs'"
4805 if test -n "$current_libdirs"; then
4807 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4808 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4826 my_pic_p=${3-false}
4827 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4830 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4831 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4838 if test -n "$my_dlsyms"; then
4851 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4859 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4865 relocations are performed -- see ld's documentation on pseudo-relocs. */
4892 if test -n "$exclude_expsyms"; then
4894 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4899 if test -n "$export_symbols_regex"; then
4901 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4907 if test -z "$export_symbols"; then
4911 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4921 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4922 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4945 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4948 if test -n "$dlprefile_dlname"; then
4952 # no lafile. user explicitly requested -dlpreopen <import library>.
4958 if test -n "$dlprefile_dlbasename"; then
4965 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
4966 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4972 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4980 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4988 test -f "$nlist" || : > "$nlist"
4990 if test -n "$exclude_expsyms"; then
4991 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4996 if $GREP -v "^: " < "$nlist" |
4997 if sort -k 3 </dev/null >/dev/null 2>&1; then
4998 sort -k 3
5005 $GREP -v "^: " < "$nlist" > "$nlist"S
5008 if test -f "$nlist"S; then
5015 if test -n "$global_symbol_to_import"; then
5030 if test -s "$nlist"I; then
5035 for (; symbol->name; ++symbol)
5037 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
5047 if test -s "$nlist"I; then
5079 *" -static "*) ;;
5083 # a FreeBSD bug that causes programs to crash when -lm is
5085 # pic_flag when linking with -static. The problem exists in
5087 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5088 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5089 *-*-hpux*)
5100 -pie | -fpie | -fPIE) ;;
5106 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
5115 if test -f "$output_objdir/$my_outputname.def"; then
5146 # ARG is a GNU/binutils-style import library. Returns
5153 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
5154 test -n "$func_cygming_gnu_implib_tmp"
5159 # ARG is an MS-style import library. Returns
5167 test -n "$func_cygming_ms_implib_tmp"
5182 win32_fileres=`file -L $1 2>/dev/null`
5189 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5190 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5203 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5204 $SED -n -e '
5236 # Platform-specific function to extract the
5247 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5253 # platform-specific function to extract the name of the
5266 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5275 /:[ ]*file format pe[i]\{,1\}-/d
5283 $SED -n '
5304 # 0x302f exports -- but will fail for DLLs whose name actually
5309 $SED -e '/^\./d;/^.\./d;q'
5313 # Platform-specific function to extract the
5318 # does not support the --identify-strict option.
5331 # ms-generated import library
5349 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
5355 'stat=$?; rm -f "$lockfile"; exit $stat'
5357 $opt_dry_run || rm -f "$lockfile"
5359 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5382 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5393 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5403 *-darwin*)
5413 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5414 if test -n "$darwin_arches"; then
5415 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5419 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5420 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5421 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5424 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5427 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5431 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5432 $LIPO -create -output "$darwin_file" $darwin_files
5434 $RM -rf unfat-$$
5446 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5465 # the $objdir directory. This is a cygwin/mingw-specific
5469 func_emit_wrapper_arg1=${1-no}
5474 # $output - temporary wrapper script for $objdir/$outputname
5484 # metacharacters that are still active within double-quoted strings.
5488 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5493 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5496 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5501 # The HP-UX ksh and POSIX shell print the target directory to stdout
5503 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5534 # windows platforms, and (c) all begin with the string "--lt-"
5538 # There are only two supported options: --lt-debug and
5539 # --lt-dump-script. There is, deliberately, no --lt-help.
5551 --lt-debug) lt_option_debug=1 ;;
5552 --lt-dump-script)
5553 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5555 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5559 --lt-*)
5560 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5567 if test -n \"\$lt_option_debug\"; then
5572 # Used when --lt-debug. Prints its arguments to stdout
5590 *-*-mingw | *-*-os2* | *-cegcc*)
5592 if test -n \"\$lt_option_debug\"; then
5602 if test -n \"\$lt_option_debug\"; then
5616 # Strips options in the --lt-* namespace from \$@ and
5621 *\\ --lt-*)
5625 --lt-*) ;;
5642 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5643 while test -n \"\$file\"; do
5649 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5655 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5675 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5680 program=lt-'$outputname'$exeext
5683 if test ! -f \"\$progdir/\$program\" ||
5684 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5687 file=\"\$\$-\$program\"
5689 if test ! -d \"\$progdir\"; then
5698 if test -n \"\$relink_command\"; then
5707 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5721 if test -f \"\$progdir/\$program\"; then"
5728 if test -n "$dllsearchpath"; then
5736 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5741 # Some systems cannot cope with colon-terminated $shlibpath_var
5774 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5812 /* declarations of non-ANSI functions */
5910 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5942 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5953 if test -n "$dllsearchpath"; then
5968 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5979 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5982 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
6032 have already dealt with, above (inluding dump-script), then
6036 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
6037 or a configure.ac-settable value.
6050 /* The GNU banner must be the first non-error debug message */
6080 /* target_name transforms -- use actual target program name; might have lt- prefix */
6106 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6109 /* DO want the lt- prefix here if it exists, so use target_name */
6163 if (rval == -1)
6317 p_len = (size_t) (q - p);
6388 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6390 p--;
6435 str += len - patlen;
6549 /* some systems can't cope with a ':'-terminated path #' */
6551 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6553 new_value[--len] = '\0';
6591 - Space and tab are interpreted as delimiters. They are not treated as
6593 - Unescaped double quotes are removed from the input. Their only effect is
6596 - Backslashes not followed by double quotes are not special.
6597 - But 2*n+1 backslashes followed by a double quote become
6599 \" -> "
6600 \\\" -> \"
6601 \\\\\" -> \\"
6665 for (j = backslashes + 1; j > 0; j--)
6677 for (j = backslashes; j > 0; j--)
6701 $SED -n -e '
6722 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6737 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6752 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6762 # -no-undefined on the libtool link line when we can be certain
6820 single_module=$wl-single_module
6823 # We need to know -static, to get the right output filenames.
6827 -shared)
6833 -all-static | -static | -static-libtool-libs)
6835 -all-static)
6836 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6839 if test -n "$link_static_flag"; then
6844 -static)
6845 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6850 -static-libtool-libs)
6851 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6865 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6868 while test "$#" -gt 0; do
6876 if test -n "$prev"; then
6932 test -f "$arg" \
6944 *-*-darwin*)
6962 # '-mllvm $arg' options when doing the link step.
6967 if test -f "$arg"; then
6974 # A libtool-controlled object.
6984 if test -z "$pic_object" ||
6985 test -z "$non_pic_object" ||
7010 # CHECK ME: I think I busted this. -Ossama
7012 # Preload the old-style object.
7022 # Non-PIC object.
7027 # A standard non-PIC object
7029 if test -z "$pic_object" || test none = "$pic_object"; then
7039 # Only an error if not doing a dry-run.
7073 release=-$arg
7080 [\\/]* | [A-Za-z]:[\\/]*) ;;
7082 func_fatal_error "only absolute run-paths are allowed"
7110 func_append compiler_flags " -Xassembler $qarg"
7112 func_append compile_command " -Xassembler $qarg"
7113 func_append finalize_command " -Xassembler $qarg"
7145 fi # test -n "$prev"
7150 -all-static)
7151 if test -n "$link_static_flag"; then
7152 # See comment for -static flag below, for more details.
7159 -allow-undefined)
7161 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7164 -avoid-version)
7169 -bindir)
7174 -dlopen)
7179 -dlpreopen)
7184 -export-dynamic)
7189 -export-symbols | -export-symbols-regex)
7190 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7191 func_fatal_error "more than one -exported-symbols argument is not allowed"
7193 if test X-export-symbols = "X$arg"; then
7201 -framework)
7206 -inst-prefix-dir)
7211 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7212 # so, if we see these flags be careful not to treat them like -L
7213 -L[A-Z][A-Z]*:*)
7215 no/*-*-irix* | /*-*-irix*)
7223 -L*)
7224 func_stripname "-L" '' "$arg"
7225 if test -z "$func_stripname_result"; then
7226 if test "$#" -gt 0; then
7227 func_fatal_error "require no space between '-L' and '$1'"
7229 func_fatal_error "need path for '-L' option"
7236 [\\/]* | [A-Za-z]:[\\/]*) ;;
7239 test -z "$absdir" && \
7245 *" -L$dir "* | *" $arg "*)
7251 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7252 *) func_append deplibs " -L$dir" ;;
7258 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7275 -l*)
7276 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7278 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7282 *-*-os2*)
7284 test X-lc = "X$arg" && continue
7286 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7288 test X-lc = "X$arg" && continue
7290 *-*-rhapsody* | *-*-darwin1.[012])
7295 *-*-sco3.2v5* | *-*-sco5v6*)
7297 test X-lc = "X$arg" && continue
7299 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7301 test X-lc = "X$arg" && continue
7304 elif test X-lc_r = "X$arg"; then
7306 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*)
7307 # Do not include libc_r directly, use -pthread flag.
7316 -mllvm)
7321 -module)
7326 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7328 # Darwin uses the -arch flag to determine output architecture.
7329 -model|-arch|-isysroot|--sysroot)
7337 -pthread)
7349 -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \
7350 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7361 -multi_module)
7362 single_module=$wl-multi_module
7366 -no-fast-install)
7371 -no-install)
7373 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7376 func_warning "'-no-install' is ignored for $host"
7377 func_warning "assuming '-no-fast-install' instead"
7385 -no-undefined)
7390 -objectlist)
7395 -os2dllname)
7400 -o) prev=output ;;
7402 -precious-files-regex)
7407 -release)
7412 -rpath)
7417 -R)
7422 -R*)
7423 func_stripname '-R' '' "$arg"
7427 [\\/]* | [A-Za-z]:[\\/]*) ;;
7433 func_fatal_error "only absolute run-paths are allowed"
7443 -shared)
7444 # The effects of -shared are defined in a previous loop.
7448 -shrext)
7453 -static | -static-libtool-libs)
7454 # The effects of -static are defined in a previous loop.
7455 # We used to do the same as -all-static on platforms that
7462 -thread-safe)
7467 -version-info)
7472 -version-number)
7478 -weak)
7483 -Wc,*)
7484 func_stripname '-Wc,' '' "$arg"
7499 -Wl,*)
7500 func_stripname '-Wl,' '' "$arg"
7516 -Xassembler)
7521 -Xcompiler)
7526 -Xlinker)
7531 -XCClinker)
7536 # -msg_* for osf cc
7537 -msg_*)
7543 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7544 # -r[0-9][0-9]* specify processor for the SGI compiler
7545 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7546 # +DA*, +DD* enable 64-bit mode for the HP compiler
7547 # -q* compiler args for the IBM compiler
7548 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7549 # -F/path path to uninstalled frameworks, gcc on darwin
7550 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7551 # -fstack-protector* stack protector flags for GCC
7553 # -tp=* Portland pgcc target processor selection
7554 # --sysroot=* for sysroot support
7555 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7556 # -specs=* GCC specs files
7557 # -stdlib=* select c++ std lib with clang
7558 # -fsanitize=* Clang/GCC memory and address sanitizer
7559 # -fuse-ld=* Linker select flags for GCC
7560 # -Wa,* Pass flags directly to the assembler
7561 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7562 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7563 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7564 -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*)
7573 -Z*)
7575 # OS/2 uses -Zxxx to specify OS/2-specific options
7580 -Zlinker | -Zstack)
7593 -* | +*)
7604 # A libtool-controlled object.
7614 if test -z "$pic_object" ||
7615 test -z "$non_pic_object" ||
7640 # CHECK ME: I think I busted this. -Ossama
7642 # Preload the old-style object.
7652 # Non-PIC object.
7657 # A standard non-PIC object
7659 if test -z "$pic_object" || test none = "$pic_object"; then
7669 # Only an error if not doing a dry-run.
7694 # A libtool-controlled library.
7698 # This library was specified with -dlopen.
7702 # The library was specified with -dlpreopen.
7721 if test -n "$arg"; then
7727 test -n "$prev" && \
7730 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7742 if test -n "$shlibpath_var"; then
7776 # that are linked more than once (e.g. -la -lb -la)
7808 notinst_deplibs= # not-installed libtool libraries
7809 notinst_path= # paths that contain not-installed libtool libraries
7818 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7837 # so that -L comes before libs that need it for instance...
7863 # Ignore non-libtool-libs
7893 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7894 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7909 -l*)
7911 func_warning "'-l' is ignored for archives/objects"
7914 func_stripname '-l' '' "$deplib"
7925 if test -f "$lib"; then
7979 ;; # -l
7995 -L*)
8001 func_stripname '-L' '' "$deplib"
8016 func_stripname '-L' '' "$deplib"
8021 func_warning "'-L' is ignored for archives/objects"
8025 ;; # -L
8026 -R*)
8028 func_stripname '-R' '' "$deplib"
8052 # but linking other static libraries is non-portable.
8061 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
8062 | $EGREP "$match_pattern_regex" > /dev/null; then
8121 $found || test -f "$lib" \
8148 # Convert "-framework foo" to "foo.ltframework"
8149 if test -n "$inherited_linker_flags"; then
8150 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
8158 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8162 test -n "$dlopen" && func_append dlfiles " $dlopen"
8163 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8169 if test -z "$libdir"; then
8170 if test -z "$old_library"; then
8195 if test -n "$old_library" &&
8204 if test -z "$linklib"; then
8208 # This library was specified with -dlopen.
8210 test -z "$libdir" \
8211 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8212 if test -z "$dlname" ||
8218 # dependent libraries so libltdl's deplib preloader doesn't
8229 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8232 if test -z "$abs_ladir"; then
8244 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8255 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8270 # This library was specified with -dlpreopen.
8272 if test -z "$libdir" && test prog = "$linkmode"; then
8273 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8276 # special handling for platforms with PE-DLLs.
8286 if test -n "$dlname"; then
8294 test -z "$libdir" && \
8301 if test -n "$old_library"; then
8305 test -z "$libdir" && \
8308 elif test -n "$dlname"; then
8317 if test -z "$libdir"; then
8336 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8344 -L*) func_stripname '-L' '' "$deplib"
8368 if test -n "$library_names" &&
8371 test -z "$old_library"; }; then
8373 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8382 # Skip directories that are in the system default run-time
8407 test -n "$library_names"; }; }; then
8418 if test -n "$library_names" &&
8419 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8435 # Warn about portability, can't link against -module's on some
8444 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8456 # Skip directories that are in the system default run-time
8478 if test -n "$old_archive_from_expsyms_cmds"; then
8486 if test -n "$dlname"; then
8488 elif test -n "$soname_spec"; then
8492 func_arith $current - $age
8494 versuffix=-$major
8507 newlib=libimp-$func_stripname_result.a
8510 if test -f "$output_objdir/$soname-def"; then :
8517 if test -f "$output_objdir/$newlib"; then :; else
8524 fi # test -n "$old_archive_from_expsyms_cmds"
8536 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8537 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8538 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8539 *-*-unixware7*) add_dir=-L$dir ;;
8540 *-*-darwin* )
8541 # if the lib is a (non-dlopened) module then we cannot
8543 if /usr/bin/file -L $add 2> /dev/null |
8544 $GREP ": [^:]* bundle" >/dev/null; then
8547 if test -z "$old_library"; then
8554 elif test -n "$old_library"; then
8561 *-*-sunos*) add_shlibpath=$dir ;;
8563 add_dir=-L$dir
8564 add=-l$name
8567 add=-l$name
8577 add_dir=-L$absdir
8579 if test -n "$inst_prefix_dir"; then
8582 func_append add_dir " -L$inst_prefix_dir$libdir"
8586 add=-l$name
8589 add=-l$name
8601 if test -n "$add_shlibpath"; then
8608 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8609 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8611 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8612 test -n "$add" && deplibs="$add $deplibs"
8633 add_dir=-L$libdir
8634 add=-l$name
8640 add=-l$name
8642 if test -n "$inst_prefix_dir" &&
8643 test -f "$inst_prefix_dir$libdir/$linklib"; then
8650 add_dir=-L$libdir
8652 if test -n "$inst_prefix_dir"; then
8655 func_append add_dir " -L$inst_prefix_dir$libdir"
8659 add=-l$name
8663 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8664 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8666 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8667 test -n "$add" && deplibs="$add $deplibs"
8675 test -n "$old_library" && linklib=$old_library
8679 compile_deplibs="-l$name -L$dir $compile_deplibs"
8680 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8698 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8699 if test -z "$global_symbol_pipe"; then
8720 if test -n "$dependency_libs" &&
8724 # Extract -R from dependency_libs
8728 -R*) func_stripname '-R' '' "$libdir"
8748 -L*) func_stripname '-L' '' "$deplib"
8766 -L*) path=$deplib ;;
8774 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8777 if test -z "$absdir"; then
8783 if $GREP "^installed=no" $deplib > /dev/null; then
8785 *-*-darwin*)
8787 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8788 if test -n "$deplibrary_names"; then
8792 if test -f "$absdir/$objdir/$depdepl"; then
8794 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8795 if test -z "$darwin_install_name"; then
8796 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8798 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8799 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8805 path=-L$absdir/$objdir
8809 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8810 test -z "$libdir" && \
8815 path=-L$absdir
8832 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8872 -L*) new_libs="$deplib $new_libs" ;;
8873 -R*) ;;
8887 # using -Wl,-lname, so that libtool does not consider it
8904 -L*)
8921 case `$CC -V 2>&1 | $SED 5q` in
8926 func_append postdeps ' -library=Cstd -library=Crun'
8939 func_append postdeps ' -library=Cstd -library=Crun'
8956 if test -n "$i"; then
8971 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8972 func_warning "'-dlopen' is ignored for archives"
8976 *\ -l* | *\ -L*)
8977 func_warning "'-l' and '-L' are ignored for archives" ;;
8980 test -n "$rpath" && \
8981 func_warning "'-rpath' is ignored for archives"
8983 test -n "$xrpath" && \
8984 func_warning "'-R' is ignored for archives"
8986 test -n "$vinfo" && \
8987 func_warning "'-version-info/-version-number' is ignored for archives"
8989 test -n "$release" && \
8990 func_warning "'-release' is ignored for archives"
8992 test -n "$export_symbols$export_symbols_regex" && \
8993 func_warning "'-export-symbols' is ignored for archives"
9027 if test -n "$objs"; then
9029 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
9032 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
9039 || func_warning "'-dlopen self' is ignored for libtool libraries"
9043 test 1 -lt "$#" \
9044 && func_warning "ignoring multiple '-rpath's for a libtool library"
9049 if test -z "$rpath"; then
9060 test -n "$vinfo" && \
9061 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
9063 test -n "$release" && \
9064 func_warning "'-release' is ignored for convenience libraries"
9073 test -n "$7" && \
9074 func_fatal_help "too many parameters to '-version-info'"
9086 # There are really only two kinds -- those that
9094 darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none)
9100 freebsd-aout|qnx|sunos)
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
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
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
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;;
9605 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
9606 $SED -e 10q |
9607 $EGREP "$file_magic_regex" > /dev/null; then
9615 if test -n "$a_deplib"; then
9623 if test -z "$potlib"; then
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
9660 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
9661 $EGREP "$match_pattern_regex" > /dev/null; then
9669 if test -n "$a_deplib"; then
9677 if test -z "$potlib"; then
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
9750 echo "*** The inter-library dependencies that have been dropped here will be"
9752 echo "*** or is declared to -dlopen it."
9758 echo "*** it was explicitly requested with -no-undefined,"
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
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
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
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"
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
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…
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
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
10863 # See if we need to build an old-fashioned archive.
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
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…
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
11145 # libtool variables, so we have to hard-code the OSs to which it
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?
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
11386 func_show_eval "rmdir $dir >/dev/null 2>&1"
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
11427 # ### END LIBTOOL TAG CONFIG: disable-shared
11429 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11431 # ### END LIBTOOL TAG CONFIG: disable-static
11434 # mode:shell-script
11435 # sh-indentation:2