ltmain.sh (xdelta3-3.0.10) | : | ltmain.sh (xdelta3-3.0.11) | ||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
## DO NOT EDIT - This file generated from ./build-aux/ltmain.in | ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in | |||
## by inline-source v2014-01-03.01 | ## by inline-source v2014-01-03.01 | |||
# libtool (GNU libtool) 2.4.4 | # libtool (GNU libtool) 2.4.6 | |||
# Provide generalized library-building support services. | # Provide generalized library-building support services. | |||
# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |||
# Copyright (C) 1996-2014 Free Software Foundation, Inc. | # Copyright (C) 1996-2015 Free Software Foundation, Inc. | |||
# This is free software; see the source for copying conditions. There is NO | # This is free software; see the source for copying conditions. There is NO | |||
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |||
# GNU Libtool is free software; you can redistribute it and/or modify | # GNU Libtool is free software; you can redistribute it and/or modify | |||
# it under the terms of the GNU General Public License as published by | # it under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation; either version 2 of the License, or | # the Free Software Foundation; either version 2 of the License, or | |||
# (at your option) any later version. | # (at your option) any later version. | |||
# | # | |||
# As a special exception to the GNU General Public License, | # As a special exception to the GNU General Public License, | |||
# if you distribute this file as part of a program or library that | # if you distribute this file as part of a program or library that | |||
skipping to change at line 33 | skipping to change at line 33 | |||
# GNU Libtool is distributed in the hope that it will be useful, but | # GNU Libtool is distributed in the hope that it will be useful, but | |||
# WITHOUT ANY WARRANTY; without even the implied warranty of | # WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
# General Public License for more details. | # General Public License for more details. | |||
# | # | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
PROGRAM=libtool | PROGRAM=libtool | |||
PACKAGE=libtool | PACKAGE=libtool | |||
VERSION=2.4.4 | VERSION=2.4.6 | |||
package_revision=2.4.4 | package_revision=2.4.6 | |||
## ------ ## | ## ------ ## | |||
## Usage. ## | ## Usage. ## | |||
## ------ ## | ## ------ ## | |||
# Run './libtool --help' for help with using this script from the | # Run './libtool --help' for help with using this script from the | |||
# command line. | # command line. | |||
## ------------------------------- ## | ## ------------------------------- ## | |||
## User overridable command paths. ## | ## User overridable command paths. ## | |||
skipping to change at line 63 | skipping to change at line 63 | |||
: ${AUTOMAKE="automake"} | : ${AUTOMAKE="automake"} | |||
## -------------------------- ## | ## -------------------------- ## | |||
## Source external libraries. ## | ## Source external libraries. ## | |||
## -------------------------- ## | ## -------------------------- ## | |||
# Much of our low-level functionality needs to be sourced from external | # Much of our low-level functionality needs to be sourced from external | |||
# libraries, which are installed to $pkgauxdir. | # libraries, which are installed to $pkgauxdir. | |||
# Set a version string for this script. | # Set a version string for this script. | |||
scriptversion=2014-01-03.01; # UTC | scriptversion=2015-01-20.17; # UTC | |||
# General shell script boiler plate, and helper functions. | # General shell script boiler plate, and helper functions. | |||
# Written by Gary V. Vaughan, 2004 | # Written by Gary V. Vaughan, 2004 | |||
# Copyright (C) 2004-2014 Free Software Foundation, Inc. | # Copyright (C) 2004-2015 Free Software Foundation, Inc. | |||
# This is free software; see the source for copying conditions. There is NO | # This is free software; see the source for copying conditions. There is NO | |||
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |||
# This program is free software; you can redistribute it and/or modify | # This program is free software; you can redistribute it and/or modify | |||
# it under the terms of the GNU General Public License as published by | # it under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation; either version 3 of the License, or | # the Free Software Foundation; either version 3 of the License, or | |||
# (at your option) any later version. | # (at your option) any later version. | |||
# As a special exception to the GNU General Public License, if you distribute | # As a special exception to the GNU General Public License, if you distribute | |||
# this file as part of a program or library that is built using GNU Libtool, | # this file as part of a program or library that is built using GNU Libtool, | |||
skipping to change at line 185 | skipping to change at line 185 | |||
# set $func_check_prog_result if it truncates its output less than | # set $func_check_prog_result if it truncates its output less than | |||
# $_G_path_prog_max characters. | # $_G_path_prog_max characters. | |||
func_path_progs () | func_path_progs () | |||
{ | { | |||
_G_progs_list=$1 | _G_progs_list=$1 | |||
_G_check_func=$2 | _G_check_func=$2 | |||
_G_PATH=${3-"$PATH"} | _G_PATH=${3-"$PATH"} | |||
_G_path_prog_max=0 | _G_path_prog_max=0 | |||
_G_path_prog_found=false | _G_path_prog_found=false | |||
_G_save_IFS=$IFS; IFS=$PATH_SEPARATOR | _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} | |||
for _G_dir in $_G_PATH; do | for _G_dir in $_G_PATH; do | |||
IFS=$_G_save_IFS | IFS=$_G_save_IFS | |||
test -z "$_G_dir" && _G_dir=. | test -z "$_G_dir" && _G_dir=. | |||
for _G_prog_name in $_G_progs_list; do | for _G_prog_name in $_G_progs_list; do | |||
for _exeext in '' .EXE; do | for _exeext in '' .EXE; do | |||
_G_path_prog=$_G_dir/$_G_prog_name$_exeext | _G_path_prog=$_G_dir/$_G_prog_name$_exeext | |||
func_executable_p "$_G_path_prog" || continue | func_executable_p "$_G_path_prog" || continue | |||
case `"$_G_path_prog" --version 2>&1` in | case `"$_G_path_prog" --version 2>&1` in | |||
*GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; | *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; | |||
*) $_G_check_func $_G_path_prog | *) $_G_check_func $_G_path_prog | |||
skipping to change at line 1329 | skipping to change at line 1329 | |||
# time-stamp-time-zone: "UTC" | # time-stamp-time-zone: "UTC" | |||
# End: | # End: | |||
#! /bin/sh | #! /bin/sh | |||
# Set a version string for this script. | # Set a version string for this script. | |||
scriptversion=2014-01-07.03; # UTC | scriptversion=2014-01-07.03; # UTC | |||
# A portable, pluggable option parser for Bourne shell. | # A portable, pluggable option parser for Bourne shell. | |||
# Written by Gary V. Vaughan, 2010 | # Written by Gary V. Vaughan, 2010 | |||
# Copyright (C) 2010-2014 Free Software Foundation, Inc. | # Copyright (C) 2010-2015 Free Software Foundation, Inc. | |||
# This is free software; see the source for copying conditions. There is NO | # This is free software; see the source for copying conditions. There is NO | |||
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |||
# This program is free software: you can redistribute it and/or modify | # This program is free software: you can redistribute it and/or modify | |||
# it under the terms of the GNU General Public License as published by | # it under the terms of the GNU General Public License as published by | |||
# the Free Software Foundation, either version 3 of the License, or | # the Free Software Foundation, either version 3 of the License, or | |||
# (at your option) any later version. | # (at your option) any later version. | |||
# This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
skipping to change at line 1908 | skipping to change at line 1908 | |||
# Local variables: | # Local variables: | |||
# mode: shell-script | # mode: shell-script | |||
# sh-indentation: 2 | # sh-indentation: 2 | |||
# eval: (add-hook 'before-save-hook 'time-stamp) | # eval: (add-hook 'before-save-hook 'time-stamp) | |||
# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" | # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" | |||
# time-stamp-time-zone: "UTC" | # time-stamp-time-zone: "UTC" | |||
# End: | # End: | |||
# Set a version string. | # Set a version string. | |||
scriptversion='(GNU libtool) 2.4.4' | scriptversion='(GNU libtool) 2.4.6' | |||
# func_echo ARG... | # func_echo ARG... | |||
# ---------------- | # ---------------- | |||
# Libtool also displays the current mode in messages, so override | # Libtool also displays the current mode in messages, so override | |||
# funclib.sh func_echo with this custom definition. | # funclib.sh func_echo with this custom definition. | |||
func_echo () | func_echo () | |||
{ | { | |||
$debug_cmd | $debug_cmd | |||
_G_message=$* | _G_message=$* | |||
skipping to change at line 1967 | skipping to change at line 1967 | |||
--preserve-dup-deps don't remove duplicate dependency libraries | --preserve-dup-deps don't remove duplicate dependency libraries | |||
--quiet, --silent don't print informational messages | --quiet, --silent don't print informational messages | |||
--tag=TAG use configuration variables from tag TAG | --tag=TAG use configuration variables from tag TAG | |||
-v, --verbose print more informational messages than default | -v, --verbose print more informational messages than default | |||
--version print version information | --version print version information | |||
-W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] | -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] | |||
-h, --help, --help-all print short, long, or detailed help message | -h, --help, --help-all print short, long, or detailed help message | |||
" | " | |||
# Additional text appended to 'usage_message' in response to '--help'. | # Additional text appended to 'usage_message' in response to '--help'. | |||
long_help_message=$long_help_message" | func_help () | |||
{ | ||||
$debug_cmd | ||||
func_usage_message | ||||
$ECHO "$long_help_message | ||||
MODE must be one of the following: | MODE must be one of the following: | |||
clean remove files from the build directory | clean remove files from the build directory | |||
compile compile a source file into a libtool object | compile compile a source file into a libtool object | |||
execute automatically set library path, then run a program | execute automatically set library path, then run a program | |||
finish complete the installation of libtool libraries | finish complete the installation of libtool libraries | |||
install install libraries or executables | install install libraries or executables | |||
link create a library or an executable | link create a library or an executable | |||
uninstall remove libraries from an installed directory | uninstall remove libraries from an installed directory | |||
skipping to change at line 1991 | skipping to change at line 1996 | |||
Try '$progname --help --mode=MODE' for a more detailed description of MODE. | Try '$progname --help --mode=MODE' for a more detailed description of MODE. | |||
When reporting a bug, please describe a test case to reproduce it and | When reporting a bug, please describe a test case to reproduce it and | |||
include the following information: | include the following information: | |||
host-triplet: $host | host-triplet: $host | |||
shell: $SHELL | shell: $SHELL | |||
compiler: $LTCC | compiler: $LTCC | |||
compiler flags: $LTCFLAGS | compiler flags: $LTCFLAGS | |||
linker: $LD (gnu? $with_gnu_ld) | linker: $LD (gnu? $with_gnu_ld) | |||
version: $progname (GNU libtool) 2.4.4 | version: $progname (GNU libtool) 2.4.6 | |||
automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` | automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` | |||
autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` | autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` | |||
Report bugs to <bug-libtool@gnu.org>. | Report bugs to <bug-libtool@gnu.org>. | |||
GNU libtool home page: <http://www.gnu.org/software/libtool/>. | GNU libtool home page: <http://www.gnu.org/software/libtool/>. | |||
General help using GNU software: <http://www.gnu.org/gethelp/>." | General help using GNU software: <http://www.gnu.org/gethelp/>." | |||
exit 0 | ||||
} | ||||
# func_lo2o OBJECT-NAME | # func_lo2o OBJECT-NAME | |||
# --------------------- | # --------------------- | |||
# Transform OBJECT-NAME from a '.lo' suffix to the platform specific | # Transform OBJECT-NAME from a '.lo' suffix to the platform specific | |||
# object suffix. | # object suffix. | |||
lo2o=s/\\.lo\$/.$objext/ | lo2o=s/\\.lo\$/.$objext/ | |||
o2lo=s/\\.$objext\$/.lo/ | o2lo=s/\\.$objext\$/.lo/ | |||
if test yes = "$_G_HAVE_XSI_OPS"; then | if test yes = "$_G_HAVE_XSI_OPS"; then | |||
skipping to change at line 6333 | skipping to change at line 6340 | |||
func_win32_import_lib_p () | func_win32_import_lib_p () | |||
{ | { | |||
$debug_cmd | $debug_cmd | |||
case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in | case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in | |||
*import*) : ;; | *import*) : ;; | |||
*) false ;; | *) false ;; | |||
esac | esac | |||
} | } | |||
# func_suncc_cstd_abi | ||||
# !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! | ||||
# Several compiler flags select an ABI that is incompatible with the | ||||
# Cstd library. Avoid specifying it if any are in CXXFLAGS. | ||||
func_suncc_cstd_abi () | ||||
{ | ||||
$debug_cmd | ||||
case " $compile_command " in | ||||
*" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library= | ||||
stlport4 "*) | ||||
suncc_use_cstd_abi=no | ||||
;; | ||||
*) | ||||
suncc_use_cstd_abi=yes | ||||
;; | ||||
esac | ||||
} | ||||
# func_mode_link arg... | # func_mode_link arg... | |||
func_mode_link () | func_mode_link () | |||
{ | { | |||
$debug_cmd | $debug_cmd | |||
case $host in | case $host in | |||
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) | |||
# It is impossible to link a dll without this setting, and | # It is impossible to link a dll without this setting, and | |||
# we shouldn't force the makefile maintainer to figure out | # we shouldn't force the makefile maintainer to figure out | |||
# what system we are compiling for in order to pass an extra | # what system we are compiling for in order to pass an extra | |||
skipping to change at line 7309 | skipping to change at line 7334 | |||
if test -n "$shlibpath_var"; then | if test -n "$shlibpath_var"; then | |||
# get the directories listed in $shlibpath_var | # get the directories listed in $shlibpath_var | |||
eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\ ` | eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\ ` | |||
else | else | |||
shlib_search_path= | shlib_search_path= | |||
fi | fi | |||
eval sys_lib_search_path=\"$sys_lib_search_path_spec\" | eval sys_lib_search_path=\"$sys_lib_search_path_spec\" | |||
eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" | eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" | |||
# Definition is injected by LT_CONFIG during libtool generation. | ||||
func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" | ||||
func_dirname "$output" "/" "" | func_dirname "$output" "/" "" | |||
output_objdir=$func_dirname_result$objdir | output_objdir=$func_dirname_result$objdir | |||
func_to_tool_file "$output_objdir/" | func_to_tool_file "$output_objdir/" | |||
tool_output_objdir=$func_to_tool_file_result | tool_output_objdir=$func_to_tool_file_result | |||
# Create the object directory. | # Create the object directory. | |||
func_mkdir_p "$output_objdir" | func_mkdir_p "$output_objdir" | |||
# Determine the type of output | # Determine the type of output | |||
case $output in | case $output in | |||
"") | "") | |||
skipping to change at line 8468 | skipping to change at line 8496 | |||
*" $deplib "*) ;; | *" $deplib "*) ;; | |||
*) func_append tmp_libs " $deplib" ;; | *) func_append tmp_libs " $deplib" ;; | |||
esac | esac | |||
;; | ;; | |||
*) func_append tmp_libs " $deplib" ;; | *) func_append tmp_libs " $deplib" ;; | |||
esac | esac | |||
done | done | |||
eval $var=\"$tmp_libs\" | eval $var=\"$tmp_libs\" | |||
done # for var | done # for var | |||
fi | fi | |||
# Add Sun CC postdeps if required: | ||||
test CXX = "$tagname" && { | ||||
case $host_os in | ||||
linux*) | ||||
case `$CC -V 2>&1 | sed 5q` in | ||||
*Sun\ C*) # Sun C++ 5.9 | ||||
func_suncc_cstd_abi | ||||
if test no != "$suncc_use_cstd_abi"; then | ||||
func_append postdeps ' -library=Cstd -library=Crun' | ||||
fi | ||||
;; | ||||
esac | ||||
;; | ||||
solaris*) | ||||
func_cc_basename "$CC" | ||||
case $func_cc_basename_result in | ||||
CC* | sunCC*) | ||||
func_suncc_cstd_abi | ||||
if test no != "$suncc_use_cstd_abi"; then | ||||
func_append postdeps ' -library=Cstd -library=Crun' | ||||
fi | ||||
;; | ||||
esac | ||||
;; | ||||
esac | ||||
} | ||||
# Last step: remove runtime libs from dependency_libs | # Last step: remove runtime libs from dependency_libs | |||
# (they stay in deplibs) | # (they stay in deplibs) | |||
tmp_libs= | tmp_libs= | |||
for i in $dependency_libs; do | for i in $dependency_libs; do | |||
case " $predeps $postdeps $compiler_lib_search_path " in | case " $predeps $postdeps $compiler_lib_search_path " in | |||
*" $i "*) | *" $i "*) | |||
i= | i= | |||
;; | ;; | |||
esac | esac | |||
if test -n "$i"; then | if test -n "$i"; then | |||
End of changes. 14 change blocks. | ||||
11 lines changed or deleted | 71 lines changed or added |