From: Gary V. Vaughan Date: Tue, 2 Oct 2012 11:08:29 +0000 (+0700) Subject: libtool: use false or : for $alldeplibs, and simplify X-Git-Tag: v2.4.2.418~168^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=934c0382de2f0e5bec53028281e2da6095d50872;p=thirdparty%2Flibtool.git 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 --- diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index ca4973489..c3b298563 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