]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: Replace all test "-a"s by "&& test"
authorJens Petersen <petersen@redhat.com>
Thu, 6 Dec 2001 19:34:36 +0000 (19:34 +0000)
committerRobert Boehne <rboehne@gnu.org>
Thu, 6 Dec 2001 19:34:36 +0000 (19:34 +0000)
for portability.

ChangeLog
ltmain.in

index 4a133ded99a85b880f6445250e726f666e5a4d83..3a511b699601ec75243c9edf815a1ae929efd66d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-06  Jens Petersen  <petersen@redhat.com>
+
+       * ltmain.in: Replace all test "-a"s by "&& test"
+       for portability.
+
 2001-11-28  Robert Boehne  <rboehne@ricardo-us.com>
 
        * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Change the
index 4af517a6aa5d4be98ab7918bd3c4ab5b6216e3b7..e52017d304092b6439aa77fd2e5e8a32a7c70b51 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2898,7 +2898,7 @@ EOF
            for i in $deplibs; do
              name="`expr $i : '-l\(.*\)'`"
              # If $name is empty we are operating on a -L argument.
-             if test "$name" != "" -a "$name" -ne "0"; then
+             if test "$name" != "" && test "$name" -ne "0"; then
                libname=`eval \\$echo \"$libname_spec\"`
                deplib_matches=`eval \\$echo \"$library_names_spec\"`
                set dummy $deplib_matches
@@ -2925,7 +2925,7 @@ EOF
            for i in $deplibs; do
              name="`expr $i : '-l\(.*\)'`"
             # If $name is empty we are operating on a -L argument.
-             if test "$name" != "" -a "$name" != "0"; then
+             if test "$name" != "" && test "$name" != "0"; then
                $rm conftest
                $LTCC -o conftest conftest.c $i
                # Did it work?
@@ -2967,7 +2967,7 @@ EOF
          for a_deplib in $deplibs; do
            name="`expr $a_deplib : '-l\(.*\)'`"
            # If $name is empty we are operating on a -L argument.
-           if test "$name" != "" -a "$name" != "0"; then
+           if test "$name" != "" && test  "$name" != "0"; then
              libname=`eval \\$echo \"$libname_spec\"`
              for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
                    potential_libs=`ls $i/$libname[.-]* 2>/dev/null`