55# Prepare a package to use libtool.
66# Written by Gary V. Vaughan <[email protected] >, 200377
8- # Copyright (C) 2003-2019, 2021-2022 Free Software Foundation, Inc.
8+ # Copyright (C) 2003-2019, 2021-2024 Free Software Foundation, Inc.
99# This is free software; see the source for copying conditions. There is NO
1010# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1111
@@ -67,11 +67,11 @@ scriptversion=2019-02-19.15; # UTC
6767# This is free software. There is NO warranty; not even for
6868# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
6969#
70- # Copyright (C) 2004-2019, 2021 Bootstrap Authors
70+ # Copyright (C) 2004-2019, 2021, 2023-2024 Bootstrap Authors
7171#
7272# This file is dual licensed under the terms of the MIT license
73- # <https://opensource.org/license /MIT>, and GPL version 2 or later
74- # <http ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
73+ # <https://opensource.org/licenses /MIT>, and GPL version 2 or later
74+ # <https ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
7575# these licenses when using or redistributing this software or any of
7676# the files within it. See the URLs above, or the file `LICENSE`
7777# included in the Bootstrap distribution for the full license texts.
138138'
139139IFS=" $sp $nl "
140140
141- # There are apparently some retarded systems that use ';' as a PATH separator!
141+ # There are apparently some systems that use ';' as a PATH separator!
142142if test " ${PATH_SEPARATOR+set} " ! = set ; then
143143 PATH_SEPARATOR=:
144144 (PATH=' /bin;/bin' ; FPATH=$PATH ; sh -c :) > /dev/null 2>&1 && {
@@ -1531,11 +1531,11 @@ func_lt_ver ()
15311531# This is free software. There is NO warranty; not even for
15321532# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15331533#
1534- # Copyright (C) 2010-2019, 2021 Bootstrap Authors
1534+ # Copyright (C) 2010-2019, 2021, 2023-2024 Bootstrap Authors
15351535#
15361536# This file is dual licensed under the terms of the MIT license
1537- # <https://opensource.org/license /MIT>, and GPL version 2 or later
1538- # <http ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
1537+ # <https://opensource.org/licenses /MIT>, and GPL version 2 or later
1538+ # <https ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
15391539# these licenses when using or redistributing this software or any of
15401540# the files within it. See the URLs above, or the file `LICENSE`
15411541# included in the Bootstrap distribution for the full license texts.
@@ -2216,11 +2216,11 @@ func_version ()
22162216# This is free software. There is NO warranty; not even for
22172217# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22182218#
2219- # Copyright (C) 2010-2019, 2021 Bootstrap Authors
2219+ # Copyright (C) 2010-2019, 2021, 2023-2024 Bootstrap Authors
22202220#
22212221# This file is dual licensed under the terms of the MIT license
2222- # <https://opensource.org/license /MIT>, and GPL version 2 or later
2223- # <http ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
2222+ # <https://opensource.org/licenses /MIT>, and GPL version 2 or later
2223+ # <https ://www.gnu.org/licenses/gpl-2.0.html>. You must apply one of
22242224# these licenses when using or redistributing this software or any of
22252225# the files within it. See the URLs above, or the file `LICENSE`
22262226# included in the Bootstrap distribution for the full license texts.
@@ -2696,7 +2696,7 @@ test extract-trace = "$progname" && func_main "$@"
26962696# End:
26972697
26982698# Set a version string.
2699- scriptversion=' (GNU libtool) 2.4.7 '
2699+ scriptversion=' (GNU libtool) 2.5.3 '
27002700
27012701
27022702# # ---------------- ##
@@ -2754,13 +2754,13 @@ When reporting a bug, please describe a test case to reproduce it and
27542754include the following information:
27552755
27562756 host-triplet: x86_64-pc-msys
2757- version: $progname (GNU libtool) 2.4.7
2757+ version: $progname (GNU libtool) 2.5.3
27582758 automake: ` ($AUTOMAKE --version) 2> /dev/null | $SED 1q`
27592759 autoconf: ` ($AUTOCONF --version) 2> /dev/null | $SED 1q`
27602760
27612761Report bugs to <[email protected] >. 2762- GNU libtool home page: <http ://www.gnu.org/software/libtool/>.
2763- General help using GNU software: <http ://www.gnu.org/gethelp/>."
2762+ GNU libtool home page: <https ://www.gnu.org/software/libtool/>.
2763+ General help using GNU software: <https ://www.gnu.org/gethelp/>."
27642764 exit 0
27652765}
27662766
@@ -3151,7 +3151,7 @@ func_serial_max ()
31513151 my_sed_rest=' s/^[0-9][1-9]*\.*//'
31523152 my_sed_digits=' s/[^0-9.]//g'
31533153
3154- # Incase they turn out to be the same, we'll set it to empty
3154+ # In case they turn out to be the same, we'll set it to empty
31553155 func_serial_max_result=
31563156
31573157 test " X$1$2 " = X` $ECHO " $1$2 " | $SED " $my_sed_digits " ` || {
@@ -3292,6 +3292,8 @@ func_serial_update ()
32923292
32933293 test -f " $my_srcfile " || func_fatal_error " '$my_srcfile ' does not exist."
32943294
3295+ my_src_serial=
3296+ my_dest_serial=
32953297 if test -f " $my_destfile " ; then
32963298 my_src_serial=` func_serial " $my_srcfile " " $my_macro_regex " `
32973299 my_dest_serial=` func_serial " $my_destfile " " $my_macro_regex " `
@@ -3317,7 +3319,7 @@ func_serial_update ()
33173319 func_notquiet_hdr " $my_msg_var " " '$my_destfile ' is already up to date."
33183320 fi
33193321
3320- # Do this after the copy for hand maintained 'aclocal.m4', incase
3322+ # Do this after the copy for hand maintained 'aclocal.m4', in case
33213323 # it has 'm4_include([DESTFILE])', so the copy effectively already
33223324 # updated 'aclocal.m4'.
33233325 my_included_files=` func_included_files aclocal.m4`
@@ -3331,7 +3333,7 @@ func_serial_update ()
33313333 # serial tags, so the update message will be correctly given
33323334 # if aclocal.m4 contains an untagged --i.e older-- macro file):
33333335 * )
3334- if test -f aclocal.m4; then
3336+ if test -f aclocal.m4 && test ' ' ! = " $my_src_serial " ; then
33353337 func_serial_max \
33363338 " $my_src_serial " ` func_serial aclocal.m4 " $my_macro_regex " `
33373339 if test " X$my_src_serial " = " X$func_serial_max_result " ; then
@@ -3582,7 +3584,15 @@ func_install_pkgltdl_files ()
35823584 ;;
35833585
35843586 config-h.in)
3585- test subproject = " $ltdl_mode " || continue
3587+ test subproject = " $ltdl_mode " && {
3588+ # Always copy config-h.in, otherwise automake's autoheader rules
3589+ # will change the destination's timestamp if it is symlinked.
3590+ ( opt_copy=:
3591+ func_copy " $file " " $pkgltdldir " " $ltdl_dir " \
3592+ pkgltdl_header " $my_copy_filter "
3593+ )
3594+ }
3595+ continue
35863596 ;;
35873597
35883598 configure)
0 commit comments