libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Do not use `test ... -a ...'.


From: Ralf Wildenhues
Subject: Do not use `test ... -a ...'.
Date: Tue, 11 Nov 2008 22:57:27 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Spotted, and pushed this trivial patch.  (Yes, on HP-UX all shells know
this, but being consistent is easy here.)

Cheers,
Ralf

        Do not use `test ... -a ...'.
        * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [hpux10, hpux11]:
        Replace test -a with test && test.

diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 0b2f320..461e3cd 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -4783,7 +4783,7 @@ _LT_EOF
       ;;
 
     hpux10*)
-      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname 
${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
       else
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o 
$lib $libobjs $deplibs $linker_flags'
@@ -4802,7 +4802,7 @@ _LT_EOF
       ;;
 
     hpux11*)
-      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
        case $host_cpu in
        hppa*64*)
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o 
$lib $libobjs $deplibs $compiler_flags'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]