libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] getopt.m4sh generated libtool option parser, and XSI improve


From: Gary V. Vaughan
Subject: Re: [PATCH] getopt.m4sh generated libtool option parser, and XSI improvements.
Date: Wed, 23 Jun 2010 13:18:38 +0700

I forgot to commit the following chunk before extracting the
patch from git:

diff --git a/libltdl/config/getopt.m4sh b/libltdl/config/getopt.m4sh
index 1487755..76f9d35 100644
--- a/libltdl/config/getopt.m4sh
+++ b/libltdl/config/getopt.m4sh
@@ -49,6 +49,13 @@ m4_pattern_forbid([^_?m4go_])
 ## 1. Backwards compatibility. ##
 ## --------------------------- ##
 
+# We prefer m4sugar.m4 from Autoconf-2.64, but have fallbacks in this
+# section that work back as far as Autoconf-2.61.  This file is used
+# at bootstrap time to generate the shell processing loop for ltmain.sh
+# and libtoolize.in, so it's okay for the requirement to be tighter
+# than the configure time Autoconf prerequisite version.
+m4_version_prereq([2.61])
+
 # m4_chomp(STRING)
 # ----------------
 # m4_chomp was not introduced until Autoconf-2.64.  Currently we

Assuming this is rolled in too, okay to push?

On 23 Jun 2010, at 03:23, Gary V. Vaughan wrote:
> * 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 <address@hidden>

Cheers,
-- 
Gary V. Vaughan (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]