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:41 +0700
commit934c0382de2f0e5bec53028281e2da6095d50872 (patch)
tree6d50444f1e31b57958971266daeff6b2b8fcc32e
parentfd1151fe85235b89ed0023c2d894dd117efaa03c (diff)
downloadlibtool-934c0382de2f0e5bec53028281e2da6095d50872.tar.gz
libtool: use false or : for $alldeplibs, and simplify
* build-aux/ltmain.m4sh (func_mode_link): Save a string comparison by setting $alldeplibs 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 ca497348..c3b29856 100644
--- a/build-aux/ltmain.m4sh
+++ b/build-aux/ltmain.m4sh
@@ -5333,7 +5333,7 @@ func_mode_link ()
prog)
compile_deplibs=
finalize_deplibs=
- alldeplibs=no
+ alldeplibs=false
newdlfiles=
newdlprefiles=
passes="conv scan dlopen dlpreopen link"
@@ -5622,7 +5622,7 @@ func_mode_link ()
continue
;;
%DEPLIBS%)
- alldeplibs=yes
+ alldeplibs=:
continue
;;
esac # case $deplib
@@ -5913,7 +5913,7 @@ func_mode_link ()
esac
fi # $linkmode,$pass = prog,link...
- if test yes = "$alldeplibs" &&
+ if $alldeplibs &&
{ test pass_all = "$deplibs_check_method" ||
{ test yes = "$build_libtool_libs" &&
test -n "$library_names"; }; }; then