libtool-patches
[Top][All Lists]
Advanced

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

Fix sh == in Makefile.am


From: Albert Chin
Subject: Fix sh == in Makefile.am
Date: Sun, 5 Sep 2004 18:38:49 -0500
User-agent: Mutt/1.5.6i

Testing for equality with '==' is a bashism. This breaks on at least
AIX, HP-UX, and Tru64 UNIX.

-- 
albert chin (address@hidden)

-- snip snip
2004-09-05  Albert Chin-A-Young  <address@hidden>

        * Makefile.am: Using '==' to test for equality in a
        shell script is not portable. Use '=' instead.

Index: Makefile.am
===================================================================
RCS file: /cvsroot/libtool/libtool/Makefile.am,v
retrieving revision 1.126
diff -u -3 -p -r1.126 Makefile.am
--- Makefile.am 5 Sep 2004 18:00:56 -0000       1.126
+++ Makefile.am 5 Sep 2004 23:37:22 -0000
@@ -80,7 +80,7 @@ vcl-tmp:
 ## previous builds left behind in the build tree, that would override the
 ## source tree version in current builds.
 clean-ltmain-sh:
-       @-test "$(top_srcdir)" == "$(top_builddir)" || \
+       @-test "$(top_srcdir)" = "$(top_builddir)" || \
          rm -f "$(top_builddir)/config/ltmain.sh"
 
 # We build ltversion.m4 here, instead of from config.status,




reply via email to

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