]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 15 Oct 2008 13:59:42 +0000 (15:59 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Wed, 15 Oct 2008 14:04:08 +0000 (16:04 +0200)
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
"test x$foo = xyes".

ChangeLog
lib/m4sugar/m4sh.m4

index 7cbb670420d7c2389a9ef1aae9571b68ea7c78e5..b22ad65d060c7c325adda2ffee9acad91200f5ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
+
+       Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
+       * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
+       "test x$foo = xyes".
+
 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
 
        Trim down the size of the better-shell test.
index 20b57724141d97d0c472662417800f127cb84bdc..983e2e09f70eba7426e1ba5d3f8010294268f0e8 100644 (file)
@@ -203,7 +203,7 @@ dnl Remove any tests from suggested that are also required
     AS_IF([_AS_RUN(["$as_required"])],
          [as_have_required=yes],
          [as_have_required=no])])
-  AS_IF([test $as_have_required = yes && _AS_RUN(["$as_suggested"])],
+  AS_IF([test x$as_have_required = xyes && _AS_RUN(["$as_suggested"])],
     [],
     [as_candidate_shells=
     _AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
@@ -231,7 +231,7 @@ dnl Remove any tests from suggested that are also required
        export CONFIG_SHELL
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$[@]"}])
 
-    AS_IF([test $as_have_required = no],
+    AS_IF([test x$as_have_required = xno],
       [echo This script requires a shell more modern than all the
       echo shells that I found on your system.  Please install a
       echo modern shell, or manually run the script under such a
@@ -374,7 +374,7 @@ AS_IF([as_func_ret_failure],
 AS_IF([( set x; as_func_ret_success y && test x = "[$]1" )], [],
   [exitcode=1
   echo positional parameters were not saved.])
-test $exitcode = 0[]dnl
+test x$exitcode = x0[]dnl
 ])# _AS_SHELL_FN_WORK