Lines Matching +full:generate +full:- +full:lockfile
29 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 # Usage: $progname [OPTION]... [MODE-ARG]...
33 # Provide generalized library-building support services.
35 # --config show all configuration variables
36 # --debug enable verbose shell tracing
37 # -n, --dry-run display commands without modifying any files
38 # --features display basic configuration information and exit
39 # --mode=MODE use operation mode MODE
40 # --preserve-dup-deps don't remove duplicate dependency libraries
41 # --quiet, --silent don't print informational messages
42 # --no-quiet, --no-silent
44 # --no-warn don't display warning messages
45 # --tag=TAG use configuration variables from tag TAG
46 # -v, --verbose print more informational messages than default
47 # --no-verbose don't print the extra informational messages
48 # --version print version information
49 # -h, --help, --help-all print short, long, or detailed help message
61 # MODE-ARGS vary depending on the MODE. When passed as first option,
62 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
63 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
68 # host-triplet: $host
77 # Report bugs to <bug-libtool@gnu.org>.
88 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
93 alias -g '${1+"$@"}'='"$@"'
96 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
138 : ${CP="cp -f"}
139 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
142 : ${MV="mv -f"}
143 : ${RM="rm -f"}
144 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
145 : ${Xsed="$SED -e 1s/^X//"}
199 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
205 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
235 # Remove doubled-up and trailing slashes, "." path components,
254 # we take advantage of case's first-match behaviour.
276 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
281 if test -z "$func_normal_abspath_result" ; then
287 -e "$pathcar"`
289 -e "$pathcdr"`
306 # Restore leading double-slash if one was found on entry.
312 # slash if non-empty, suitable for immediately appending a filename
336 if test -z "$func_relative_path_result"; then
355 # Now calculate path; take care to avoid doubling-up slashes.
366 if test ! -z "$func_relative_path_result"; then
378 [\\/]*|[A-Za-z]:\\*) ;;
386 IFS=${PATH_SEPARATOR-:}
389 test -x "$progdir/$progname" && break
392 test -n "$progdir" || progdir=`pwd`
398 # metacharacters that are still active within double-quoted strings.
399 Xsed="${SED}"' -e 1s/^X//'
414 # Re-`\' parameter expansions in output of double_quote_subst that were
415 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
452 # fails when set -e is in force, so we need another command to
458 # Invoke $ECHO with all args, space-separated.
497 help="Try \`$progname --help' for more information." ## default
508 # func_mkdir_p directory-path
509 # Make sure the entire path to DIRECTORY-PATH is available.
515 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
517 # Protect directory names starting with `-'
519 -*) my_directory_path="./$my_directory_path" ;;
523 while test ! -d "$my_directory_path"; do
532 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
547 test -d "$my_directory_path" || \
559 my_template="${TMPDIR-/tmp}/${1-$progname}"
562 # Return a directory name, but don't create it in dry-run mode
563 my_tmpdir="${my_template}-$$"
567 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
569 if test ! -d "$my_tmpdir"; then
571 my_tmpdir="${my_template}-${RANDOM-0}$$"
579 # If we're not in dry-run mode, bomb out on failure
580 test -d "$my_tmpdir" || \
591 # is double-quoted, suitable for a subsequent eval, whereas
604 # Double-quote args containing shell metacharacters to delay
626 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
632 # Double-quote args containing shell metacharacters to delay
652 my_fail_exp="${2-:}"
654 ${opt_silent-false} || {
659 if ${opt_dry_run-false}; then :; else
662 if test "$my_status" -eq 0; then :; else
676 my_fail_exp="${2-:}"
678 ${opt_silent-false} || {
683 if ${opt_dry_run-false}; then :; else
688 if test "$my_status" -eq 0; then :; else
697 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
702 [0-9]* | *[!a-zA-Z0-9_]*)
703 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
718 $SED -n '/(C)/!b go
729 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
741 $SED -n '/^# Usage:/,/^# *.*--help/ {
748 $ECHO "run \`$progname --help | more' for full usage"
759 $SED -n '/^# Usage:/,/# Report bugs to/ {
770 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
771 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
779 if test -z "$1"; then
814 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
815 my_sed_long_arg='1s/^--[^=]*=//'
839 # will be execed at the end. This prevents here-documents from being
860 # func_arith arithmetic-term...
882 # func_xform libobj-or-source
912 … $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
952 *[!-_A-Za-z0-9,/]*)
967 # also don't use non-portable quotes within backquotes within
969 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
985 if test -z "$macro_version"; then
1014 # Shorthand for --mode=foo, only valid as the first argument
1017 shift; set dummy --mode clean ${1+"$@"}; shift
1020 shift; set dummy --mode compile ${1+"$@"}; shift
1023 shift; set dummy --mode execute ${1+"$@"}; shift
1026 shift; set dummy --mode finish ${1+"$@"}; shift
1029 shift; set dummy --mode install ${1+"$@"}; shift
1032 shift; set dummy --mode link ${1+"$@"}; shift
1035 shift; set dummy --mode uninstall ${1+"$@"}; shift
1058 # script to make things like `--version' happen as quickly as we can.
1061 while test $# -gt 0; do
1065 --debug|-x) opt_debug='set -x'
1069 --dry-run|--dryrun|-n)
1072 --config)
1076 --dlopen|-dlopen)
1082 --preserve-dup-deps)
1085 --features)
1089 --finish)
1091 set dummy --mode finish ${1+"$@"}; shift
1093 --help)
1096 --help-all)
1098 opt_help=': help-all'
1100 --mode)
1116 --no-silent|--no-quiet)
1120 --no-warning|--no-warn)
1124 --no-verbose)
1128 --silent|--quiet)
1133 --verbose|-v)
1138 --tag)
1147 -\?|-h) func_usage ;;
1148 --help) func_help ;;
1149 --version) func_version ;;
1152 --*=*)
1158 # Separate non-argument short options:
1159 -\?*|-h*|-n*|-v*)
1161 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1165 --) break ;;
1166 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1173 # save first non-option argument
1174 if test "$#" -gt 0; then
1179 # preserve --debug
1180 test "$opt_debug" = : || func_append preserve_args " --debug"
1203 # Only execute mode is allowed to have -dlopen flags.
1204 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1205 func_error "unrecognized option \`-dlopen'"
1210 # Change the help message to a mode-specific one.
1212 help="Try \`$progname --help --mode=$opt_mode' for more information."
1223 ## ----------- ##
1225 ## ----------- ##
1233 test -f "$1" &&
1234 $SED -e 4q "$1" 2>/dev/null \
1248 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1256 exec 0<&5 5<&-
1306 # Execute tilde-delimited COMMANDS.
1308 # FAIL_CMD may read-access the current command in variable CMD!
1316 func_show_eval "$cmd" "${2-:}"
1325 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1371 # if one wasn't chosen via the "--tag" command line option.
1378 if test -n "$available_tags" && test -z "$tagname"; then
1396 …eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'…
1399 # Double-quote args containing other shell metacharacters.
1417 # was found and let the user know that the "--tag" command
1419 if test -z "$tagname"; then
1421 func_fatal_error "specify a tag with \`--tag'"
1452 # $write_libobj - a libtool object file
1461 # Name of the non-PIC object
1487 if test -n "$1"; then
1488 # Unfortunately, winepath does not exit with a non-zero error code, so we
1492 # zero AND non-empty stdout, which explains the odd construction:
1493 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1494 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1496 $SED -e "$lt_sed_naive_backslashify"`
1520 if test -n "$1"; then
1526 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1527 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1558 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1560 if test "$?" -ne 0; then
1566 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1580 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1592 if test -z "$2" && test -n "$1" ; then
1610 if test -z "$4" && test -n "$3"; then
1619 $SED -e "$lt_replace_pathsep_chars"`
1703 if test -n "$1"; then
1719 if test -n "$1"; then
1722 func_to_host_file_result=`cygpath -m "$1"`
1736 if test -n "$1"; then
1752 if test -n "$1"; then
1754 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1770 if test -n "$1"; then
1773 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1809 if test -z "$to_host_path_cmd"; then
1845 if test -n "$1"; then
1868 if test -n "$1"; then
1872 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1888 if test -n "$1"; then
1909 if test -n "$1"; then
1914 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1932 if test -n "$1"; then
1939 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1955 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1979 # Accept any command-line options.
1981 -o)
1982 test -n "$libobj" && \
1983 func_fatal_error "you cannot specify \`-o' more than once"
1988 -pie | -fpie | -fPIE)
1993 -shared | -static | -prefer-pic | -prefer-non-pic)
1998 -no-suppress)
2003 -Xcompiler)
2008 -Wc,*)
2009 func_stripname '-Wc,' '' "$arg"
2043 func_fatal_error "you must specify an argument for -Xcompile"
2046 func_fatal_error "you must specify a target with \`-o'"
2050 test -z "$libobj" && {
2058 # If the user specifies -o file.o, it is replaced with file.lo
2080 -shared)
2087 -static)
2093 -prefer-pic)
2098 -prefer-non-pic)
2114 test -z "$base_compile" && \
2131 # non-PIC code in shared libraries is not supported
2136 # not support -o with -c
2139 lockfile="$output_obj.lock"
2143 lockfile=
2149 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2150 func_echo "Waiting for $lockfile to be removed"
2154 if test -f "$lockfile"; then
2156 *** ERROR, $lockfile exists and contains:
2157 `cat $lockfile 2>/dev/null`
2161 your compiler does not support \`-c' and \`-o' together. If you
2163 avoid parallel builds (make -j) in this platform, or get a better
2170 $ECHO "$srcfile" > "$lockfile"
2174 func_append removelist " $lockfile"
2196 if test -z "$output_obj"; then
2198 func_append command " -o $lobj"
2202 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2205 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2207 *** ERROR, $lockfile contains:
2208 `cat $lockfile 2>/dev/null`
2215 your compiler does not support \`-c' and \`-o' together. If you
2217 avoid parallel builds (make -j) in this platform, or get a better
2225 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2236 # Only build a position-dependent object if we build old libraries.
2245 func_append command " -o $obj"
2254 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2256 *** ERROR, $lockfile contains:
2257 `cat $lockfile 2>/dev/null`
2264 your compiler does not support \`-c' and \`-o' together. If you
2266 avoid parallel builds (make -j) in this platform, or get a better
2274 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2285 removelist=$lockfile
2286 $RM "$lockfile"
2309 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2314 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2323 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2329 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2330 -no-suppress do not suppress compiler output for multiple passes
2331 -prefer-pic try to build PIC objects only
2332 -prefer-non-pic try to build non-PIC objects only
2333 -shared do not build a \`.o' file suitable for static linking
2334 -static only build a \`.o' file suitable for static linking
2335 -Wc,FLAG pass FLAG directly to the compiler
2337 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2347 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2353 -dlopen FILE add the directory containing FILE to the library path
2355 This mode sets the library path environment variable according to \`-dlopen'
2367 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2374 the \`--dry-run' option if you just want to see what would be executed."
2379 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2383 INSTALL-COMMAND is the installation command. The first component should be
2386 The following components of INSTALL-COMMAND are treated specially:
2388 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2391 BSD-compatible install options are recognized)."
2396 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2401 LINK-COMMAND is a command using the C compiler that you would use to create
2404 The following components of LINK-COMMAND are treated specially:
2406 -all-static do not do any dynamic linking at all
2407 -avoid-version do not add a version suffix if possible
2408 -bindir BINDIR specify path to binaries directory (for systems where
2410 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2411 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2412 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2413 -export-symbols SYMFILE
2415 -export-symbols-regex REGEX
2417 -LLIBDIR search LIBDIR for required installed libraries
2418 -lNAME OUTPUT-FILE requires the installed library libNAME
2419 -module build a library that can dlopened
2420 -no-fast-install disable the fast-install mode
2421 -no-install link a not-installable executable
2422 -no-undefined declare that a library does not refer to external symbols
2423 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2424 -objectlist FILE Use a list of object files found in FILE to specify objects
2425 -precious-files-regex REGEX
2427 -release RELEASE specify package release information
2428 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2429 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2430 -shared only do dynamic linking of libtool libraries
2431 -shrext SUFFIX override the standard shared library file extension
2432 -static do not do any dynamic linking of uninstalled libtool libraries
2433 -static-libtool-libs
2435 -version-info CURRENT[:REVISION[:AGE]]
2437 -weak LIBNAME declare that the target provides the LIBNAME interface
2438 -Wc,FLAG
2439 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2440 -Wl,FLAG
2441 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2442 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2444 All other options (arguments beginning with \`-') are ignored.
2450 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2451 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2454 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2457 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2463 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2468 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2481 $ECHO "Try \`$progname --help' for more information about other modes."
2484 # Now that we've collected a possible --mode arg, show help if necessary
2494 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2510 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2522 test -z "$cmd" && \
2525 # Handle -dlopen flags immediately.
2527 test -f "$file" \
2546 if test -z "$dlname"; then
2548 test -n "$library_names" && \
2549 func_warning "\`$file' was not linked with \`-export-dynamic'"
2556 if test -f "$dir/$objdir/$dlname"; then
2559 if test ! -f "$dir/$dlname"; then
2572 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2579 test -n "$absdir" && dir="$absdir"
2582 if eval "test -z \"\$$shlibpath_var\""; then
2598 -* | *.la | *.lo ) ;;
2618 if test -n "$shlibpath_var"; then
2637 if test -n "$shlibpath_var"; then
2659 if test -d "$opt"; then
2662 elif test -f "$opt"; then
2674 if test -n "$libs"; then
2675 if test -n "$lt_sysroot"; then
2690 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2691 > $tmpdir/tmp-la
2692 mv -f $tmpdir/tmp-la $lib
2698 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2700 if test -n "$finish_cmds"; then
2705 if test -n "$finish_eval"; then
2717 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2718 echo "----------------------------------------------------------------------"
2726 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2728 if test -n "$shlibpath_var"; then
2729 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2732 if test -n "$runpath_var"; then
2733 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2736 if test -n "$hardcode_libdir_flag_spec"; then
2740 $ECHO " - use the \`$flag' linker flag"
2742 if test -n "$admincmds"; then
2743 $ECHO " - have your system administrator run these commands:$admincmds"
2745 if test -f /etc/ld.so.conf; then
2746 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2752 solaris2.[6789]|solaris2.1[0-9])
2760 echo "----------------------------------------------------------------------"
2809 if test -n "$dest"; then
2816 -d) isdir=yes ;;
2817 -f)
2822 -g | -m | -o)
2825 -s)
2826 stripme=" -s"
2829 -*)
2833 if test -n "$prev"; then
2834 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2849 if test -n "$arg2"; then
2855 test -z "$install_prog" && \
2858 test -n "$prev" && \
2861 if test -n "$install_override_mode" && $no_mode; then
2864 func_append install_shared_prog " -m $func_quote_for_eval_result"
2868 if test -z "$files"; then
2869 if test -z "$dest"; then
2881 test -d "$dest" && isdir=yes
2892 test "$#" -gt 1 && \
2896 [\\/]* | [A-Za-z]:[\\/]*) ;;
2956 if test -n "$relink_command"; then
2958 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2969 if test -n "$inst_prefix_dir"; then
2971 …relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_…
2983 if test -n "$1"; then
2988 test -n "$relink_command" && srcname="$realname"T
3003 if test -n "$tstripme" && test -n "$striplib"; then
3007 if test "$#" -gt 0; then
3009 # Try `ln -sf' first, because the `ln' binary might depend on
3010 # the symlink we replace! Solaris /bin/ln does not understand -f,
3011 # so we also need to try rm && ln -s.
3015 …&& func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $rea…
3024 # Install the pseudo-library for information purposes.
3031 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3038 if test -n "$destname"; then
3046 # Deduce the name of the destination old-style object file.
3062 test -n "$destfile" && \
3067 # Deduce the name of the old-style object file.
3077 if test -n "$destname"; then
3091 if test ! -f "$file"; then
3121 test -z "$generated_by_libtool_version" && \
3128 if test -f "$lib"; then
3132 if test -n "$libdir" && test ! -f "$libfile"; then
3142 if test "$fast_install" = no && test -n "$relink_command"; then
3192 $opt_dry_run || if test -n "$outputname"; then
3210 if test -n "$stripme" && test -n "$old_striplib"; then
3218 test -n "$future_libdirs" && \
3219 func_warning "remember to run \`$progname --finish$future_libdirs'"
3221 if test -n "$current_libdirs"; then
3223 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3224 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3241 my_pic_p="${3-no}"
3242 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3245 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3246 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3253 if test -n "$my_dlsyms"; then
3266 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3274 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3280 relocations are performed -- see ld's documentation on pseudo-relocs. */
3305 if test -n "$exclude_expsyms"; then
3307 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3312 if test -n "$export_symbols_regex"; then
3314 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3320 if test -z "$export_symbols"; then
3324 … eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3334 …eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output…
3335 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3358 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3361 if test -n "$dlprefile_dlname" ; then
3365 # no lafile. user explicitly requested -dlpreopen <import library>.
3371 if test -n "$dlprefile_dlbasename" ; then
3379 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3401 test -f "$nlist" || : > "$nlist"
3403 if test -n "$exclude_expsyms"; then
3404 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3409 if $GREP -v "^: " < "$nlist" |
3410 if sort -k 3 </dev/null >/dev/null 2>&1; then
3411 sort -k 3
3418 $GREP -v "^: " < "$nlist" > "$nlist"S
3421 if test -f "$nlist"S; then
3468 *" -static "*) ;;
3472 # a FreeBSD bug that causes programs to crash when -lm is
3474 # pic_flag when linking with -static. The problem exists in
3476 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3477 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3478 *-*-hpux*)
3491 -pie | -fpie | -fPIE) ;;
3497 …func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable…
3506 if test -f "$output_objdir/$my_outputname.def"; then
3546 win32_fileres=`file -L $1 2>/dev/null`
3553 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3554 … $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3556 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3557 $SED -n -e '
3587 # Platform-specific function to extract the
3597 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3603 # platform-specific function to extract the name of the
3615 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3624 /:[ ]*file format pe[i]\{,1\}-/d
3632 $SED -n '
3653 # 0x302f exports -- but will fail for DLLs whose name actually
3658 $SED -e '/^\./d;/^.\./d;q'
3663 # ARG is a GNU/binutils-style import library. Returns
3669 …file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad…
3670 test -n "$func_cygming_gnu_implib_tmp"
3675 # ARG is an MS-style import library. Returns
3682 test -n "$func_cygming_ms_implib_tmp"
3686 # Platform-specific function to extract the
3691 # does not support the --identify-strict option.
3703 # ms-generated import library
3719 lockfile=$f_ex_an_ar_oldlib.lock
3720 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3721 func_echo "Waiting for $lockfile to be removed"
3726 'stat=$?; rm -f "$lockfile"; exit $stat'
3728 $opt_dry_run || rm -f "$lockfile"
3730 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3752 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3763 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3773 *-darwin*)
3782 …darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
3783 if test -n "$darwin_arches"; then
3784 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3788 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3789 …$LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_arc…
3790 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3793 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3796 …darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basenam…
3800 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
3801 $LIPO -create -output "$darwin_file" $darwin_files
3803 $RM -rf unfat-$$
3815 …my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL…
3834 # the $objdir directory. This is a cygwin/mingw-specific
3838 func_emit_wrapper_arg1=${1-no}
3843 # $output - temporary wrapper script for $objdir/$outputname
3853 # metacharacters that are still active within double-quoted strings.
3857 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3862 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3865 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3870 # The HP-UX ksh and POSIX shell print the target directory to stdout
3902 # windows platforms, and (c) all begin with the string "--lt-"
3906 # There are only two supported options: --lt-debug and
3907 # --lt-dump-script. There is, deliberately, no --lt-help.
3919 --lt-debug) lt_option_debug=1 ;;
3920 --lt-dump-script)
3921 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3923 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3927 --lt-*)
3928 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3935 if test -n \"\$lt_option_debug\"; then
3940 # Used when --lt-debug. Prints its arguments to stdout
3958 *-*-mingw | *-*-os2* | *-cegcc*)
3960 if test -n \"\$lt_option_debug\"; then
3970 if test -n \"\$lt_option_debug\"; then
3984 # Strips options in the --lt-* namespace from \$@ and
3989 *\\ --lt-*)
3993 --lt-*) ;;
4010 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4011 while test -n \"\$file\"; do
4017 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4023 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4043 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4048 program=lt-'$outputname'$exeext
4051 if test ! -f \"\$progdir/\$program\" ||
4052 … { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4055 file=\"\$\$-\$program\"
4057 if test ! -d \"\$progdir\"; then
4066 if test -n \"\$relink_command\"; then
4089 if test -f \"\$progdir/\$program\"; then"
4096 if test -n "$dllsearchpath"; then
4104 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4109 # Some systems cannot cope with colon-terminated $shlibpath_var
4142 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4178 /* declarations of non-ANSI functions */
4280 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4307 …if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath";…
4318 if test -n "$dllsearchpath"; then
4333 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4344 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4397 have already dealt with, above (inluding dump-script), then
4401 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4402 or a configure.ac-settable value.
4415 /* The GNU banner must be the first non-error debug message */
4445 /* target_name transforms -- use actual target program name; might have lt- prefix */
4471 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4474 /* DO want the lt- prefix here if it exists, so use target_name */
4528 if (rval == -1)
4682 p_len = q - p;
4753 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4755 p--;
4800 str += len - patlen;
4914 /* some systems can't cope with a ':'-terminated path #' */
4916 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4918 new_value[len-1] = '\0';
4956 - Space and tab are interpreted as delimiters. They are not treated as
4958 - Unescaped double quotes are removed from the input. Their only effect is
4961 - Backslashes not followed by double quotes are not special.
4962 - But 2*n+1 backslashes followed by a double quote become
4964 \" -> "
4965 \\\" -> \"
4966 \\\\\" -> \\"
5030 for (j = backslashes + 1; j > 0; j--)
5042 for (j = backslashes; j > 0; j--)
5066 $SED -n -e '
5086 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5097 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5107 # -no-undefined on the libtool link line when we can be certain
5164 single_module="${wl}-single_module"
5167 # We need to know -static, to get the right output filenames.
5171 -shared)
5177 -all-static | -static | -static-libtool-libs)
5179 -all-static)
5180 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5183 if test -n "$link_static_flag"; then
5188 -static)
5189 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5194 -static-libtool-libs)
5195 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5209 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5212 while test "$#" -gt 0; do
5220 if test -n "$prev"; then
5276 test -f "$arg" \
5288 *-*-darwin*)
5305 if test -f "$arg"; then
5312 # A libtool-controlled object.
5322 if test -z "$pic_object" ||
5323 test -z "$non_pic_object" ||
5348 # CHECK ME: I think I busted this. -Ossama
5350 # Preload the old-style object.
5360 # Non-PIC object.
5365 # A standard non-PIC object
5367 if test -z "$pic_object" || test "$pic_object" = none ; then
5377 # Only an error if not doing a dry-run.
5406 release="-$arg"
5413 [\\/]* | [A-Za-z]:[\\/]*) ;;
5415 func_fatal_error "only absolute run-paths are allowed"
5471 fi # test -n "$prev"
5476 -all-static)
5477 if test -n "$link_static_flag"; then
5478 # See comment for -static flag below, for more details.
5485 -allow-undefined)
5487 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5490 -avoid-version)
5495 -bindir)
5500 -dlopen)
5505 -dlpreopen)
5510 -export-dynamic)
5515 -export-symbols | -export-symbols-regex)
5516 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5517 func_fatal_error "more than one -exported-symbols argument is not allowed"
5519 if test "X$arg" = "X-export-symbols"; then
5527 -framework)
5532 -inst-prefix-dir)
5537 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5538 # so, if we see these flags be careful not to treat them like -L
5539 -L[A-Z][A-Z]*:*)
5541 no/*-*-irix* | /*-*-irix*)
5549 -L*)
5550 func_stripname "-L" '' "$arg"
5551 if test -z "$func_stripname_result"; then
5552 if test "$#" -gt 0; then
5553 func_fatal_error "require no space between \`-L' and \`$1'"
5555 func_fatal_error "need path for \`-L' option"
5562 [\\/]* | [A-Za-z]:[\\/]*) ;;
5565 test -z "$absdir" && \
5571 *" -L$dir "* | *" $arg "*)
5577 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5578 *) func_append deplibs " -L$dir" ;;
5584 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5601 -l*)
5602 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5604 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5608 *-*-os2*)
5610 test "X$arg" = "X-lc" && continue
5612 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5614 test "X$arg" = "X-lc" && continue
5616 *-*-rhapsody* | *-*-darwin1.[012])
5621 *-*-sco3.2v5* | *-*-sco5v6*)
5623 test "X$arg" = "X-lc" && continue
5625 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5627 test "X$arg" = "X-lc" && continue
5630 elif test "X$arg" = "X-lc_r"; then
5632 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5633 # Do not include libc_r directly, use -pthread flag.
5642 -module)
5647 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5649 # Darwin uses the -arch flag to determine output architecture.
5650 -model|-arch|-isysroot|--sysroot)
5658 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5659 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5670 -multi_module)
5671 single_module="${wl}-multi_module"
5675 -no-fast-install)
5680 -no-install)
5682 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5685 func_warning "\`-no-install' is ignored for $host"
5686 func_warning "assuming \`-no-fast-install' instead"
5694 -no-undefined)
5699 -objectlist)
5704 -o) prev=output ;;
5706 -precious-files-regex)
5711 -release)
5716 -rpath)
5721 -R)
5726 -R*)
5727 func_stripname '-R' '' "$arg"
5731 [\\/]* | [A-Za-z]:[\\/]*) ;;
5737 func_fatal_error "only absolute run-paths are allowed"
5747 -shared)
5748 # The effects of -shared are defined in a previous loop.
5752 -shrext)
5757 -static | -static-libtool-libs)
5758 # The effects of -static are defined in a previous loop.
5759 # We used to do the same as -all-static on platforms that
5766 -thread-safe)
5771 -version-info)
5776 -version-number)
5782 -weak)
5787 -Wc,*)
5788 func_stripname '-Wc,' '' "$arg"
5803 -Wl,*)
5804 func_stripname '-Wl,' '' "$arg"
5820 -Xcompiler)
5825 -Xlinker)
5830 -XCClinker)
5835 # -msg_* for osf cc
5836 -msg_*)
5842 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5843 # -r[0-9][0-9]* specify processor for the SGI compiler
5844 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5845 # +DA*, +DD* enable 64-bit mode for the HP compiler
5846 # -q* compiler args for the IBM compiler
5847 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5848 # -F/path path to uninstalled frameworks, gcc on darwin
5849 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5851 # -tp=* Portland pgcc target processor selection
5852 # --sysroot=* for sysroot support
5853 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5854 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5855 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5856 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5866 -* | +*)
5877 # A libtool-controlled object.
5887 if test -z "$pic_object" ||
5888 test -z "$non_pic_object" ||
5913 # CHECK ME: I think I busted this. -Ossama
5915 # Preload the old-style object.
5925 # Non-PIC object.
5930 # A standard non-PIC object
5932 if test -z "$pic_object" || test "$pic_object" = none ; then
5942 # Only an error if not doing a dry-run.
5967 # A libtool-controlled library.
5971 # This library was specified with -dlopen.
5975 # The library was specified with -dlpreopen.
5994 if test -n "$arg"; then
6000 test -n "$prev" && \
6003 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
6015 if test -n "$shlibpath_var"; then
6046 # that are linked more than once (e.g. -la -lb -la)
6078 notinst_deplibs= # not-installed libtool libraries
6079 notinst_path= # paths that contain not-installed libtool libraries
6088 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6107 # so that -L comes before libs that need it for instance...
6133 # Ignore non-libtool-libs
6163 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6164 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6179 -l*)
6181 func_warning "\`-l' is ignored for archives/objects"
6184 func_stripname '-l' '' "$deplib"
6195 if test -f "$lib"; then
6248 ;; # -l
6264 -L*)
6270 func_stripname '-L' '' "$deplib"
6285 func_stripname '-L' '' "$deplib"
6290 func_warning "\`-L' is ignored for archives/objects"
6294 ;; # -L
6295 -R*)
6297 func_stripname '-R' '' "$deplib"
6321 # but linking other static libraries is non-portable.
6390 if test "$found" = yes || test -f "$lib"; then :
6419 # Convert "-framework foo" to "foo.ltframework"
6420 if test -n "$inherited_linker_flags"; then
6421 …tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltf…
6429 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6433 test -n "$dlopen" && func_append dlfiles " $dlopen"
6434 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6440 if test -z "$libdir"; then
6441 if test -z "$old_library"; then
6466 if test -n "$old_library" &&
6475 if test -z "$linklib"; then
6479 # This library was specified with -dlopen.
6481 if test -z "$libdir"; then
6482 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6484 if test -z "$dlname" ||
6500 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6503 if test -z "$abs_ladir"; then
6515 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6526 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6541 # This library was specified with -dlpreopen.
6543 if test -z "$libdir" && test "$linkmode" = prog; then
6544 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6547 # special handling for platforms with PE-DLLs.
6557 if test -n "$dlname"; then
6565 test -z "$libdir" && \
6572 if test -n "$old_library"; then
6576 test -z "$libdir" && \
6579 elif test -n "$dlname"; then
6588 if test -z "$libdir"; then
6607 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6615 -L*) func_stripname '-L' '' "$deplib"
6639 if test -n "$library_names" &&
6642 test -z "$old_library"; }; then
6644 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6653 # Skip directories that are in the system default run-time
6678 test -n "$library_names"; }; }; then
6689 if test -n "$library_names" &&
6690 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6706 # Warn about portability, can't link against -module's on some
6715 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6727 # Skip directories that are in the system default run-time
6749 if test -n "$old_archive_from_expsyms_cmds"; then
6757 if test -n "$dlname"; then
6759 elif test -n "$soname_spec"; then
6763 func_arith $current - $age
6765 versuffix="-$major"
6778 newlib=libimp-$func_stripname_result.a
6781 if test -f "$output_objdir/$soname-def"; then :
6788 if test -f "$output_objdir/$newlib"; then :; else
6795 fi # test -n "$old_archive_from_expsyms_cmds"
6807 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6808 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6809 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6810 *-*-unixware7*) add_dir="-L$dir" ;;
6811 *-*-darwin* )
6812 # if the lib is a (non-dlopened) module then we can not
6814 if /usr/bin/file -L $add 2> /dev/null |
6818 if test -z "$old_library" ; then
6825 elif test -n "$old_library"; then
6832 *-*-sunos*) add_shlibpath="$dir" ;;
6834 add_dir="-L$dir"
6835 add="-l$name"
6838 add="-l$name"
6848 add_dir="-L$absdir"
6850 if test -n "$inst_prefix_dir"; then
6853 func_append add_dir " -L$inst_prefix_dir$libdir"
6857 add="-l$name"
6860 add="-l$name"
6872 if test -n "$add_shlibpath"; then
6879 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6880 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6882 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6883 test -n "$add" && deplibs="$add $deplibs"
6904 add_dir="-L$libdir"
6905 add="-l$name"
6911 add="-l$name"
6913 if test -n "$inst_prefix_dir" &&
6914 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6921 add_dir="-L$libdir"
6923 if test -n "$inst_prefix_dir"; then
6926 func_append add_dir " -L$inst_prefix_dir$libdir"
6930 add="-l$name"
6934 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6935 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6937 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6938 test -n "$add" && deplibs="$add $deplibs"
6946 test -n "$old_library" && linklib="$old_library"
6950 compile_deplibs="-l$name -L$dir $compile_deplibs"
6951 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6969 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6970 if test -z "$global_symbol_pipe"; then
6991 if test -n "$dependency_libs" &&
6995 # Extract -R from dependency_libs
6999 -R*) func_stripname '-R' '' "$libdir"
7019 -L*) func_stripname '-L' '' "$deplib"
7037 -L*) path="$deplib" ;;
7045 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7048 if test -z "$absdir"; then
7056 *-*-darwin*)
7058 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7059 if test -n "$deplibrary_names" ; then
7063 if test -f "$absdir/$objdir/$depdepl" ; then
7065 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7066 if test -z "$darwin_install_name"; then
7067 … darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7069 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7070 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7076 path="-L$absdir/$objdir"
7080 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7081 test -z "$libdir" && \
7086 path="-L$absdir"
7103 …r_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7143 -L*) new_libs="$deplib $new_libs" ;;
7144 -R*) ;;
7158 # using -Wl,-lname, so that libtool does not consider it
7175 -L*)
7196 if test -n "$i" ; then
7211 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7212 func_warning "\`-dlopen' is ignored for archives"
7216 *\ -l* | *\ -L*)
7217 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7220 test -n "$rpath" && \
7221 func_warning "\`-rpath' is ignored for archives"
7223 test -n "$xrpath" && \
7224 func_warning "\`-R' is ignored for archives"
7226 test -n "$vinfo" && \
7227 func_warning "\`-version-info/-version-number' is ignored for archives"
7229 test -n "$release" && \
7230 func_warning "\`-release' is ignored for archives"
7232 test -n "$export_symbols$export_symbols_regex" && \
7233 func_warning "\`-export-symbols' is ignored for archives"
7242 # Make sure we only generate libraries of the form `libNAME.la'.
7267 if test -n "$objs"; then
7269 …func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$o…
7272 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7279 func_warning "\`-dlopen self' is ignored for libtool libraries"
7283 test "$#" -gt 1 && \
7284 func_warning "ignoring multiple \`-rpath's for a libtool library"
7289 if test -z "$rpath"; then
7300 test -n "$vinfo" && \
7301 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7303 test -n "$release" && \
7304 func_warning "\`-release' is ignored for convenience libraries"
7313 test -n "$7" && \
7314 func_fatal_help "too many parameters to \`-version-info'"
7326 # There are really only two kinds -- those that
7340 freebsd-aout|freebsd-elf|qnx|sunos)
7363 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]) ;;
7371 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]) ;;
7379 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]) ;;
7386 if test "$age" -gt "$current"; then
7401 func_arith $current - $age
7407 …xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_cu…
7408 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7411 freebsd-aout)
7416 freebsd-elf)
7423 func_arith $current - $age
7425 func_arith $current - $age + 1
7437 while test "$loop" -ne 0; do
7438 func_arith $revision - $loop
7440 func_arith $loop - 1
7451 func_arith $current - $age
7457 func_arith $current - $age
7464 while test "$loop" -ne 0; do
7465 func_arith $current - $loop
7467 func_arith $loop - 1
7487 # Use '-' rather than '.', since we only want one
7489 func_arith $current - $age
7491 versuffix="-$major"
7500 if test -z "$vinfo" && test -n "$release"; then
7555 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7565 test -n "$removelist" && \
7580 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7581 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7584 if test -n "$xrpath"; then
7589 func_append temp_xrpath " -R$func_replace_sysroot_result"
7621 if test -n "$rpath"; then
7623 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7626 *-*-rhapsody* | *-*-darwin1.[012])
7630 *-*-netbsd*)
7633 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7636 *-*-sco3.2v5* | *-*-sco5v6*)
7639 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7645 func_append deplibs " -lc"
7658 # release should show up in the -l (ie -lgmp5) so we don't want to
7684 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7688 -l*)
7689 func_stripname -l '' "$i"
7699 if test -n "$i" ; then
7704 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7728 -l*)
7729 func_stripname -l '' "$i"
7732 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7742 if test -n "$i" ; then
7747 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7781 -l*)
7782 func_stripname -l '' "$a_deplib"
7792 if test -n "$a_deplib" ; then
7794 if test -n "$file_magic_glob"; then
7795 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7799 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7802 shopt -s nocaseglob
7803 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7806 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7810 if ls -lLd "$potent_lib" 2>/dev/null |
7811 $GREP " -> " >/dev/null; then
7820 while test -h "$potlib" 2>/dev/null; do
7821 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7823 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7828 $SED -e 10q |
7837 if test -n "$a_deplib" ; then
7845 if test -z "$potlib" ; then
7854 # Add a -L argument.
7865 -l*)
7866 func_stripname -l '' "$a_deplib"
7876 if test -n "$a_deplib" ; then
7879 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7881 potlib="$potent_lib" # see symlink-check above in file_magic test
7891 if test -n "$a_deplib" ; then
7899 if test -z "$potlib" ; then
7908 # Add a -L argument.
7916 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7927 echo "*** Warning: inter-library dependencies are not supported in this platform."
7929 echo "*** Warning: inter-library dependencies are not known to be supported."
7931 echo "*** All declared inter-library dependencies are being dropped."
7944 *-*-rhapsody* | *-*-darwin1.[012])
7946 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7953 echo "*** Warning: libtool could not satisfy all declared inter-library"
7956 echo "*** application is linked with the -dlopen flag."
7957 if test -z "$global_symbol_pipe"; then
7972 echo "*** The inter-library dependencies that have been dropped here will be"
7974 echo "*** or is declared to -dlopen it."
7980 echo "*** it was explicitly requested with -no-undefined,"
7995 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7997 *-*-darwin*)
7998 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7999 …er_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8000 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8009 *" -L$path/$objdir "*) ;;
8012 *" -L$path/$objdir "*)
8013 func_append new_libs " -L$path/$objdir" ;;
8020 -L*)
8031 # All the library-specific variables (install_libdir is set above).
8050 if test -n "$hardcode_libdir_flag_spec"; then
8051 if test -n "$hardcode_libdir_separator"; then
8054 if test -z "$hardcode_libdirs"; then
8070 elif test -n "$runpath_var"; then
8078 if test -n "$hardcode_libdir_separator" &&
8079 test -n "$hardcode_libdirs"; then
8083 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8091 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8096 if test -n "$shlibpath"; then
8108 if test -n "$soname_spec"; then
8113 if test -z "$dlname"; then
8125 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8129 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8138 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8156 if test -z "$export_symbols"; then
8157 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8179 && { test "$len" -lt "$max_cmd_len" \
8180 || test "$max_cmd_len" -le -1; }
8184 elif test -n "$nm_file_list_spec"; then
8213 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8214 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8220 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8222 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8226 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8234 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8237 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8251 if test -n "$convenience"; then
8252 if test -n "$whole_archive_flag_spec" &&
8254 test -z "$libobjs"; then
8259 if test -n "$whole_archive_flag_spec"; then
8273 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8284 if test "$module" = yes && test -n "$module_cmds" ; then
8285 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8293 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8305 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8320 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8335 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8348 …elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; t…
8368 if test -n "$save_libobjs"; then
8370 output=$output_objdir/$output_la-${k}.$objext
8383 test "$len" -lt "$max_cmd_len"; then
8388 if test "$k" -eq 1 ; then
8398 last_robj=$output_objdir/$output_la-${k}.$objext
8401 output=$output_objdir/$output_la-${k}.$objext
8411 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8414 if test -n "$last_robj"; then
8423 if ${skipped_export-false}; then
8429 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8431 if test -n "$last_robj"; then
8436 test -n "$save_libobjs" &&
8462 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8463 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8468 if ${skipped_export-false}; then
8469 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8471 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8475 if test -n "$orig_export_symbols"; then
8483 …$opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $outp…
8486 … $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8494 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8502 if test "$module" = yes && test -n "$module_cmds" ; then
8503 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8509 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8517 if test -n "$delfiles"; then
8523 if test -n "$dlprefiles"; then
8559 if test -n "$convenience"; then
8560 if test -z "$whole_archive_flag_spec"; then
8575 # If -module or -export-dynamic was specified, set the dlname.
8584 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8585 func_warning "\`-dlopen' is ignored for objects"
8589 *\ -l* | *\ -L*)
8590 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8593 test -n "$rpath" && \
8594 func_warning "\`-rpath' is ignored for objects"
8596 test -n "$xrpath" && \
8597 func_warning "\`-R' is ignored for objects"
8599 test -n "$vinfo" && \
8600 func_warning "\`-version-info' is ignored for objects"
8602 test -n "$release" && \
8603 func_warning "\`-release' is ignored for objects"
8607 test -n "$objs$old_deplibs" && \
8608 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8624 # single-version convenience libraries. Whenever we create
8625 # different ones for PIC/non-PIC, this we'll have to duplicate
8630 # -Wl from whole_archive_flag_spec and hope we can get by with
8634 if test -n "$convenience"; then
8635 if test -n "$whole_archive_flag_spec"; then
8650 # Create the old-style object.
8657 if test -z "$libobj"; then
8658 if test -n "$gentop"; then
8666 if test -n "$gentop"; then
8677 if test -n "$pic_flag" || test "$pic_mode" != default; then
8684 if test -n "$gentop"; then
8696 test -n "$vinfo" && \
8697 func_warning "\`-version-info' is ignored for programs"
8699 test -n "$release" && \
8700 func_warning "\`-release' is ignored for programs"
8709 *-*-rhapsody* | *-*-darwin1.[012])
8711 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8712 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8717 *-*-darwin*)
8721 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8723 func_append compile_command " ${wl}-bind_at_load"
8724 func_append finalize_command " ${wl}-bind_at_load"
8728 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8729 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8730 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8740 *" -L$path/$objdir "*) ;;
8743 *" -L$path/$objdir "*)
8744 func_append new_libs " -L$path/$objdir" ;;
8751 -L*)
8766 if test -n "$rpath$xrpath"; then
8769 # This is the magic to use -rpath.
8781 if test -n "$hardcode_libdir_flag_spec"; then
8782 if test -n "$hardcode_libdir_separator"; then
8783 if test -z "$hardcode_libdirs"; then
8799 elif test -n "$runpath_var"; then
8806 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8807 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8822 if test -n "$hardcode_libdir_separator" &&
8823 test -n "$hardcode_libdirs"; then
8832 if test -n "$hardcode_libdir_flag_spec"; then
8833 if test -n "$hardcode_libdir_separator"; then
8834 if test -z "$hardcode_libdirs"; then
8850 elif test -n "$runpath_var"; then
8858 if test -n "$hardcode_libdir_separator" &&
8859 test -n "$hardcode_libdirs"; then
8865 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8874 if test -n "$prelink_cmds"; then
8904 if test -n "$postlink_cmds"; then
8906 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8911 if test -f "$output_objdir/${outputname}S.${objext}"; then
8918 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8921 if test -n "$finalize_shlibpath"; then
8927 if test -n "$runpath_var"; then
8928 if test -n "$perm_rpath"; then
8936 if test -n "$finalize_perm_rpath"; then
8956 if test -n "$postlink_cmds"; then
8958 …postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUT…
8991 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
8995 if test -n "$postlink_cmds"; then
8997 …stlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g…
9005 if test -n "$relink_command"; then
9008 if eval test -z \"\${$var+set}\"; then
9009 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9010 elif eval var_value=\$$var; test -z "$var_value"; then
9042 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9050 # because it contains $host paths and files. If cross-
9054 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9065 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9084 # See if we need to build an old-fashioned archive.
9097 if test "$preload" = yes && test -f "$symfileobj"; then
9104 if test -n "$addlibs"; then
9113 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9118 if test -n "$dlprefiles"; then
9136 done | sort | sort -uc >/dev/null 2>&1); then
9156 newobj=lt$counter-$objbase
9161 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9177 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9179 elif test -n "$archiver_list_spec"; then
9213 if test "$len" -lt "$max_cmd_len"; then
9221 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9239 test -n "$generated" && \
9251 if eval test -z \"\${$var+set}\"; then
9252 …relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relin…
9253 elif eval var_value=\$$var; test -z "$var_value"; then
9261 …relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefi…
9271 if test -z "$install_libdir"; then
9283 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
9284 test -z "$libdir" && \
9288 -L*)
9289 func_stripname -L '' "$deplib"
9291 func_append newdependency_libs " -L$func_replace_sysroot_result"
9293 -R*)
9294 func_stripname -R '' "$deplib"
9296 func_append newdependency_libs " -R$func_replace_sysroot_result"
9309 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9310 test -z "$libdir" && \
9322 # Only pass preopened files to the pseudo-archive (for
9328 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9329 test -z "$libdir" && \
9340 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9349 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9359 # systems that can't hard-code library paths into their executables
9362 # libtool variables, so we have to hard-code the OSs to which it
9369 # If a -bindir argument was supplied, place the dll there.
9381 # $outputname - a libtool library file
9413 # Should we warn about portability when linking against -modules?
9457 -f) func_append RM " $arg"; rmforce=yes ;;
9458 -*) func_append RM " $arg" ;;
9463 test -z "$RM" && \
9488 # Don't error if the file doesn't exist and rm -f was used.
9489 if { test -L "$file"; } >/dev/null 2>&1 ||
9490 { test -h "$file"; } >/dev/null 2>&1 ||
9491 test -f "$file"; then
9493 elif test -d "$file"; then
9512 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9518 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9520 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9523 if test -n "$library_names"; then
9528 if test -n "$old_library"; then
9546 if test -n "$pic_object" &&
9551 # Add non-PIC object to the list of files to remove.
9552 if test -n "$non_pic_object" &&
9588 if test "$fast_install" = yes && test -n "$relink_command"; then
9589 func_append rmfiles " $odir/lt-$name"
9592 func_append rmfiles " $odir/lt-${noexename}.c"
9603 if test -d "$dir"; then
9614 test -z "$opt_mode" && {
9619 test -z "$exec_cmd" && \
9622 if test -n "$exec_cmd"; then
9637 # time on that platform, so we default to a shared-only configuration.
9638 # If a disable-shared tag is given, we'll fallback to a static-only
9639 # configuration. But we'll never go from static-only to shared-only.
9641 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9644 # ### END LIBTOOL TAG CONFIG: disable-shared
9646 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9648 # ### END LIBTOOL TAG CONFIG: disable-static
9651 # mode:shell-script
9652 # sh-indentation:2