]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: use false or : for $finalize, and simplify
authorGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:06:27 +0000 (21:06 +0700)
* build-aux/ltmain.m4sh (func_mode_install): Save a string
comparison by setting $finalize to false or : and using it
directly as the first argument to if.

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

index 22bb232bc5a071ac4d7638860a4acee7cb1f08a9..9771fcf0b2e205d1c499e0e08e64c813deb99576 100644 (file)
@@ -2348,7 +2348,7 @@ func_mode_install ()
          test -z "$generated_by_libtool_version" && \
            func_fatal_error "invalid libtool wrapper script \`$wrapper'"
 
-         finalize=yes
+         finalize=:
          for lib in $notinst_deplibs; do
            # Check to see that each library is installed.
            libdir=
@@ -2358,7 +2358,7 @@ func_mode_install ()
            libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
            if test -n "$libdir" && test ! -f "$libfile"; then
              func_warning "\`$lib' has not been installed in \`$libdir'"
-             finalize=no
+             finalize=false
            fi
          done
 
@@ -2368,7 +2368,7 @@ func_mode_install ()
          outputname=
          if test no = "$fast_install" && test -n "$relink_command"; then
            $opt_dry_run || {
-             if test yes = "$finalize"; then
+             if $finalize; then
                tmpdir=`func_mktempdir`
                func_basename "$file$stripped_ext"
                file=$func_basename_result