]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: use false or : for $alldeplibs, 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:41 +0000 (21:06 +0700)
* 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>
build-aux/ltmain.m4sh

index ca4973489b76820f3863cefc0be79f481c0756d2..c3b2985635bece35f6927b6387d37f3cfcf68ae0 100644 (file)
@@ -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