summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2012-10-02 18:08:29 +0700
committerGary V. Vaughan <gary@gnu.org>2012-10-02 21:06:27 +0700
commit7ce429c52729130b360206c61396ffe2f5467134 (patch)
treec01ee05c1794e8b01c750bdb481044f22ce7e162
parent7510fd8bedafad915a10bb7a50e9bd45c9a34f8e (diff)
downloadlibtool-7ce429c52729130b360206c61396ffe2f5467134.tar.gz
libtool: use false or : for $finalize, and simplify
* 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>
-rw-r--r--build-aux/ltmain.m4sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
index 22bb232b..9771fcf0 100644
--- a/build-aux/ltmain.m4sh
+++ b/build-aux/ltmain.m4sh
@@ -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