]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
syntax-check: remove useless_braces_in_variable_derefs.
authorGary V. Vaughan <gary@gnu.org>
Sun, 16 Sep 2012 10:47:04 +0000 (17:47 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:06:06 +0000 (21:06 +0700)
* build-aux/general.m4sh: Remove spurious braces around
${ZSH_VERSION} dereference.
* build-aux/ltmain.m4sh (func_mode_link): Likewise for ${wl}.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/general.m4sh
build-aux/ltmain.m4sh

index 2a448d03081a297393244dce7821d6b2aee7c3a4..cc1bce6f245df37995e1b03027ae3da330324044 100644 (file)
@@ -78,7 +78,7 @@ basename='s|^.*/||'
 # We should try to minimise forks, especially on Windows where they are
 # unreasonably slow, so skip the feature probes when bash or zsh are
 # being used:
-if test set = "${BASH_VERSION+set}${ZSH_VERSION}"; then
+if test set = "${BASH_VERSION+set}$ZSH_VERSION"; then
     : ${lt_HAVE_ARITH_OP="yes"}
     : ${lt_HAVE_XSI_OPS="yes"}
     # The += operator was introduced in bash 3.1
index 52d2026784e6dcde2de121c282a114b441acec6d..e2d30b0fb27f60754cecd0cf1e9d9cdabe12550b 100644 (file)
@@ -6652,7 +6652,7 @@ func_mode_link ()
           # On Darwin other compilers
           case $CC in
               nagfor*)
-                  verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+                  verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
                   ;;
               *)
                   verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"