]> git.ipfire.org Git - thirdparty/libtool.git/commit
getopt.m4sh generated libtool option parser, and XSI improvements.
authorGary V. Vaughan <gary@gnu.org>
Fri, 11 Jun 2010 17:12:09 +0000 (00:12 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sat, 26 Jun 2010 17:13:42 +0000 (00:13 +0700)
commitb8dd17aeba9ae235d189b30ce38d64ba0ff2a309
tree5e789790df788d7597335dfdba7aeeff691f1bfa
parentec9de9a8aff88eb4b0bd2a19e713ae82aef37006
getopt.m4sh generated libtool option parser, and XSI improvements.

* libltdl/m4/libtool.m4 (_LT_PROG_XSI_SHELLFNS): Moved portable
shell versions of various utility functions from here...
* libltdl/config/getopt.m4sh (func_split_long_opt): ...to here...
* libltdl/config/general.m4sh (func_dirname, func_basename)
(func_dirname_and_basename, func_strip_name): ...here...
* libltdl/config/ltmain.m4sh (func_append, func_arith, func_len)
(func_lo2o, func_xform): ...and here.
* libltdl/config/libtool.m4 (_LT_PROG_XSI_REPLACE): New macro that
expands into a sed command for replacing the contents of a
suitably decorated shell function with an alternate XSI
implementation.
(_LT_PROG_XSI_SHELLFNS): Use it to replace the portable shell
versions of the functions above with equivalent XSI
implementations that avoid unnecessary forks if the host shell
supports that.
* libltdl/config/ltmain.m4sh: Replace hand written shell code
with a call to M4SH_GETOPTS. Rename some option variables in
the client code to match the generated option parser settings.
* libltdl/config/general.m4sh (func_echo, func_error)
(func_warning): Use $opt_mode instead of obsoleted $mode in
message leader.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
ChangeLog
libltdl/config/general.m4sh
libltdl/config/getopt.m4sh
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4