* libltdl/config/general.m4sh (sed_make_literal_regex): New.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms,
func_cygming_dll_for_implib_fallback_core): Use it. Suggested
by Ralf Wildenhues.
+2010-08-15 Paolo Bonzini <bonzini@gnu.org>
+
+ Factor the sed command used to make a regex from a literal.
+ * libltdl/config/general.m4sh (sed_make_literal_regex): New.
+ * libltdl/config/ltmain.m4sh
+ (func_cygming_dll_for_implib_fallback_core): Use it. Suggested
+ by Ralf Wildenhues.
+
2010-08-21 Rainer Tammer <tammer@tammer.net> (tiny change)
Avoid issues with AIX resident shared libraries in old testsuite.
# Same as above, but do not quote variable references.
double_quote_subst='s/\(["`\\]\)/\\\1/g'
+# Sed substitution that turns a string into a regex matching for the
+# string literally.
+sed_make_literal_regex='s,[].[^$\\*/],\\\\&,g'
+
# Re-`\' parameter expansions in output of double_quote_subst that were
# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
# in input to double_quote_subst, that '$' was protected from expansion.
func_cygming_dll_for_implib_fallback_core ()
{
$opt_debug
- match_literal=`$ECHO "$1" | $SED 's/[].[^$\\*|]/\\\\&/g'`
+ match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
$OBJDUMP -s --section "$1" "$2" 2>/dev/null |
$SED '/^Contents of section '"$match_literal"':/{
# Place marker at beginning of archive member dllname section