Upgrade to libtool 2.6.0.

* m4/libtool.m4: Update from libtool-2.6.0.
* m4/ltoptions.m4: Likewise.
* m4/ltsugar.m4: Likewise.
* m4/ltversion.m4: Likewise.
* m4/lt~obsolete.m4: Likewise.
* build-aux/ltmain.sh: Likewise.
This commit is contained in:
Bruno Haible 2025-09-22 00:41:29 +02:00
parent a32db7a22e
commit 1f89fa1de8
6 changed files with 734 additions and 189 deletions

View File

@ -2,11 +2,11 @@
## 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 v2019-02-19.15 ## by inline-source v2019-02-19.15
# libtool (GNU libtool) 2.5.4 # libtool (GNU libtool) 2.6.0
# 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-2019, 2021-2024 Free Software Foundation, Inc. # Copyright (C) 1996-2019, 2021-2025 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.
@ -31,8 +31,8 @@
PROGRAM=libtool PROGRAM=libtool
PACKAGE=libtool PACKAGE=libtool
VERSION=2.5.4 VERSION=2.6.0
package_revision=2.5.4 package_revision=2.6.0
## ------ ## ## ------ ##
@ -2215,7 +2215,7 @@ func_version ()
# End: # End:
# Set a version string. # Set a version string.
scriptversion='(GNU libtool) 2.5.4' scriptversion='(GNU libtool) 2.6.0'
# func_version # func_version
# ------------ # ------------
@ -2299,6 +2299,22 @@ func_help ()
func_usage_message func_usage_message
$ECHO "$long_help_message $ECHO "$long_help_message
If a TAG is supplied, it must use one of the tag names below:
Tag Name Language Name
CC C
CXX C++
OBJC Objective-C
OBJCXX Objective-C++
GCJ Java
F77 Fortran 77
FC Fortran
GO Go
RC Windows Resource
If you do not see a tag name associated with your programming language, then
you are using a compiler that $progname does not support.
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
@ -2326,7 +2342,7 @@ include the following information:
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: <https://www.gnu.org/software/libtool/>. GNU libtool home page: <https://www.gnu.org/s/libtool/>.
General help using GNU software: <https://www.gnu.org/gethelp/>." General help using GNU software: <https://www.gnu.org/gethelp/>."
exit 0 exit 0
} }
@ -2723,7 +2739,7 @@ libtool_validate_options ()
case $host_os in case $host_os in
# Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
# see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
cygwin* | mingw* | windows* | pw32* | cegcc* | solaris2* | os2*) cygwin* | mingw* | windows* | pw32* | cegcc* | solaris2* | os2* | *linux*)
# don't eliminate duplications in $postdeps and $predeps # don't eliminate duplications in $postdeps and $predeps
opt_duplicate_compiler_generated_deps=: opt_duplicate_compiler_generated_deps=:
;; ;;
@ -2999,8 +3015,9 @@ func_infer_tag ()
# was found and let the user know that the "--tag" command # was found and let the user know that the "--tag" command
# line option must be used. # line option must be used.
if test -z "$tagname"; then if test -z "$tagname"; then
func_echo "unable to infer tagged configuration" func_echo "unable to infer tagged configuration with compiler."
func_fatal_error "specify a tag with '--tag'" func_echo "Possible use of unsupported compiler."
func_fatal_error "specify a tag with '--tag'. For more information, try '$progname --help'."
# else # else
# func_verbose "using $tagname tagged configuration" # func_verbose "using $tagname tagged configuration"
fi fi
@ -3162,13 +3179,41 @@ func_convert_core_msys_to_w32 ()
{ {
$debug_cmd $debug_cmd
# awkward: cmd appends spaces to result # Compatibility for original MSYS
if test "Xone" = "X$lt_cv_cmd_slashes"; then
func_convert_core_msys_to_w32_result=`( cmd /c echo "$1" ) 2>/dev/null |
$SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
else # Assume 'lt_cv_cmd_slashes = "two"'
func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
$SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
fi
if test "$?" -ne 0; then
# on failure, ensure result is empty
func_convert_core_msys_to_w32_result=
fi
} }
#end: func_convert_core_msys_to_w32 #end: func_convert_core_msys_to_w32
# func_convert_core_msys_to_w32_with_cygpath ARG
# Convert file name or path ARG with cygpath from MSYS format to w32
# format. Return result in func_convert_core_msys_to_w32_with_cygpath_result.
func_convert_core_msys_to_w32_with_cygpath ()
{
$debug_cmd
# Since MSYS2 is packaged with cygpath, call cygpath in $PATH; no need
# to use LT_CYGPATH in this case.
func_convert_core_msys_to_w32_result=`cygpath "$@" 2>/dev/null |
$SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
if test "$?" -ne 0; then
# on failure, ensure result is empty
func_convert_core_msys_to_w32_result=
fi
}
#end: func_convert_core_msys_to_w32_with_cygpath
# func_convert_file_check ARG1 ARG2 # func_convert_file_check ARG1 ARG2
# Verify that ARG1 (a file name in $build format) was converted to $host # Verify that ARG1 (a file name in $build format) was converted to $host
# format in ARG2. Otherwise, emit an error message, but continue (resetting # format in ARG2. Otherwise, emit an error message, but continue (resetting
@ -3303,8 +3348,13 @@ func_convert_file_msys_to_w32 ()
func_to_host_file_result=$1 func_to_host_file_result=$1
if test -n "$1"; then if test -n "$1"; then
func_convert_core_msys_to_w32 "$1" if test "Xyes" = "X$cygpath_installed"; then
func_to_host_file_result=$func_convert_core_msys_to_w32_result func_convert_core_msys_to_w32_with_cygpath -w "$1"
func_to_host_file_result=$func_convert_core_msys_to_w32_with_cygpath_result
else
func_convert_core_msys_to_w32 "$1"
func_to_host_file_result=$func_convert_core_msys_to_w32_result
fi
fi fi
func_convert_file_check "$1" "$func_to_host_file_result" func_convert_file_check "$1" "$func_to_host_file_result"
} }
@ -3355,8 +3405,13 @@ func_convert_file_msys_to_cygwin ()
func_to_host_file_result=$1 func_to_host_file_result=$1
if test -n "$1"; then if test -n "$1"; then
func_convert_core_msys_to_w32 "$1" if test "Xyes" = "X$cygpath_installed"; then
func_cygpath -u "$func_convert_core_msys_to_w32_result" func_convert_core_msys_to_w32_with_cygpath -w "$1"
func_cygpath -u "$func_convert_core_msys_to_w32_with_cygpath_result"
else
func_convert_core_msys_to_w32 "$1"
func_cygpath -u "$func_convert_core_msys_to_w32_result"
fi
func_to_host_file_result=$func_cygpath_result func_to_host_file_result=$func_cygpath_result
fi fi
func_convert_file_check "$1" "$func_to_host_file_result" func_convert_file_check "$1" "$func_to_host_file_result"
@ -3457,8 +3512,13 @@ func_convert_path_msys_to_w32 ()
# and winepath ignores them completely. # and winepath ignores them completely.
func_stripname : : "$1" func_stripname : : "$1"
func_to_host_path_tmp1=$func_stripname_result func_to_host_path_tmp1=$func_stripname_result
func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" if test "Xyes" = "X$cygpath_installed"; then
func_to_host_path_result=$func_convert_core_msys_to_w32_result func_convert_core_msys_to_w32_with_cygpath -w -p "$func_to_host_path_tmp1"
func_to_host_path_result=$func_convert_core_msys_to_w32_with_cygpath_result
else
func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
func_to_host_path_result=$func_convert_core_msys_to_w32_result
fi
func_convert_path_check : ";" \ func_convert_path_check : ";" \
"$func_to_host_path_tmp1" "$func_to_host_path_result" "$func_to_host_path_tmp1" "$func_to_host_path_result"
func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
@ -3522,8 +3582,13 @@ func_convert_path_msys_to_cygwin ()
# See func_convert_path_msys_to_w32: # See func_convert_path_msys_to_w32:
func_stripname : : "$1" func_stripname : : "$1"
func_to_host_path_tmp1=$func_stripname_result func_to_host_path_tmp1=$func_stripname_result
func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" if test "Xyes" = "X$cygpath_installed"; then
func_cygpath -u -p "$func_convert_core_msys_to_w32_result" func_convert_core_msys_to_w32_with_cygpath -w -p "$func_to_host_path_tmp1"
func_cygpath -u -p "$func_convert_core_msys_to_w32_with_cygpath_result"
else
func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
fi
func_to_host_path_result=$func_cygpath_result func_to_host_path_result=$func_cygpath_result
func_convert_path_check : : \ func_convert_path_check : : \
"$func_to_host_path_tmp1" "$func_to_host_path_result" "$func_to_host_path_tmp1" "$func_to_host_path_result"
@ -4455,6 +4520,14 @@ func_mode_finish ()
fi fi
echo echo
echo "After a 'make install' for many GNU/Linux systems, 'ldconfig LIBDIR'"
echo "may need to be executed to help locate newly installed libraries,"
echo "but you should consult with a system administrator before updating"
echo "the shared library cache as this should be done with great care"
echo "and consideration. (See the 'Platform-specific configuration notes'"
echo "section of the documentation for more information.)"
echo
echo "See any operating system documentation about shared libraries for" echo "See any operating system documentation about shared libraries for"
case $host in case $host in
solaris2.[6789]|solaris2.1[0-9]) solaris2.[6789]|solaris2.1[0-9])
@ -4529,7 +4602,7 @@ func_mode_install ()
prev=$arg prev=$arg
fi fi
;; ;;
-g | -m | -o) -g | -m | -o | -S | -t)
prev=$arg prev=$arg
;; ;;
-s) -s)
@ -5045,7 +5118,7 @@ extern \"C\" {
# Prepare the list of exported symbols # Prepare the list of exported symbols
if test -z "$export_symbols"; then if test -z "$export_symbols"; then
export_symbols=$output_objdir/$outputname.exp export_symbols=$output_objdir/$outputname.expsym
$opt_dry_run || { $opt_dry_run || {
$RM $export_symbols $RM $export_symbols
eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
@ -5058,8 +5131,8 @@ extern \"C\" {
} }
else else
$opt_dry_run || { $opt_dry_run || {
eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.expsym"'
eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$GREP -f "$output_objdir/$outputname.expsym" < "$nlist" > "$nlist"T'
eval '$MV "$nlist"T "$nlist"' eval '$MV "$nlist"T "$nlist"'
case $host in case $host in
*cygwin* | *mingw* | *windows* | *cegcc* ) *cygwin* | *mingw* | *windows* | *cegcc* )
@ -5979,6 +6052,7 @@ int setenv (const char *, const char *, int);
# define getcwd _getcwd # define getcwd _getcwd
# define putenv _putenv # define putenv _putenv
# define S_IXUSR _S_IEXEC # define S_IXUSR _S_IEXEC
# define MSVC_ISDIR(m)(((m) & S_IFMT) == S_IFDIR)
#elif defined __MINGW32__ #elif defined __MINGW32__
# define setmode _setmode # define setmode _setmode
# define stat _stat # define stat _stat
@ -6374,8 +6448,13 @@ check_executable (const char *path)
if ((!path) || (!*path)) if ((!path) || (!*path))
return 0; return 0;
if ((stat (path, &st) >= 0) #ifdef _MSC_VER
if ((stat (path, &st) >= 0) && !MSVC_ISDIR (st.st_mode)
&& (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
#else
if ((stat (path, &st) >= 0) && !S_ISDIR (st.st_mode)
&& (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
#endif
return 1; return 1;
else else
return 0; return 0;
@ -7280,8 +7359,13 @@ func_mode_link ()
continue continue
;; ;;
xlinker) xlinker)
func_append linker_flags " $qarg" func_append linker_flags "$qarg,"
func_append compiler_flags " $wl$qarg" # Args in the var 'compiler_flags' causes warnings in MSVC
func_cc_basename "$CC"
case $func_cc_basename_result in
cl|cl.exe) ;;
*) func_append compiler_flags " $wl$qarg" ;;
esac
prev= prev=
func_append compile_command " $wl$qarg" func_append compile_command " $wl$qarg"
func_append finalize_command " $wl$qarg" func_append finalize_command " $wl$qarg"
@ -7525,8 +7609,6 @@ func_mode_link ()
*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
# The PATH hackery in wrapper scripts is required on Windows # The PATH hackery in wrapper scripts is required on Windows
# and Darwin in order for the loader to find any dlls it needs. # and Darwin in order for the loader to find any dlls it needs.
func_warning "'-no-install' is ignored for $host"
func_warning "assuming '-no-fast-install' instead"
fast_install=no fast_install=no
;; ;;
*) no_install=yes ;; *) no_install=yes ;;
@ -7648,6 +7730,11 @@ func_mode_link ()
arg=$func_stripname_result arg=$func_stripname_result
;; ;;
-Wl,--as-needed|-Wl,--no-as-needed)
deplibs="$deplibs $arg"
continue
;;
-Wl,*) -Wl,*)
func_stripname '-Wl,' '' "$arg" func_stripname '-Wl,' '' "$arg"
args=$func_stripname_result args=$func_stripname_result
@ -7657,8 +7744,13 @@ func_mode_link ()
IFS=$save_ifs IFS=$save_ifs
func_quote_arg pretty "$flag" func_quote_arg pretty "$flag"
func_append arg " $wl$func_quote_arg_result" func_append arg " $wl$func_quote_arg_result"
func_append compiler_flags " $wl$func_quote_arg_result" # Args in the var 'compiler_flags' causes warnings in MSVC
func_append linker_flags " $func_quote_arg_result" func_cc_basename "$CC"
case $func_cc_basename_result in
cl|cl.exe) ;;
*) func_append compiler_flags " $wl$func_quote_arg_result" ;;
esac
func_append linker_flags "$func_quote_arg_result,"
done done
IFS=$save_ifs IFS=$save_ifs
func_stripname ' ' '' "$arg" func_stripname ' ' '' "$arg"
@ -7704,6 +7796,7 @@ func_mode_link ()
# @file GCC response files # @file GCC response files
# -tp=* Portland pgcc target processor selection # -tp=* Portland pgcc target processor selection
# --sysroot=* for sysroot support # --sysroot=* for sysroot support
# --target=* for target architecture support
# -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
# -specs=* GCC specs files # -specs=* GCC specs files
# -stdlib=* select c++ std lib with clang # -stdlib=* select c++ std lib with clang
@ -7721,15 +7814,15 @@ func_mode_link ()
# --unwindlib=* select unwinder library with clang # --unwindlib=* select unwinder library with clang
# -f{file|debug|macro|profile}-prefix-map=* needed for lto linking # -f{file|debug|macro|profile}-prefix-map=* needed for lto linking
# -Wa,* Pass flags directly to the assembler # -Wa,* Pass flags directly to the assembler
# -Werror, -Werror=* Report (specified) warnings as errors # -W* Warnings, needed for lto
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*|--target=*| \
-O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \
-stdlib=*|-rtlib=*|--unwindlib=*| \ -stdlib=*|-rtlib=*|--unwindlib=*| \
-specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \ -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \
-ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \ -ffile-prefix-map=*|-fdebug-prefix-map=*|-fmacro-prefix-map=*|-fprofile-prefix-map=*| \
-fdiagnostics-color*|-frecord-gcc-switches| \ -fdiagnostics-color*|-frecord-gcc-switches| \
-fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*) -fuse-ld=*|-static-*|-fcilkplus|-W*)
func_quote_arg pretty "$arg" func_quote_arg pretty "$arg"
arg=$func_quote_arg_result arg=$func_quote_arg_result
func_append compile_command " $arg" func_append compile_command " $arg"
@ -8070,6 +8163,15 @@ func_mode_link ()
lib= lib=
found=false found=false
case $deplib in case $deplib in
-Wl,--as-needed|-Wl,--no-as-needed)
if test prog,link = "$linkmode,$pass"; then
compile_deplibs="$deplib $compile_deplibs"
finalize_deplibs="$deplib $finalize_deplibs"
else
deplibs="$deplib $deplibs"
fi
continue
;;
-mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
|-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*) |-threads|-fopenmp|-fopenmp=*|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
if test prog,link = "$linkmode,$pass"; then if test prog,link = "$linkmode,$pass"; then
@ -8228,8 +8330,15 @@ func_mode_link ()
fi fi
case $linkmode in case $linkmode in
lib) lib)
# Linking convenience modules into shared libraries is allowed, # Linking convenience modules and compiler provided static libraries
# but linking other static libraries is non-portable. # into shared libraries is allowed, but linking other static
# libraries is non-portable.
case $deplib in
*/libgcc*.$libext | */libclang_rt*.$libext)
deplibs="$deplib $deplibs"
continue
;;
esac
case " $dlpreconveniencelibs " in case " $dlpreconveniencelibs " in
*" $deplib "*) ;; *" $deplib "*) ;;
*) *)
@ -9312,29 +9421,21 @@ func_mode_link ()
esac esac
# Check that each of the things are valid numbers. # Check that each of the things are valid numbers.
case $current in if echo "$current" | $EGREP -v '(^0$)|(^[1-9]$)|(^[1-9][0-9]{1,4}$)' > /dev/null; then
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]) ;; func_error "CURRENT '$current' must be a nonnegative integer and <= 5 digits"
*)
func_error "CURRENT '$current' must be a nonnegative integer"
func_fatal_error "'$vinfo' is not valid version information" func_fatal_error "'$vinfo' is not valid version information"
;; fi
esac
case $revision in # Currently limiting revision length by Unix epoch time in nanoseconds.
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]) ;; if echo "$revision" | $EGREP -v '(^0$)|(^[1-9]$)|(^[1-9][0-9]{1,18}$)' > /dev/null; then
*) func_error "REVISION '$revision' must be a nonnegative integer and <= 19 digits"
func_error "REVISION '$revision' must be a nonnegative integer"
func_fatal_error "'$vinfo' is not valid version information" func_fatal_error "'$vinfo' is not valid version information"
;; fi
esac
case $age in if echo "$age" | $EGREP -v '(^0$)|(^[1-9]$)|(^[1-9][0-9]{1,4}$)' > /dev/null; then
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]) ;; func_error "AGE '$age' must be a nonnegative integer and <= 5 digits"
*)
func_error "AGE '$age' must be a nonnegative integer"
func_fatal_error "'$vinfo' is not valid version information" func_fatal_error "'$vinfo' is not valid version information"
;; fi
esac
if test "$age" -gt "$current"; then if test "$age" -gt "$current"; then
func_error "AGE '$age' is greater than the current interface number '$current'" func_error "AGE '$age' is greater than the current interface number '$current'"
@ -10022,7 +10123,7 @@ func_mode_link ()
if test -z "$export_symbols"; then if test -z "$export_symbols"; then
if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
func_verbose "generating symbol list for '$libname.la'" func_verbose "generating symbol list for '$libname.la'"
export_symbols=$output_objdir/$libname.exp export_symbols=$output_objdir/$libname.expsym
$opt_dry_run || $RM $export_symbols $opt_dry_run || $RM $export_symbols
cmds=$export_symbols_cmds cmds=$export_symbols_cmds
save_ifs=$IFS; IFS='~' save_ifs=$IFS; IFS='~'
@ -10288,7 +10389,7 @@ func_mode_link ()
${skipped_export-false} && { ${skipped_export-false} && {
func_verbose "generating symbol list for '$libname.la'" func_verbose "generating symbol list for '$libname.la'"
export_symbols=$output_objdir/$libname.exp export_symbols=$output_objdir/$libname.expsym
$opt_dry_run || $RM $export_symbols $opt_dry_run || $RM $export_symbols
libobjs=$output libobjs=$output
# Append the command to create the export file. # Append the command to create the export file.

640
m4/libtool.m4 vendored

File diff suppressed because it is too large Load Diff

58
m4/ltoptions.m4 vendored
View File

@ -1,6 +1,6 @@
# Helper functions for option handling. -*- Autoconf -*- # Helper functions for option handling. -*- Autoconf -*-
# #
# Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2024 Free # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2025 Free
# Software Foundation, Inc. # Software Foundation, Inc.
# Written by Gary V. Vaughan, 2004 # Written by Gary V. Vaughan, 2004
# #
@ -8,7 +8,7 @@
# unlimited permission to copy and/or distribute it, with or without # unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved. # modifications, as long as this notice is preserved.
# serial 10 ltoptions.m4 # serial 12 ltoptions.m4
# This is to help aclocal find these macros, as it can't see m4_define. # This is to help aclocal find these macros, as it can't see m4_define.
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
@ -80,6 +80,7 @@ m4_if([$1],[LT_INIT],[
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
_LT_UNLESS_OPTIONS([LT_INIT], [cxx-stdlib no-cxx-stdlib], [_LT_ENABLE_CXX_STDLIB])
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
[_LT_ENABLE_FAST_INSTALL]) [_LT_ENABLE_FAST_INSTALL])
_LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
@ -370,8 +371,16 @@ power*-*-aix[[5-9]]*,yes)
fi fi
fi fi
;; ;;
*) power*-*-aix[[5-9]]*,'')
AC_MSG_WARN([for $host, specify if building shared libraries for versioning (svr4|both)])
AC_MSG_CHECKING([which variant of shared library versioning to provide])
with_aix_soname=aix with_aix_soname=aix
AC_MSG_RESULT([(default) $with_aix_soname])
;;
*)
AC_MSG_CHECKING([which variant of shared library versioning to provide])
with_aix_soname=aix
AC_MSG_RESULT([(default) $with_aix_soname])
;; ;;
esac esac
@ -448,6 +457,49 @@ put the 'pic-only' option into LT_INIT's first parameter.])
dnl aclocal-1.4 backwards compatibility: dnl aclocal-1.4 backwards compatibility:
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
# _LT_ENABLE_CXX_STDLIB([MODE])
# --------------------
# implement the --enable-cxx-stdlib flag, and support the 'cxx-stdlib' and 'no-cxx-stdlib'
# LT_INIT options.
# MODE is either 'yes' or 'no'. If omitted, it defaults to 'no'.
m4_define([_LT_ENABLE_CXX_STDLIB],
[m4_define([_LT_ENABLE_CXX_STDLIB_DEFAULT], [m4_if($1, yes, yes, no)])dnl
stdlibflag=-nostdlib
AC_ARG_ENABLE([cxx-stdlib],
[AS_HELP_STRING([--enable-cxx-stdlib@<:@=PKGS@:>@],
[let the compiler frontend decide what standard libraries to link when building C++ shared libraries and modules @<:@default=]_LT_ENABLE_CXX_STDLIB_DEFAULT[@:>@])],
[p=${PACKAGE-default}
case $enableval in
yes) enable_cxx_stdlib=yes ;;
no) enable_cxx_stdlib=no ;;
*)
enable_cxx_stdlib=no
# Look at the argument we got. We use all the common list separators.
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
for pkg in $enableval; do
IFS=$lt_save_ifs
if test "X$pkg" = "X$p"; then
enable_cxx_stdlib=yes
fi
done
IFS=$lt_save_ifs
;;
esac],
[enable_cxx_stdlib=]_LT_ENABLE_CXX_STDLIB_DEFAULT)
if test yes = "$enable_cxx_stdlib"; then
stdlibflag=
fi
_LT_DECL([], [enable_cxx_stdlib], [0], [Whether to let the compiler frontend decide what standard libraries to link when building C++ shared libraries and modules])dnl
_LT_DECL([], [stdlibflag], [0], [Flag used for specifying not to link standard libraries])dnl
])# _LT_ENABLE_CXX_STDLIB
LT_OPTION_DEFINE([LT_INIT], [cxx-stdlib], [_LT_ENABLE_CXX_STDLIB([yes])])
LT_OPTION_DEFINE([LT_INIT], [no-cxx-stdlib], [_LT_ENABLE_CXX_STDLIB([no])])
## ----------------- ## ## ----------------- ##
## LTDL_INIT Options ## ## LTDL_INIT Options ##
## ----------------- ## ## ----------------- ##

