From: Gary V. Vaughan Date: Wed, 11 Jul 2001 22:27:31 +0000 (+0000) Subject: * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf, X-Git-Tag: release-1-4d~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f70bf484b3302987432b0c80c4d91b721e8f5ccc;p=thirdparty%2Flibtool.git * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf, solaris]: output_verbose_link_cmd have unquoted `*' in case statements for these architectures. Be sure to quote them with a sed expression before passing to eval. Reported by Tim Mooney --- diff --git a/ChangeLog b/ChangeLog index 1486d1270..7c9e499eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-07-11 Gary V. Vaughan + + * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf, + solaris]: output_verbose_link_cmd have unquoted `*' in case + statements for these architectures. Be sure to quote them + with a sed expression before passing to eval. + Reported by Tim Mooney + 2001-07-09 Gary V. Vaughan * README-alpha: s/configure.in/configure.ac. diff --git a/NEWS b/NEWS index 5f175c479..a43997c75 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ NEWS - list of user-visible changes between releases of GNU Libtool -New in 1.4b: 2001-??-??; CVS version 1.4a, Libtool team: +New in 1.4b: 2001-07-09; CVS version 1.4a, Libtool team: * Now bootstraps with autoconf-2.50 and automake-1.4-p4. * Always try to build at least a static lib, even if both static and shared libs were disabled. diff --git a/libtool.m4 b/libtool.m4 index acfea7183..07d59509e 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -126,6 +126,9 @@ Xsed='sed -e s/^X//' # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + # Constants: rm="rm -f" @@ -2862,7 +2865,12 @@ if AC_TRY_EVAL(ac_compile); then # the conftest object file. pre_test_object_deps_done=no - for p in `eval $output_verbose_link_cmd`; do + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" + + for p in `eval "$output_verbose_link_cmd"`; do case $p in