Lines Matching +refs:bs +refs:get +refs:file +refs:name

16 # if you distribute this file as part of a program or library that
17 # is built using GNU Libtool, you may include this file under the
26 # along with GNU Libtool; see the file COPYING. If not, a copy
50 # compile compile a source file into a libtool object
147 # func_dirname_and_basename file append nondir_replacement
176 # positional parameter $0, within a function call, is the name of the
180 # The name of this program:
223 bs='\\'
230 s/^$bs2$dollar/$bs&/
231 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
242 # Echo program name prefixed message, along with the current mode
243 # name if it has been set yet.
250 # Echo program name prefixed message in verbose mode only.
262 # Echo program name prefixed message to standard error.
269 # Echo program name prefixed warning message to standard error.
279 # Echo program name prefixed message to standard error, and exit.
287 # Echo program name prefixed message to standard error, followed by
359 # Return a directory name, but don't create it in dry-run mode
545 # Echo program name prefixed message to standard error and set global
607 # Echo program name prefixed message to standard error, followed by
670 func_fatal_error "invalid tag name: $tagname"
890 # func_lalib_p file
891 # True iff FILE is a libtool `.la' library or `.lo' object file.
900 # func_lalib_unsafe_p file
901 # True iff FILE is a libtool `.la' library or `.lo' object file.
904 # closes it afterwards, without saving the original file descriptor.
906 # fatal anyway. Works if `file' does not exist.
923 # func_ltwrapper_script_p file
932 # func_ltwrapper_executable_p file
946 # func_ltwrapper_scriptname file
947 # Assumes file is an ltwrapper_executable
948 # uses $file to determine the appropriate filename for a
960 # func_ltwrapper_p file
987 # func_source file
1063 # Create a libtool object file (analogous to a ".la" file),
1082 # $write_libobj - a libtool object file
1085 # Please DO NOT delete this file!
1103 # Get the compilation command and the source file.
1178 # Accept the current argument as the source file.
1201 # Get the name of the library object.
1209 # Recognize several different file suffixes.
1210 # If the user specifies -o file.o, it is replaced with file.lo
1224 func_fatal_error "cannot determine name of library object from \`$libobj'"
1260 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1299 # We use this script file to make the link, it avoids creating a new file
1312 temporary object file, and libtool could not work around it because
1315 avoid parallel builds (make -j) in this platform, or get a better
1367 temporary object file, and libtool could not work around it because
1370 avoid parallel builds (make -j) in this platform, or get a better
1416 temporary object file, and libtool could not work around it because
1419 avoid parallel builds (make -j) in this platform, or get a better
1456 # at the start of this file.
1466 RM is the name of the program to use to delete files associated with each FILE
1478 Compile a source file into a libtool library object.
1482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1486 -shared do not build a \`.o' file suitable for static linking
1487 -static only build a \`.o' file suitable for static linking
1489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1492 The output file name is determined by removing the directory component from
1581 -shrext SUFFIX override the standard shared library file extension
1602 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1612 RM is the name of the program to use to delete files associated with each FILE
1639 # The first argument is the command name.
1645 for file in $execute_dlfiles; do
1646 test -f "$file" \
1647 || func_fatal_help "\`$file' is not a file"
1650 case $file in
1653 func_lalib_unsafe_p "$file" \
1659 func_source "$file"
1665 func_warning "\`$file' was not linked with \`-export-dynamic'"
1669 func_dirname "$file" "" "."
1682 # Just add the directory containing the .lo file.
1683 func_dirname "$file" "" "."
1711 for file
1713 case $file in
1717 if func_ltwrapper_script_p "$file"; then
1718 func_source "$file"
1719 # Transform arg to wrapped name.
1720 file="$progdir/$program"
1721 elif func_ltwrapper_executable_p "$file"; then
1722 func_ltwrapper_scriptname "$file"
1724 # Transform arg to wrapped name.
1725 file="$progdir/$program"
1730 func_quote_for_eval "$file"
1865 # The real first argument should be the name of the installation program.
1927 func_fatal_help "no file or destination specified"
1947 # Not a directory, so check to see that there is only one file specified.
1955 for file in $files; do
1956 case $file in
1959 func_fatal_help "\`$destdir' must be an absolute directory name"
1973 for file in $files; do
1976 case $file in
1979 staticlibs="$staticlibs $file"
1984 func_lalib_unsafe_p "$file" \
1985 || func_fatal_help "\`$file' is not a valid libtool archive"
1990 func_source "$file"
2006 func_dirname "$file" "/" ""
2021 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2030 func_warning "relinking \`$file'"
2032 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2079 func_basename "$file"
2080 name="$func_basename_result"
2081 instname="$dir/$name"i
2082 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2091 # Figure out destination file name, if it wasn't already specified.
2095 func_basename "$file"
2100 # Deduce the name of the destination old-style object file.
2117 func_show_eval "$install_prog $file $destfile" 'exit $?'
2121 # Deduce the name of the old-style object file.
2122 func_lo2o "$file"
2130 # Figure out destination file name, if it wasn't already specified.
2134 func_basename "$file"
2139 # If the file is missing, and there is a .exe on the end, strip it
2143 case $file in
2145 if test ! -f "$file"; then
2146 func_stripname '' '.exe' "$file"
2147 file=$func_stripname_result
2156 if func_ltwrapper_executable_p "$file"; then
2157 func_ltwrapper_scriptname "$file"
2160 func_stripname '' '.exe' "$file"
2165 wrapper=$file
2200 func_basename "$file$stripped_ext"
2201 file="$func_basename_result"
2202 outputname="$tmpdir/$file"
2203 # Replace the output file specification.
2212 func_error "error: relink \`$file' with the above command before installing it"
2216 file="$outputname"
2218 func_warning "cannot relink \`$file'"
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2231 case $file:$destfile in
2245 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2253 for file in $staticlibs; do
2254 func_basename "$file"
2255 name="$func_basename_result"
2258 oldlib="$destdir/$name"
2260 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2314 # Parse the name list into a source file.
2385 name="$func_basename_result"
2387 eval '$ECHO ": $name " >> "$nlist"'
2393 # Make sure we have at least an empty file.
2424 const char *name;
2481 # compiling the symbol table file with pic_flag works around
2506 # Now compile the dynamic symbol file.
2512 # Transform the symbol file into the correct name.
2539 # Nullify the symbol file.
2546 # return the library type of file 'arg'
2555 win32_fileres=`file -L $1 2>/dev/null`
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2604 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
2667 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
2697 # don't directly open a file because we may want to
2758 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2761 file=\"\$0\"
2778 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2779 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2781 # Follow symbolic links until we get to the real thisdir.
2782 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2783 while test -n \"\$file\"; do
2784 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2787 if test \"x\$destdir\" != \"x\$file\"; then
2794 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2795 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2813 # Try to get the absolute directory name.
2824 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2825 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2827 file=\"\$\$-\$program\"
2832 $RM \"\$progdir/\$file\"
2842 $RM \"\$progdir/\$file\"
2847 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2849 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2850 $RM \"\$progdir/\$file\"
3053 const char *base_name (const char *name);
3157 LTWRAPPER_DEBUGPRINTF (("(main) libtool shell wrapper name: %s\n",
3255 base_name (const char *name)
3260 /* Skip over the disk name in MSDOS pathnames. */
3261 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3262 name += 2;
3265 for (base = name; *name; name++)
3266 if (IS_DIR_SEPARATOR (*name))
3267 base = name + 1;
3307 newly allocated full path name if found, NULL otherwise
3450 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3529 # that all symbols are satisfied, otherwise we get a static library.
3587 # We need to know -static, to get the right output filenames.
3692 || func_fatal_error "symbol file \`$arg' does not exist"
3734 # Read the .lo file
3741 func_fatal_error "cannot find name of object for \`$arg'"
3809 func_fatal_error "link input file \`$arg' does not exist"
3968 func_fatal_error "cannot determine absolute directory name of \`$dir'"
4042 # classes, name mangling, and exception handling.
4239 # @file GCC response files
4269 # Read the .lo file
4276 func_fatal_error "cannot find name of object for \`$arg'"
4394 # calculate the name of the file, without its directory
4400 # get the directories listed in $shlibpath_var
4416 func_fatal_help "you must specify an output file"
4466 for file in $dlfiles $dlprefiles; do
4467 case $file in
4470 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
4564 name=$func_stripname_result
4573 lib="$searchdir/lib${name}${search_ext}"
4718 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
4789 # Read the .la file
4815 func_fatal_error "cannot find name of link library for \`$lib'"
4837 # Get the name of the library we link against.
4843 func_fatal_error "cannot find name of link library for \`$lib'"
4871 func_warning "cannot determine absolute directory name of \`$ladir'"
4880 # Find the relevant object directory and library name.
4906 name=$func_stripname_result
5113 # Make a new name for the extract_expsyms_cmds to use
5154 if /usr/bin/file -L $add 2> /dev/null |
5175 add="-l$name"
5178 add="-l$name"
5197 add="-l$name"
5200 add="-l$name"
5245 add="-l$name"
5251 add="-l$name"
5270 add="-l$name"
5290 compile_deplibs="-l$name -L$dir $compile_deplibs"
5291 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
5380 func_warning "cannot determine absolute directory name of \`$dir'"
5577 name=$func_stripname_result
5588 name=$func_stripname_result
5849 # Remove version info from name if versioning should be avoided
5981 name_save=$name
6019 name=$func_stripname_result
6043 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
6059 name=$func_stripname_result
6086 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
6112 name=$func_stripname_result
6157 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6161 $ECHO "*** because I did check the linker path looking for a file starting"
6163 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
6165 $ECHO "*** with $libname and none of the candidates passed a file format test"
6166 $ECHO "*** using a file magic. Last file checked: $potlib"
6184 name=$func_stripname_result
6211 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6215 $ECHO "*** because I did check the linker path looking for a file starting"
6219 $ECHO "*** with $libname and none of the candidates passed a file format test"
6220 $ECHO "*** using a regex pattern. Last file checked: $potlib"
6258 name=$name_save
6455 # and it's NOT already a .def file. Must figure out
6487 func_verbose "using reloadable object file for export list..."
6509 # The given exports_symbols file has to be filtered, so filter it.
6600 # convenience libraries get linked in and end up exceeding
6628 func_verbose "creating linker input file list: $output"
6665 # The first file doesn't have a previous command to add.
6683 # reloadable object file. All subsequent reloadable object
6701 # Append the command to create the export file.
6710 func_verbose "creating a temporary reloadable object file: $output"
6749 # The given exports_symbols file has to be filtered, so filter it.
6902 # reload_cmds runs $LD directly, so let us get rid of
6903 # -Wl from whole_archive_flag_spec and hope we can get by with
6926 # Exit if we aren't doing a library object file.
7160 # Replace the output file specification.
7207 # Replace the output file specification.
7209 # Delete the old output file.
7227 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
7238 # Replace the output file specification.
7411 # Make sure we don't pick an alternate name that also
7526 name="$func_basename_result"
7530 newdependency_libs="$newdependency_libs $libdir/$name"
7542 name="$func_basename_result"
7546 newdlfiles="$newdlfiles $libdir/$name"
7561 name="$func_basename_result"
7565 newdlprefiles="$newdlprefiles $libdir/$name"
7597 # $outputname - a libtool library file
7600 # Please DO NOT delete this file!
7603 # The name that we can dlopen(3).
7609 # The name of the static archive.
7685 for file in $files; do
7686 func_dirname "$file" "" "."
7693 func_basename "$file"
7694 name="$func_basename_result"
7705 # Don't error if the file doesn't exist and rm -f was used.
7706 if { test -L "$file"; } >/dev/null 2>&1 ||
7707 { test -h "$file"; } >/dev/null 2>&1 ||
7708 test -f "$file"; then
7710 elif test -d "$file"; then
7717 rmfiles="$file"
7719 case $name in
7722 if func_lalib_p "$file"; then
7723 func_source $dir/$name
7738 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
7758 if func_lalib_p "$file"; then
7760 # Read the .lo file
7761 func_source $dir/$name
7779 noexename=$name
7780 case $file in
7782 func_stripname '' '.exe' "$file"
7783 file=$func_stripname_result
7784 func_stripname '' '.exe' "$name"
7786 # $file with .exe has already been added to rmfiles,
7787 # add $file without .exe
7788 rmfiles="$rmfiles $file"
7792 if func_ltwrapper_p "$file"; then
7793 if func_ltwrapper_executable_p "$file"; then
7794 func_ltwrapper_scriptname "$file"
7803 # note $name still contains .exe if it was in $file originally
7804 # as does the version of $file that was added into $rmfiles
7805 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
7807 rmfiles="$rmfiles $objdir/lt-$name"
7809 if test "X$noexename" != "X$name" ; then
7849 # The TAGs below are defined such that we never get into a situation