2
m4/ltsugar.m4 vendored
View File

@ -1,6 +1,6 @@
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
# #
# Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2024 Free Software # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2025 Free Software
# Foundation, Inc. # Foundation, Inc.
# Written by Gary V. Vaughan, 2004 # Written by Gary V. Vaughan, 2004
# #

12
m4/ltversion.m4 vendored
View File

@ -1,6 +1,6 @@
# ltversion.m4 -- version numbers -*- Autoconf -*- # ltversion.m4 -- version numbers -*- Autoconf -*-
# #
# Copyright (C) 2004, 2011-2019, 2021-2024 Free Software Foundation, # Copyright (C) 2004, 2011-2019, 2021-2025 Free Software Foundation,
# Inc. # Inc.
# Written by Scott James Remnant, 2004 # Written by Scott James Remnant, 2004
# #
@ -10,15 +10,15 @@
# @configure_input@ # @configure_input@
# serial 4441 ltversion.m4 # serial 4509 ltversion.m4
# This file is part of GNU Libtool # This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [2.5.4]) m4_define([LT_PACKAGE_VERSION], [2.6.0])
m4_define([LT_PACKAGE_REVISION], [2.5.4]) m4_define([LT_PACKAGE_REVISION], [2.6.0])
AC_DEFUN([LTVERSION_VERSION], AC_DEFUN([LTVERSION_VERSION],
[macro_version='2.5.4' [macro_version='2.6.0'
macro_revision='2.5.4' macro_revision='2.6.0'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0) _LT_DECL(, macro_revision, 0)
]) ])

2
m4/lt~obsolete.m4 vendored
View File

@ -1,6 +1,6 @@
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
# #
# Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2024 Free # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2025 Free
# Software Foundation, Inc. # Software Foundation, Inc.
# Written by Scott James Remnant, 2004. # Written by Scott James Remnant, 2004.
# #