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

2 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
3 ## by inline-source v2014-01-03.01
6 # Provide generalized library-building support services.
9 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
34 VERSION="2.4.6 Debian-2.4.6-15build2"
38 ## ------ ##
40 ## ------ ##
42 # Run './libtool --help' for help with using this script from the
46 ## ------------------------------- ##
48 ## ------------------------------- ##
52 # with bootstrap, so set those here where they can still be over-
59 ## -------------------------- ##
61 ## -------------------------- ##
63 # Much of our low-level functionality needs to be sourced from external
67 scriptversion=2015-01-20.17; # UTC
72 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
97 ## ------ ##
99 ## ------ ##
104 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
110 ## -------------------- ##
112 ## -------------------- ##
118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
121 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
123 alias -g '${1+"$@"}'='"$@"'
126 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
163 ## ------------------------- ##
165 ## ------------------------- ##
169 # ----------------------
173 test -f "$1" && test -x "$1"
178 # --------------------------------------------
179 # Search for either a program that responds to --version with output
191 _G_PATH=${3-"$PATH"}
195 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
198 test -z "$_G_dir" && _G_dir=.
203 case `"$_G_path_prog" --version 2>&1` in
214 test -z "$func_path_progs_result" && {
223 # to search for them ourselves - except when the results are already set
228 test -z "$SED" && {
248 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
251 if test "$_G_count" -gt "$_G_path_prog_max"; then
257 test 10 -lt "$_G_count" && break
259 rm -f conftest.in conftest.tmp conftest.nl conftest.out
263 rm -f conftest.sed
270 test -z "$GREP" && {
284 … "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
287 if test "$_G_count" -gt "$_G_path_prog_max"; then
293 test 10 -lt "$_G_count" && break
295 rm -f conftest.in conftest.tmp conftest.nl conftest.out
303 ## ------------------------------- ##
305 ## ------------------------------- ##
312 : ${CP="cp -f"}
314 : ${EGREP="$GREP -E"}
315 : ${FGREP="$GREP -F"}
316 : ${LN_S="ln -s"}
319 : ${MV="mv -f"}
320 : ${RM="rm -f"}
321 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
324 ## -------------------- ##
326 ## -------------------- ##
332 # metacharacters that are still active within double-quoted strings.
347 # Re-'\' parameter expansions in output of sed_double_quote_subst that
348 # were '\'-ed in input to the same. If an odd number of '\' preceded a
364 ## ----------------- ##
366 ## ----------------- ##
390 # debug_cmd='echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
391 debug_cmd=${debug_cmd-":"}
398 # so that you can set exit_status to non-zero if you want to indicate
415 [\\/]*|[A-Za-z]:\\*) ;;
423 IFS=${PATH_SEPARATOR-:}
426 test -x "$progdir/$progname" && break
429 test -n "$progdir" || progdir=`pwd`
435 ## ----------------- ##
437 ## ----------------- ##
440 # below, and should be set appropriately depending on run-time para-
463 ## -------------------- ##
465 ## -------------------- ##
468 # particular resource (a file, or a non-empty configuration variable for
480 # -------------------
487 test -t 1 && {
491 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
501 test -n "`tput sgr0 2>/dev/null`" && {
503 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
505 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
506 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
507 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
508 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
509 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
518 ## ----------------- ##
520 ## ----------------- ##
529 # ---------------------
550 test -z "$_G_HAVE_PLUSEQ_OP" \
575 # ----------------------------
598 # --------------------------
602 # func_append_uniq options " --another-option option-argument"
604 # will only append to $options if " --another-option option-argument "
621 # func_arith TERM...
622 # ------------------
624 test -z "$_G_HAVE_ARITH_OP" \
646 # ------------------
679 # -------------------------------------------
691 # --------------------------------------------------------
712 # ----------------
731 # --------------------
732 # Invoke $ECHO with all args, space-separated.
740 # ------------------------------
757 test -n "$_G_tc" && {
776 # -----------------
789 # -----------------------
801 # -----------------------------
812 # ---------------
815 test -z "$_G_HAVE_XSI_OPS" \
837 # func_mkdir_p DIRECTORY-PATH
838 # ---------------------------
839 # Make sure the entire path to DIRECTORY-PATH is available.
847 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
849 # Protect directory names starting with '-'
851 -*) _G_directory_path=./$_G_directory_path ;;
855 while test ! -d "$_G_directory_path"; do
864 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
879 test -d "$_G_directory_path" || \
886 # -------------------------
894 _G_template=${TMPDIR-/tmp}/${1-$progname}
897 # Return a directory name, but don't create it in dry-run mode
898 _G_tmpdir=$_G_template-$$
902 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
904 if test ! -d "$_G_tmpdir"; then
906 _G_tmpdir=$_G_template-${RANDOM-0}$$
914 # If we're not in dry-run mode, bomb out on failure
915 test -d "$_G_tmpdir" || \
924 # ------------------------
925 # Remove doubled-up and trailing slashes, "." path components,
955 # we take advantage of case's first-match behaviour.
978 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
983 if test -z "$func_normal_abspath_result"; then
989 -e "$_G_pathcar"`
991 -e "$_G_pathcdr"`
1008 # Restore leading double-slash if one was found on entry.
1014 # --------------------
1023 # fails when set -e is in force, so we need another command to
1030 # --------------------------------
1055 if test -z "$func_relative_path_result"; then
1063 if test -z "$func_relative_path_tlibdir"; then
1074 # Now calculate path; take care to avoid doubling-up slashes.
1078 if test -n "$func_stripname_result"; then
1083 if test -n "$func_relative_path_result"; then
1088 test -n "$func_relative_path_result" || func_relative_path_result=.
1095 # --------------------------
1099 # double-quoted, suitable for a subsequent eval
1109 while test 0 -lt $#; do
1116 if test -n "$func_quote_for_eval_unquoted_result"; then
1123 # Double-quote args containing shell metacharacters to delay
1136 if test -n "$func_quote_for_eval_result"; then
1147 # -------------------------
1157 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1163 # Double-quote args containing shell metacharacters to delay
1177 # ---------------------------------
1199 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1200 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1207 # -----------------------------
1216 _G_fail_exp=${2-':'}
1224 if test 0 -ne "$_G_status"; then
1232 # ------------------------------------
1241 _G_fail_exp=${2-':'}
1253 if test 0 -ne "$_G_status"; then
1261 # ----------
1264 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1271 [0-9]* | *[!a-zA-Z0-9_]*)
1272 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1282 # -------------------
1295 # -----------------------------
1308 # ----------------------------
1333 # -----------------------
1334 # 'sort -V' is not generally available.
1336 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1346 | 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
1350 # ---------------------
1364 # mode: shell-script
1365 # sh-indentation: 2
1366 # eval: (add-hook 'before-save-hook 'time-stamp)
1367 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1368 # time-stamp-time-zone: "UTC"
1373 scriptversion=2015-10-07.11; # UTC
1378 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1398 ## ------ ##
1400 ## ------ ##
1410 # . relative/path/to/options-parser
1416 # In order for the '--version' option to work, you will need to have a
1420 # For '-h' and '--help' to work, you will also need a one line
1424 # The default options also support '--debug', which will turn on shell
1426 # use), and '--verbose' and the func_verbose function to allow your script
1428 # '--verbose'.
1435 ## -------------- ##
1437 ## -------------- ##
1443 # The usage line for option parsing errors and the start of '-h' and
1444 # '--help' output messages. You can embed shell variables for delayed
1446 # quote other shell meta-characters carefully to prevent them being
1450 # Short help message in response to '-h' and '--help'. Add to this or
1454 --debug enable verbose shell tracing
1455 -W, --warnings=CATEGORY
1457 -v, --verbose verbosely report processing
1458 --version print version information and exit
1459 -h, --help print short or long help message and exit
1462 # Additional text appended to 'usage_message' in response to '--help'.
1470 fatal_help="Try '\$progname --help' for more information."
1474 ## ------------------------- ##
1476 ## ------------------------- ##
1483 # -----------------------
1495 # ---------------------------------
1512 # ------------------------------------
1523 # ---------------------------------
1526 # than a whitespace-delimited list of legal shell function names, and
1527 # no effort is wasted trying to catch shell meta-characters or preserve
1557 ## --------------- ##
1559 ## --------------- ##
1579 # -s, --silent don'\''t print informational messages
1599 # while test $# -gt 0; do
1602 # --silent|-s) opt_silent=:
1605 # # Separate non-argument short options:
1606 # -s*) func_split_short_opt "$_G_opt"
1608 # "-$func_split_short_opt_arg" ${1+"$@"}
1634 # '--silent' and '--verbose' options are mutually exclusive."
1646 # ----------------------------
1663 # ---------------------
1682 # Save modified positional parameters for caller. As a top-level
1683 # options-parser function we always need to set the 'func_options_result'
1697 # --------------------------
1725 # ---------------------------
1736 while test $# -gt 0; do
1745 test $# -gt 0 || break
1751 --debug|-x) debug_cmd='set -x'
1756 --no-warnings|--no-warning|--no-warn)
1757 set dummy --warnings none ${1+"$@"}
1761 --warnings|--warning|-W)
1790 --verbose|-v) opt_verbose=: ;;
1791 --version) func_version ;;
1792 -\?|-h) func_usage ;;
1793 --help) func_help ;;
1796 --*=*) func_split_equals "$_G_opt"
1803 -W*)
1810 # Separate non-argument short options:
1811 -\?*|-h*|-v*|-x*)
1814 "-$func_split_short_opt_arg" ${1+"$@"}
1818 --) _G_rc_parse_options=: ; break ;;
1819 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1841 # ------------------------------
1851 # Display all warnings if -W was not given.
1852 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1868 ## ----------------- ##
1870 ## ----------------- ##
1873 # hookable option parser framework in ascii-betical order.
1877 # ----------------------
1892 # ---------
1905 # ------------------------
1918 # ------------------------
1921 test -z "$_G_HAVE_XSI_OPS" \
1953 # -----------------------------
1972 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1973 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1979 # ----------
1986 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1992 # ------------------
2000 $SED -n 's|^# ||
2012 # ------------
2019 $SED -n '
2031 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2045 # mode: shell-script
2046 # sh-indentation: 2
2047 # eval: (add-hook 'before-save-hook 'time-stamp)
2048 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2049 # time-stamp-time-zone: "UTC"
2057 # ----------------
2077 # -------------------
2088 ## ---------------- ##
2090 ## ---------------- ##
2095 usage='$progpath [OPTION]... [MODE-ARG]...'
2097 # Short help message in response to '-h'.
2099 --config show all configuration variables
2100 --debug enable verbose shell tracing
2101 -n, --dry-run display commands without modifying any files
2102 --features display basic configuration information and exit
2103 --mode=MODE use operation mode MODE
2104 --no-warnings equivalent to '-Wnone'
2105 --preserve-dup-deps don't remove duplicate dependency libraries
2106 --quiet, --silent don't print informational messages
2107 --tag=TAG use configuration variables from tag TAG
2108 -v, --verbose print more informational messages than default
2109 --version print version information
2110 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2111 -h, --help, --help-all print short, long, or detailed help message
2114 # Additional text appended to 'usage_message' in response to '--help'.
2132 MODE-ARGS vary depending on the MODE. When passed as first option,
2133 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2134 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2139 host-triplet: $host
2144 version: $progname $scriptversion Debian-2.4.6-15build2
2145 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2146 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2148 Report bugs to <bug-libtool@gnu.org>.
2155 # func_lo2o OBJECT-NAME
2156 # ---------------------
2157 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2172 # func_xform LIBOBJ-OR-SOURCE
2173 # ---------------------------
2174 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2175 # suffix to a '.lo' libtool-object suffix.
2195 # -------------------------------
2207 # -----------
2219 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2227 # -------------
2248 # -----------------------
2263 *[!-_A-Za-z0-9,/]*)
2278 # also don't use non-portable quotes within backquotes within
2280 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2291 # ------------------------
2298 if test -z "$macro_version"; then
2328 # -----------------------------
2348 # Shorthand for --mode=foo, only valid as the first argument
2351 shift; set dummy --mode clean ${1+"$@"}; shift
2354 shift; set dummy --mode compile ${1+"$@"}; shift
2357 shift; set dummy --mode execute ${1+"$@"}; shift
2360 shift; set dummy --mode finish ${1+"$@"}; shift
2363 shift; set dummy --mode install ${1+"$@"}; shift
2366 shift; set dummy --mode link ${1+"$@"}; shift
2369 shift; set dummy --mode uninstall ${1+"$@"}; shift
2388 # ---------------------------------
2398 while test $# -gt 0; do
2403 --dry-run|--dryrun|-n)
2407 --config) func_config ;;
2409 --dlopen|-dlopen)
2415 --preserve-dup-deps)
2418 --features) func_features ;;
2420 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2422 --help) opt_help=: ;;
2424 --help-all) opt_help=': help-all' ;;
2426 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2441 --no-silent|--no-quiet)
2446 --no-warnings|--no-warning|--no-warn)
2451 --no-verbose)
2456 --silent|--quiet)
2462 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2469 --verbose|-v) opt_quiet=false
2496 # ---------------------------------
2501 # save first non-option argument
2502 if test 0 -lt $#; then
2507 # preserve --debug
2508 test : = "$debug_cmd" || func_append preserve_args " --debug"
2533 # Only execute mode is allowed to have -dlopen flags.
2534 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2535 func_error "unrecognized option '-dlopen'"
2540 # Change the help message to a mode-specific one.
2542 help="Try '$progname --help --mode=$opt_mode' for more information."
2552 # Process options as early as possible so that --help and --version
2559 ## ----------- ##
2561 ## ----------- ##
2571 # will be execed at the end. This prevents here-documents from being
2598 test -f "$1" &&
2599 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2612 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2620 exec 0<&5 5<&-
2631 test -f "$1" &&
2671 # Execute tilde-delimited COMMANDS.
2673 # FAIL_CMD may read-access the current command in variable CMD!
2683 func_show_eval "$cmd" "${2-:}"
2692 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2739 # if one wasn't chosen via the "--tag" command line option.
2747 if test -n "$available_tags" && test -z "$tagname"; then
2765 …eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/…
2768 # Double-quote args containing other shell metacharacters.
2786 # was found and let the user know that the "--tag" command
2788 if test -z "$tagname"; then
2790 func_fatal_error "specify a tag with '--tag'"
2821 # $write_libobj - a libtool object file
2830 # Name of the non-PIC object
2857 if test -n "$1"; then
2858 # Unfortunately, winepath does not exit with a non-zero error code, so we
2862 # zero AND non-empty stdout, which explains the odd construction:
2863 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2864 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2866 $SED -e "$sed_naive_backslashify"`
2891 if test -n "$1"; then
2897 if test -n "$func_convert_core_file_wine_to_w32_result"; then
2898 if test -z "$func_convert_core_path_wine_to_w32_result"; then
2930 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
2932 if test "$?" -ne 0; then
2938 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
2953 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
2966 if test -z "$2" && test -n "$1"; then
2985 if test -z "$4" && test -n "$3"; then
2994 $SED -e "$lt_replace_pathsep_chars"`
3082 if test -n "$1"; then
3099 if test -n "$1"; then
3102 func_to_host_file_result=`cygpath -m "$1"`
3117 if test -n "$1"; then
3134 if test -n "$1"; then
3136 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3153 if test -n "$1"; then
3156 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3193 if test -z "$to_host_path_cmd"; then
3231 if test -n "$1"; then
3255 if test -n "$1"; then
3259 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3276 if test -n "$1"; then
3298 if test -n "$1"; then
3303 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3322 if test -n "$1"; then
3329 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3346 func_dll_def_p_tmp=`$SED -n \
3347 -e 's/^[ ]*//' \
3348 -e '/^\(;.*\)*$/d' \
3349 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3350 -e q \
3363 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3387 # Accept any command-line options.
3389 -o)
3390 test -n "$libobj" && \
3391 func_fatal_error "you cannot specify '-o' more than once"
3396 -pie | -fpie | -fPIE)
3401 -shared | -static | -prefer-pic | -prefer-non-pic)
3406 -no-suppress)
3411 -Xcompiler)
3416 -Wc,*)
3417 func_stripname '-Wc,' '' "$arg"
3451 func_fatal_error "you must specify an argument for -Xcompile"
3454 func_fatal_error "you must specify a target with '-o'"
3458 test -z "$libobj" && {
3466 # If the user specifies -o file.o, it is replaced with file.lo
3488 -shared)
3495 -static)
3501 -prefer-pic)
3506 -prefer-non-pic)
3522 test -z "$base_compile" && \
3539 # non-PIC code in shared libraries is not supported
3544 # not support -o with -c
3562 if test -f "$lockfile"; then
3569 your compiler does not support '-c' and '-o' together. If you
3571 avoid parallel builds (make -j) in this platform, or get a better
3604 if test -z "$output_obj"; then
3606 func_append command " -o $lobj"
3610 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3623 your compiler does not support '-c' and '-o' together. If you
3625 avoid parallel builds (make -j) in this platform, or get a better
3633 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3644 # Only build a position-dependent object if we build old libraries.
3653 func_append command " -o $obj"
3672 your compiler does not support '-c' and '-o' together. If you
3674 avoid parallel builds (make -j) in this platform, or get a better
3682 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3717 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3722 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3731 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3737 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3738 -no-suppress do not suppress compiler output for multiple passes
3739 -prefer-pic try to build PIC objects only
3740 -prefer-non-pic try to build non-PIC objects only
3741 -shared do not build a '.o' file suitable for static linking
3742 -static only build a '.o' file suitable for static linking
3743 -Wc,FLAG pass FLAG directly to the compiler
3745 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3755 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3761 -dlopen FILE add the directory containing FILE to the library path
3763 This mode sets the library path environment variable according to '-dlopen'
3775 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3782 the '--dry-run' option if you just want to see what would be executed."
3787 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3791 INSTALL-COMMAND is the installation command. The first component should be
3794 The following components of INSTALL-COMMAND are treated specially:
3796 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3799 BSD-compatible install options are recognized)."
3804 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3809 LINK-COMMAND is a command using the C compiler that you would use to create
3812 The following components of LINK-COMMAND are treated specially:
3814 -all-static do not do any dynamic linking at all
3815 -avoid-version do not add a version suffix if possible
3816 -bindir BINDIR specify path to binaries directory (for systems where
3818 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3819 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3820 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3821 -export-symbols SYMFILE
3823 -export-symbols-regex REGEX
3825 -LLIBDIR search LIBDIR for required installed libraries
3826 -lNAME OUTPUT-FILE requires the installed library libNAME
3827 -module build a library that can dlopened
3828 -no-fast-install disable the fast-install mode
3829 -no-install link a not-installable executable
3830 -no-undefined declare that a library does not refer to external symbols
3831 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3832 -objectlist FILE use a list of object files found in FILE to specify objects
3833 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3834 -precious-files-regex REGEX
3836 -release RELEASE specify package release information
3837 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3838 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3839 -shared only do dynamic linking of libtool libraries
3840 -shrext SUFFIX override the standard shared library file extension
3841 -static do not do any dynamic linking of uninstalled libtool libraries
3842 -static-libtool-libs
3844 -version-info CURRENT[:REVISION[:AGE]]
3846 -weak LIBNAME declare that the target provides the LIBNAME interface
3847 -Wc,FLAG
3848 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3849 -Wl,FLAG
3850 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3851 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3853 All other options (arguments beginning with '-') are ignored.
3859 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3860 only library objects ('.lo' files) may be specified, and '-rpath' is
3863 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3866 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3872 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3877 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3890 $ECHO "Try '$progname --help' for more information about other modes."
3893 # Now that we've collected a possible --mode arg, show help if necessary
3903 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
3919 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
3932 test -z "$cmd" && \
3935 # Handle -dlopen flags immediately.
3937 test -f "$file" \
3956 if test -z "$dlname"; then
3958 test -n "$library_names" && \
3959 func_warning "'$file' was not linked with '-export-dynamic'"
3966 if test -f "$dir/$objdir/$dlname"; then
3969 if test ! -f "$dir/$dlname"; then
3982 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
3989 test -n "$absdir" && dir=$absdir
3992 if eval "test -z \"\$$shlibpath_var\""; then
4008 -* | *.la | *.lo ) ;;
4029 if test -n "$shlibpath_var"; then
4036 if test -n "$shlibpath_var"; then
4070 if test -d "$opt"; then
4073 elif test -f "$opt"; then
4085 if test -n "$libs"; then
4086 if test -n "$lt_sysroot"; then
4101 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4102 > $tmpdir/tmp-la
4103 mv -f $tmpdir/tmp-la $lib
4109 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4111 if test -n "$finish_cmds"; then
4116 if test -n "$finish_eval"; then
4128 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4129 echo "----------------------------------------------------------------------"
4137 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4139 if test -n "$shlibpath_var"; then
4140 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4143 if test -n "$runpath_var"; then
4144 echo " - add LIBDIR to the '$runpath_var' environment variable"
4147 if test -n "$hardcode_libdir_flag_spec"; then
4151 $ECHO " - use the '$flag' linker flag"
4153 if test -n "$admincmds"; then
4154 $ECHO " - have your system administrator run these commands:$admincmds"
4156 if test -f /etc/ld.so.conf; then
4157 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4163 solaris2.[6789]|solaris2.1[0-9])
4171 echo "----------------------------------------------------------------------"
4222 if test -n "$dest"; then
4229 -d) isdir=: ;;
4230 -f)
4235 -g | -m | -o)
4238 -s)
4239 stripme=" -s"
4242 -*)
4246 if test -n "$prev"; then
4247 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4262 if test -n "$arg2"; then
4268 test -z "$install_prog" && \
4271 test -n "$prev" && \
4274 if test -n "$install_override_mode" && $no_mode; then
4277 func_append install_shared_prog " -m $func_quote_for_eval_result"
4281 if test -z "$files"; then
4282 if test -z "$dest"; then
4294 test -d "$dest" && isdir=:
4305 test "$#" -gt 1 && \
4309 [\\/]* | [A-Za-z]:[\\/]*) ;;
4369 if test -n "$relink_command"; then
4371 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4378 # but it's something to keep an eye on.
4382 if test -n "$inst_prefix_dir"; then
4384 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
4396 if test -n "$1"; then
4401 test -n "$relink_command" && srcname=${realname}T
4423 if test -n "$tstripme" && test -n "$striplib"; then
4427 if test "$#" -gt 0; then
4429 # Try 'ln -sf' first, because the 'ln' binary might depend on
4430 # the symlink we replace! Solaris /bin/ln does not understand -f,
4431 # so we also need to try rm && ln -s.
4435 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
4444 # Install the pseudo-library for information purposes.
4451 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4458 if test -n "$destname"; then
4466 # Deduce the name of the destination old-style object file.
4482 test -n "$destfile" && \
4487 # Deduce the name of the old-style object file.
4497 if test -n "$destname"; then
4511 if test ! -f "$file"; then
4541 test -z "$generated_by_libtool_version" && \
4548 if test -f "$lib"; then
4552 if test -n "$libdir" && test ! -f "$libfile"; then
4562 if test no = "$fast_install" && test -n "$relink_command"; then
4612 $opt_dry_run || if test -n "$outputname"; then
4630 if test -n "$stripme" && test -n "$old_striplib"; then
4638 test -n "$future_libdirs" && \
4639 func_warning "remember to run '$progname --finish$future_libdirs'"
4641 if test -n "$current_libdirs"; then
4643 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4644 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4662 my_pic_p=${3-false}
4663 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4666 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4667 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4674 if test -n "$my_dlsyms"; then
4687 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4695 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4701 relocations are performed -- see ld's documentation on pseudo-relocs. */
4728 if test -n "$exclude_expsyms"; then
4730 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4735 if test -n "$export_symbols_regex"; then
4737 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4743 if test -z "$export_symbols"; then
4747 … eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4757 …eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_o…
4758 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4781 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4784 if test -n "$dlprefile_dlname"; then
4788 # no lafile. user explicitly requested -dlpreopen <import library>.
4794 if test -n "$dlprefile_dlbasename"; then
4802 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4824 test -f "$nlist" || : > "$nlist"
4826 if test -n "$exclude_expsyms"; then
4827 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4832 if $GREP -v "^: " < "$nlist" |
4833 if sort -k 3 </dev/null >/dev/null 2>&1; then
4834 sort -k 3
4841 $GREP -v "^: " < "$nlist" > "$nlist"S
4844 if test -f "$nlist"S; then
4851 if test -n "$global_symbol_to_import"; then
4866 if test -s "$nlist"I; then
4871 for (; symbol->name; ++symbol)
4873 …$SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >>…
4883 if test -s "$nlist"I; then
4915 *" -static "*) ;;
4919 # a FreeBSD bug that causes programs to crash when -lm is
4921 # pic_flag when linking with -static. The problem exists in
4923 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4924 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
4925 *-*-hpux*)
4936 -pie | -fpie | -fPIE) ;;
4942 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
4951 if test -f "$output_objdir/$my_outputname.def"; then
4982 # ARG is a GNU/binutils-style import library. Returns
4989 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
4990 test -n "$func_cygming_gnu_implib_tmp"
4995 # ARG is an MS-style import library. Returns
5003 test -n "$func_cygming_ms_implib_tmp"
5018 win32_fileres=`file -L $1 2>/dev/null`
5025 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5026 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5039 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5040 $SED -n -e '
5072 # Platform-specific function to extract the
5083 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5089 # platform-specific function to extract the name of the
5102 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5111 /:[ ]*file format pe[i]\{,1\}-/d
5119 $SED -n '
5140 # 0x302f exports -- but will fail for DLLs whose name actually
5145 $SED -e '/^\./d;/^.\./d;q'
5149 # Platform-specific function to extract the
5154 # does not support the --identify-strict option.
5167 # ms-generated import library
5191 'stat=$?; rm -f "$lockfile"; exit $stat'
5193 $opt_dry_run || rm -f "$lockfile"
5195 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5218 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5229 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5239 *-darwin*)
5249 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5250 if test -n "$darwin_arches"; then
5251 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5255 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5256 …$LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"…
5257 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5260 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5263 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_bas…
5267 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5268 $LIPO -create -output "$darwin_file" $darwin_files
5270 $RM -rf unfat-$$
5282 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
5301 # the $objdir directory. This is a cygwin/mingw-specific
5305 func_emit_wrapper_arg1=${1-no}
5310 # $output - temporary wrapper script for $objdir/$outputname
5320 # metacharacters that are still active within double-quoted strings.
5324 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5329 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5332 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5337 # The HP-UX ksh and POSIX shell print the target directory to stdout
5369 # windows platforms, and (c) all begin with the string "--lt-"
5373 # There are only two supported options: --lt-debug and
5374 # --lt-dump-script. There is, deliberately, no --lt-help.
5386 --lt-debug) lt_option_debug=1 ;;
5387 --lt-dump-script)
5388 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5390 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5394 --lt-*)
5395 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5402 if test -n \"\$lt_option_debug\"; then
5407 # Used when --lt-debug. Prints its arguments to stdout
5425 *-*-mingw | *-*-os2* | *-cegcc*)
5427 if test -n \"\$lt_option_debug\"; then
5437 if test -n \"\$lt_option_debug\"; then
5451 # Strips options in the --lt-* namespace from \$@ and
5456 *\\ --lt-*)
5460 --lt-*) ;;
5477 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5478 while test -n \"\$file\"; do
5484 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5490 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5510 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5515 program=lt-'$outputname'$exeext
5518 if test ! -f \"\$progdir/\$program\" ||
5519 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5522 file=\"\$\$-\$program\"
5524 if test ! -d \"\$progdir\"; then
5533 if test -n \"\$relink_command\"; then
5556 if test -f \"\$progdir/\$program\"; then"
5563 if test -n "$dllsearchpath"; then
5571 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5576 # Some systems cannot cope with colon-terminated $shlibpath_var
5609 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5647 /* declarations of non-ANSI functions */
5745 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5777 …if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath";…
5788 if test -n "$dllsearchpath"; then
5803 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5814 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5817 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5867 have already dealt with, above (inluding dump-script), then
5871 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5872 or a configure.ac-settable value.
5885 /* The GNU banner must be the first non-error debug message */
5915 /* target_name transforms -- use actual target program name; might have lt- prefix */
5941 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
5944 /* DO want the lt- prefix here if it exists, so use target_name */
5998 if (rval == -1)
6152 p_len = (size_t) (q - p);
6223 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6225 p--;
6270 str += len - patlen;
6384 /* some systems can't cope with a ':'-terminated path #' */
6386 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6388 new_value[--len] = '\0';
6426 - Space and tab are interpreted as delimiters. They are not treated as
6428 - Unescaped double quotes are removed from the input. Their only effect is
6431 - Backslashes not followed by double quotes are not special.
6432 - But 2*n+1 backslashes followed by a double quote become
6434 \" -> "
6435 \\\" -> \"
6436 \\\\\" -> \\"
6500 for (j = backslashes + 1; j > 0; j--)
6512 for (j = backslashes; j > 0; j--)
6536 $SED -n -e '
6557 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6572 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6587 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6597 # -no-undefined on the libtool link line when we can be certain
6655 single_module=$wl-single_module
6658 # We need to know -static, to get the right output filenames.
6662 -shared)
6668 -all-static | -static | -static-libtool-libs)
6670 -all-static)
6671 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6674 if test -n "$link_static_flag"; then
6679 -static)
6680 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6685 -static-libtool-libs)
6686 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6700 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6703 while test "$#" -gt 0; do
6711 if test -n "$prev"; then
6767 test -f "$arg" \
6779 *-*-darwin*)
6797 # '-mllvm $arg' options when doing the link step.
6802 if test -f "$arg"; then
6809 # A libtool-controlled object.
6819 if test -z "$pic_object" ||
6820 test -z "$non_pic_object" ||
6845 # CHECK ME: I think I busted this. -Ossama
6847 # Preload the old-style object.
6857 # Non-PIC object.
6862 # A standard non-PIC object
6864 if test -z "$pic_object" || test none = "$pic_object"; then
6874 # Only an error if not doing a dry-run.
6908 release=-$arg
6915 [\\/]* | [A-Za-z]:[\\/]*) ;;
6917 func_fatal_error "only absolute run-paths are allowed"
6973 fi # test -n "$prev"
6978 -all-static)
6979 if test -n "$link_static_flag"; then
6980 # See comment for -static flag below, for more details.
6987 -allow-undefined)
6989 func_fatal_error "'-allow-undefined' must not be used because it is the default"
6992 -avoid-version)
6997 -bindir)
7002 -dlopen)
7007 -dlpreopen)
7012 -export-dynamic)
7017 -export-symbols | -export-symbols-regex)
7018 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7019 func_fatal_error "more than one -exported-symbols argument is not allowed"
7021 if test X-export-symbols = "X$arg"; then
7029 -framework)
7034 -inst-prefix-dir)
7039 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7040 # so, if we see these flags be careful not to treat them like -L
7041 -L[A-Z][A-Z]*:*)
7043 no/*-*-irix* | /*-*-irix*)
7051 -L*)
7052 func_stripname "-L" '' "$arg"
7053 if test -z "$func_stripname_result"; then
7054 if test "$#" -gt 0; then
7055 func_fatal_error "require no space between '-L' and '$1'"
7057 func_fatal_error "need path for '-L' option"
7064 [\\/]* | [A-Za-z]:[\\/]*) ;;
7067 test -z "$absdir" && \
7073 *" -L$dir "* | *" $arg "*)
7079 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7080 *) func_append deplibs " -L$dir" ;;
7086 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7103 -l*)
7104 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7106 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7110 *-*-os2*)
7112 test X-lc = "X$arg" && continue
7114 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7116 test X-lc = "X$arg" && continue
7118 *-*-rhapsody* | *-*-darwin1.[012])
7123 *-*-sco3.2v5* | *-*-sco5v6*)
7125 test X-lc = "X$arg" && continue
7127 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7129 test X-lc = "X$arg" && continue
7132 elif test X-lc_r = "X$arg"; then
7134 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7135 # Do not include libc_r directly, use -pthread flag.
7144 -mllvm)
7149 -module)
7154 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7156 # Darwin uses the -arch flag to determine output architecture.
7157 -model|-arch|-isysroot|--sysroot)
7165 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7166 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7177 -multi_module)
7178 single_module=$wl-multi_module
7182 -no-fast-install)
7187 -no-install)
7189 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7192 func_warning "'-no-install' is ignored for $host"
7193 func_warning "assuming '-no-fast-install' instead"
7201 -no-undefined)
7206 -objectlist)
7211 -os2dllname)
7216 -o) prev=output ;;
7218 -precious-files-regex)
7223 -release)
7228 -rpath)
7233 -R)
7238 -R*)
7239 func_stripname '-R' '' "$arg"
7243 [\\/]* | [A-Za-z]:[\\/]*) ;;
7249 func_fatal_error "only absolute run-paths are allowed"
7259 -shared)
7260 # The effects of -shared are defined in a previous loop.
7264 -shrext)
7269 -static | -static-libtool-libs)
7270 # The effects of -static are defined in a previous loop.
7271 # We used to do the same as -all-static on platforms that
7278 -thread-safe)
7283 -version-info)
7288 -version-number)
7294 -weak)
7299 -Wc,*)
7300 func_stripname '-Wc,' '' "$arg"
7315 -Wl,*)
7316 func_stripname '-Wl,' '' "$arg"
7332 -Xcompiler)
7337 -Xlinker)
7342 -XCClinker)
7347 # -msg_* for osf cc
7348 -msg_*)
7354 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7355 # -r[0-9][0-9]* specify processor for the SGI compiler
7356 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7357 # +DA*, +DD* enable 64-bit mode for the HP compiler
7358 # -q* compiler args for the IBM compiler
7359 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7360 # -F/path path to uninstalled frameworks, gcc on darwin
7361 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7362 # -fstack-protector* stack protector flags for GCC
7364 # -tp=* Portland pgcc target processor selection
7365 # --sysroot=* for sysroot support
7366 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7367 # -specs=* GCC specs files
7368 # -stdlib=* select c++ std lib with clang
7369 # -fsanitize=* Clang/GCC memory and address sanitizer
7370 # -fuse-ld=* Linker select flags for GCC
7371 # -static-* direct GCC to link specific libraries statically
7372 # -fcilkplus Cilk Plus language extension features for C/C++
7373 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7374 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7375 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7376 -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
7385 -Z*)
7387 # OS/2 uses -Zxxx to specify OS/2-specific options
7392 -Zlinker | -Zstack)
7405 -* | +*)
7416 # A libtool-controlled object.
7426 if test -z "$pic_object" ||
7427 test -z "$non_pic_object" ||
7452 # CHECK ME: I think I busted this. -Ossama
7454 # Preload the old-style object.
7464 # Non-PIC object.
7469 # A standard non-PIC object
7471 if test -z "$pic_object" || test none = "$pic_object"; then
7481 # Only an error if not doing a dry-run.
7506 # A libtool-controlled library.
7510 # This library was specified with -dlopen.
7514 # The library was specified with -dlpreopen.
7533 if test -n "$arg"; then
7539 test -n "$prev" && \
7542 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7554 if test -n "$shlibpath_var"; then
7588 # that are linked more than once (e.g. -la -lb -la)
7620 notinst_deplibs= # not-installed libtool libraries
7621 notinst_path= # paths that contain not-installed libtool libraries
7630 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7649 # so that -L comes before libs that need it for instance...
7678 # Ignore non-libtool-libs
7708 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7709 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7724 -l*)
7726 func_warning "'-l' is ignored for archives/objects"
7729 func_stripname '-l' '' "$deplib"
7740 if test -f "$lib"; then
7794 ;; # -l
7810 -L*)
7816 func_stripname '-L' '' "$deplib"
7831 func_stripname '-L' '' "$deplib"
7836 func_warning "'-L' is ignored for archives/objects"
7840 ;; # -L
7841 -R*)
7843 func_stripname '-R' '' "$deplib"
7867 # but linking other static libraries is non-portable.
7936 $found || test -f "$lib" \
7963 # Convert "-framework foo" to "foo.ltframework"
7964 if test -n "$inherited_linker_flags"; then
7965 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
7973 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7977 test -n "$dlopen" && func_append dlfiles " $dlopen"
7978 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
7984 if test -z "$libdir"; then
7985 if test -z "$old_library"; then
8010 if test -n "$old_library" &&
8019 if test -z "$linklib"; then
8023 # This library was specified with -dlopen.
8025 test -z "$libdir" \
8026 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8027 if test -z "$dlname" ||
8044 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8047 if test -z "$abs_ladir"; then
8059 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8070 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8085 # This library was specified with -dlpreopen.
8087 if test -z "$libdir" && test prog = "$linkmode"; then
8088 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8091 # special handling for platforms with PE-DLLs.
8101 if test -n "$dlname"; then
8109 test -z "$libdir" && \
8116 if test -n "$old_library"; then
8120 test -z "$libdir" && \
8123 elif test -n "$dlname"; then
8132 if test -z "$libdir"; then
8151 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8159 -L*) func_stripname '-L' '' "$deplib"
8183 if test -n "$library_names" &&
8186 test -z "$old_library"; }; then
8188 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8197 # Skip directories that are in the system default run-time
8222 test -n "$library_names"; }; }; then
8233 if test -n "$library_names" &&
8234 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8250 # Warn about portability, can't link against -module's on some
8259 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8271 # Skip directories that are in the system default run-time
8293 if test -n "$old_archive_from_expsyms_cmds"; then
8301 if test -n "$dlname"; then
8303 elif test -n "$soname_spec"; then
8307 func_arith $current - $age
8309 versuffix=-$major
8322 newlib=libimp-$func_stripname_result.a
8325 if test -f "$output_objdir/$soname-def"; then :
8332 if test -f "$output_objdir/$newlib"; then :; else
8339 fi # test -n "$old_archive_from_expsyms_cmds"
8351 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8352 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8353 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8354 *-*-unixware7*) add_dir=-L$dir ;;
8355 *-*-darwin* )
8356 # if the lib is a (non-dlopened) module then we cannot
8358 if /usr/bin/file -L $add 2> /dev/null |
8362 if test -z "$old_library"; then
8369 elif test -n "$old_library"; then
8376 *-*-sunos*) add_shlibpath=$dir ;;
8378 add_dir=-L$dir
8379 add=-l$name
8382 add=-l$name
8392 add_dir=-L$absdir
8394 if test -n "$inst_prefix_dir"; then
8397 func_append add_dir " -L$inst_prefix_dir$libdir"
8401 add=-l$name
8404 add=-l$name
8416 if test -n "$add_shlibpath"; then
8423 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8424 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8426 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8427 test -n "$add" && deplibs="$add $deplibs"
8448 add_dir=-L$libdir
8449 add=-l$name
8455 add=-l$name
8457 if test -n "$inst_prefix_dir" &&
8458 test -f "$inst_prefix_dir$libdir/$linklib"; then
8465 add_dir=-L$libdir
8467 if test -n "$inst_prefix_dir"; then
8470 func_append add_dir " -L$inst_prefix_dir$libdir"
8474 add=-l$name
8478 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8479 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8481 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8482 test -n "$add" && deplibs="$add $deplibs"
8490 test -n "$old_library" && linklib=$old_library
8494 compile_deplibs="-l$name -L$dir $compile_deplibs"
8495 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8513 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8514 if test -z "$global_symbol_pipe"; then
8535 if test -n "$dependency_libs" &&
8539 # Extract -R from dependency_libs
8543 -R*) func_stripname '-R' '' "$libdir"
8563 -L*) func_stripname '-L' '' "$deplib"
8581 -L*) path=$deplib ;;
8589 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8592 if test -z "$absdir"; then
8600 *-*-darwin*)
8602 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8603 if test -n "$deplibrary_names"; then
8607 if test -f "$absdir/$objdir/$depdepl"; then
8609 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8610 if test -z "$darwin_install_name"; then
8611 … darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8613 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8614 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8620 path=-L$absdir/$objdir
8624 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8625 test -z "$libdir" && \
8630 path=-L$absdir
8647 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8687 -L*) new_libs="$deplib $new_libs" ;;
8688 -R*) ;;
8702 # using -Wl,-lname, so that libtool does not consider it
8719 -L*)
8736 case `$CC -V 2>&1 | sed 5q` in
8741 func_append postdeps ' -library=Cstd -library=Crun'
8754 func_append postdeps ' -library=Cstd -library=Crun'
8771 if test -n "$i"; then
8786 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8787 func_warning "'-dlopen' is ignored for archives"
8791 *\ -l* | *\ -L*)
8792 func_warning "'-l' and '-L' are ignored for archives" ;;
8795 test -n "$rpath" && \
8796 func_warning "'-rpath' is ignored for archives"
8798 test -n "$xrpath" && \
8799 func_warning "'-R' is ignored for archives"
8801 test -n "$vinfo" && \
8802 func_warning "'-version-info/-version-number' is ignored for archives"
8804 test -n "$release" && \
8805 func_warning "'-release' is ignored for archives"
8807 test -n "$export_symbols$export_symbols_regex" && \
8808 func_warning "'-export-symbols' is ignored for archives"
8842 if test -n "$objs"; then
8844 …func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$ob…
8847 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8854 || func_warning "'-dlopen self' is ignored for libtool libraries"
8858 test 1 -lt "$#" \
8859 && func_warning "ignoring multiple '-rpath's for a libtool library"
8864 if test -z "$rpath"; then
8875 test -n "$vinfo" && \
8876 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8878 test -n "$release" && \
8879 func_warning "'-release' is ignored for convenience libraries"
8888 test -n "$7" && \
8889 func_fatal_help "too many parameters to '-version-info'"
8901 # There are really only two kinds -- those that
8909 darwin|freebsd-elf|linux|osf|windows|none)
8915 freebsd-aout|qnx|sunos)
8941 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]) ;;
8949 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]) ;;
8957 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]) ;;
8964 if test "$age" -gt "$current"; then
8979 func_arith $current - $age
8985 …xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$r…
8986 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8990 …verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revi…
8993 … verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8998 freebsd-aout)
9003 freebsd-elf)
9004 func_arith $current - $age
9011 func_arith $current - $age
9013 func_arith $current - $age + 1
9025 while test 0 -ne "$loop"; do
9026 func_arith $revision - $loop
9028 func_arith $loop - 1
9039 func_arith $current - $age
9045 func_arith $current - $age
9052 while test 0 -ne "$loop"; do
9053 func_arith $current - $loop
9055 func_arith $loop - 1
9080 # Use '-' rather than '.', since we only want one
9082 func_arith $current - $age
9084 versuffix=-$major
9093 if test -z "$vinfo" && test -n "$release"; then
9126 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9150 if test -n "$precious_files_regex"; then
9151 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9161 test -n "$removelist" && \
9176 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9177 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9180 if test -n "$xrpath"; then
9185 func_append temp_xrpath " -R$func_replace_sysroot_result"
9217 if test -n "$rpath"; then
9219 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9222 *-*-rhapsody* | *-*-darwin1.[012])
9226 *-*-netbsd*)
9229 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9232 *-*-sco3.2v5* | *-*-sco5v6*)
9235 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9241 func_append deplibs " -lc"
9254 # release should show up in the -l (ie -lgmp5) so we don't want to
9280 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9284 -l*)
9285 func_stripname -l '' "$i"
9295 if test -n "$i"; then
9300 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9324 -l*)
9325 func_stripname -l '' "$i"
9328 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9338 if test -n "$i"; then
9343 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9377 -l*)
9378 func_stripname -l '' "$a_deplib"
9388 if test -n "$a_deplib"; then
9390 if test -n "$file_magic_glob"; then
9391 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9395 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9398 shopt -s nocaseglob
9399 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9402 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9406 if ls -lLd "$potent_lib" 2>/dev/null |
9407 $GREP " -> " >/dev/null; then
9416 while test -h "$potlib" 2>/dev/null; do
9417 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9419 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9424 $SED -e 10q |
9433 if test -n "$a_deplib"; then
9441 if test -z "$potlib"; then
9450 # Add a -L argument.
9461 -l*)
9462 func_stripname -l '' "$a_deplib"
9472 if test -n "$a_deplib"; then
9475 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9477 potlib=$potent_lib # see symlink-check above in file_magic test
9487 if test -n "$a_deplib"; then
9495 if test -z "$potlib"; then
9504 # Add a -L argument.
9512 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9523 echo "*** Warning: inter-library dependencies are not supported in this platform."
9525 echo "*** Warning: inter-library dependencies are not known to be supported."
9527 echo "*** All declared inter-library dependencies are being dropped."
9540 *-*-rhapsody* | *-*-darwin1.[012])
9542 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9549 echo "*** Warning: libtool could not satisfy all declared inter-library"
9552 echo "*** application is linked with the -dlopen flag."
9553 if test -z "$global_symbol_pipe"; then
9568 echo "*** The inter-library dependencies that have been dropped here will be"
9570 echo "*** or is declared to -dlopen it."
9576 echo "*** it was explicitly requested with -no-undefined,"
9591 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9593 *-*-darwin*)
9594 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9595 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9596 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9605 *" -L$path/$objdir "*) ;;
9608 *" -L$path/$objdir "*)
9609 func_append new_libs " -L$path/$objdir" ;;
9616 -L*)
9627 # All the library-specific variables (install_libdir is set above).
9646 if test -n "$hardcode_libdir_flag_spec"; then
9647 if test -n "$hardcode_libdir_separator"; then
9650 if test -z "$hardcode_libdirs"; then
9666 elif test -n "$runpath_var"; then
9674 if test -n "$hardcode_libdir_separator" &&
9675 test -n "$hardcode_libdirs"; then
9679 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9687 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9692 if test -n "$shlibpath"; then
9704 if test -n "$soname_spec"; then
9709 if test -z "$dlname"; then
9721 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9725 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9734 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9752 if test -z "$export_symbols"; then
9753 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9775 && { test "$len" -lt "$max_cmd_len" \
9776 || test "$max_cmd_len" -le -1; }
9780 elif test -n "$nm_file_list_spec"; then
9809 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9810 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9816 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9818 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9822 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9830 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
9833 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9847 if test -n "$convenience"; then
9848 if test -n "$whole_archive_flag_spec" &&
9850 test -z "$libobjs"; then
9855 if test -n "$whole_archive_flag_spec"; then
9869 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9880 if test yes = "$module" && test -n "$module_cmds"; then
9881 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
9889 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
9901 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9916 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
9931 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9944 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9964 if test -n "$save_libobjs"; then
9966 output=$output_objdir/$output_la-$k.$objext
9978 if test -z "$objlist" ||
9979 test "$len" -lt "$max_cmd_len"; then
9984 if test 1 -eq "$k"; then
9994 last_robj=$output_objdir/$output_la-$k.$objext
9997 output=$output_objdir/$output_la-$k.$objext
10007 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10010 if test -n "$last_robj"; then
10019 ${skipped_export-false} && {
10025 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10027 if test -n "$last_robj"; then
10032 test -n "$save_libobjs" &&
10058 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10059 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10064 ${skipped_export-false} && {
10065 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10067 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10071 if test -n "$orig_export_symbols"; then
10079 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
10082 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10090 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10098 if test yes = "$module" && test -n "$module_cmds"; then
10099 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10105 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10113 if test -n "$delfiles"; then
10119 if test -n "$dlprefiles"; then
10156 if test -n "$convenience"; then
10157 if test -z "$whole_archive_flag_spec"; then
10172 # If -module or -export-dynamic was specified, set the dlname.
10181 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10182 func_warning "'-dlopen' is ignored for objects"
10186 *\ -l* | *\ -L*)
10187 func_warning "'-l' and '-L' are ignored for objects" ;;
10190 test -n "$rpath" && \
10191 func_warning "'-rpath' is ignored for objects"
10193 test -n "$xrpath" && \
10194 func_warning "'-R' is ignored for objects"
10196 test -n "$vinfo" && \
10197 func_warning "'-version-info' is ignored for objects"
10199 test -n "$release" && \
10200 func_warning "'-release' is ignored for objects"
10204 test -n "$objs$old_deplibs" && \
10205 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10221 # single-version convenience libraries. Whenever we create
10222 # different ones for PIC/non-PIC, this we'll have to duplicate
10226 # if reload_cmds runs $LD directly, get rid of -Wl from
10232 if test -n "$convenience"; then
10233 if test -n "$whole_archive_flag_spec"; then
10235 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10249 # Create the old-style object.
10256 if test -z "$libobj"; then
10257 if test -n "$gentop"; then
10265 if test -n "$gentop"; then
10276 if test -n "$pic_flag" || test default != "$pic_mode"; then
10283 if test -n "$gentop"; then
10295 test -n "$vinfo" && \
10296 func_warning "'-version-info' is ignored for programs"
10298 test -n "$release" && \
10299 func_warning "'-release' is ignored for programs"
10306 *-*-rhapsody* | *-*-darwin1.[012])
10308 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10309 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10314 *-*-darwin*)
10318 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10320 func_append compile_command " $wl-bind_at_load"
10321 func_append finalize_command " $wl-bind_at_load"
10325 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10326 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10327 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10337 *" -L$path/$objdir "*) ;;
10340 *" -L$path/$objdir "*)
10341 func_append new_libs " -L$path/$objdir" ;;
10348 -L*)
10363 if test -n "$rpath$xrpath"; then
10366 # This is the magic to use -rpath.
10378 if test -n "$hardcode_libdir_flag_spec"; then
10379 if test -n "$hardcode_libdir_separator"; then
10380 if test -z "$hardcode_libdirs"; then
10396 elif test -n "$runpath_var"; then
10403 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10404 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10419 if test -n "$hardcode_libdir_separator" &&
10420 test -n "$hardcode_libdirs"; then
10429 if test -n "$hardcode_libdir_flag_spec"; then
10430 if test -n "$hardcode_libdir_separator"; then
10431 if test -z "$hardcode_libdirs"; then
10447 elif test -n "$runpath_var"; then
10455 if test -n "$hardcode_libdir_separator" &&
10456 test -n "$hardcode_libdirs"; then
10462 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10471 if test -n "$prelink_cmds"; then
10499 if test -n "$postlink_cmds"; then
10501 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10506 if test -f "$output_objdir/${outputname}S.$objext"; then
10513 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10516 if test -n "$finalize_shlibpath"; then
10522 if test -n "$runpath_var"; then
10523 if test -n "$perm_rpath"; then
10531 if test -n "$finalize_perm_rpath"; then
10551 if test -n "$postlink_cmds"; then
10553 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
10587 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10591 if test -n "$postlink_cmds"; then
10593 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
10601 if test -n "$relink_command"; then
10604 if eval test -z \"\${$var+set}\"; then
10605 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10606 elif eval var_value=\$$var; test -z "$var_value"; then
10638 cwrappersource=$output_path/$objdir/lt-$output_name.c
10646 # because it contains $host paths and files. If cross-
10650 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10661 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10680 # See if we need to build an old-fashioned archive.
10696 $preload && test -f "$symfileobj" \
10702 if test -n "$addlibs"; then
10711 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10716 if test -n "$dlprefiles"; then
10734 done | sort | sort -uc >/dev/null 2>&1); then
10754 newobj=lt$counter-$objbase
10759 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10775 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10777 elif test -n "$archiver_list_spec"; then
10811 if test "$len" -lt "$max_cmd_len"; then
10819 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10827 if test -z "$oldobjs"; then
10837 test -n "$generated" && \
10849 if eval test -z \"\${$var+set}\"; then
10850 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
10851 elif eval var_value=\$$var; test -z "$var_value"; then
10859 …relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_p…
10869 if test -z "$install_libdir"; then
10881 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10882 test -z "$libdir" && \
10886 -L*)
10887 func_stripname -L '' "$deplib"
10889 func_append newdependency_libs " -L$func_replace_sysroot_result"
10891 -R*)
10892 func_stripname -R '' "$deplib"
10894 func_append newdependency_libs " -R$func_replace_sysroot_result"
10907 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10908 test -z "$libdir" && \
10920 # Only pass preopened files to the pseudo-archive (for
10926 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10927 test -z "$libdir" && \
10938 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10947 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10957 # systems that can't hard-code library paths into their executables
10960 # libtool variables, so we have to hard-code the OSs to which it
10967 # If a -bindir argument was supplied, place the dll there.
10968 if test -n "$bindir"; then
10978 # $outputname - a libtool library file
11010 # Should we warn about portability when linking against -modules?
11056 -f) func_append RM " $arg"; rmforce=: ;;
11057 -*) func_append RM " $arg" ;;
11062 test -z "$RM" && \
11087 # Don't error if the file doesn't exist and rm -f was used.
11088 if { test -L "$file"; } >/dev/null 2>&1 ||
11089 { test -h "$file"; } >/dev/null 2>&1 ||
11090 test -f "$file"; then
11092 elif test -d "$file"; then
11111 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11117 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11119 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11122 if test -n "$library_names"; then
11127 if test -n "$old_library"; then
11145 if test -n "$pic_object" && test none != "$pic_object"; then
11149 # Add non-PIC object to the list of files to remove.
11150 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11185 if test yes = "$fast_install" && test -n "$relink_command"; then
11186 func_append rmfiles " $odir/lt-$name"
11189 func_append rmfiles " $odir/lt-$noexename.c"
11200 if test -d "$dir"; then
11212 test -z "$opt_mode" && {
11217 test -z "$exec_cmd" && \
11220 if test -n "$exec_cmd"; then
11235 # time on that platform, so we default to a shared-only configuration.
11236 # If a disable-shared tag is given, we'll fallback to a static-only
11237 # configuration. But we'll never go from static-only to shared-only.
11239 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11242 # ### END LIBTOOL TAG CONFIG: disable-shared
11244 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11246 # ### END LIBTOOL TAG CONFIG: disable-static
11249 # mode:shell-script
11250 # sh-indentation:2