[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
From: |
Paolo Bonzini |
Subject: |
[PATCH] Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test. |
Date: |
Wed, 15 Oct 2008 15:59:42 +0200 |
Further testing of Libtool revealed the need for this obvious patchlet.
Otherwise, the prolog fails the stricter syntax checking of Libtool's
sh.test.
---
lib/m4sugar/m4sh.m4 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
2008-10-15 Paolo Bonzini <address@hidden>
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
"test x$foo = xyes".
diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4
index 0a2abe6..64cc8db 100644
--- a/lib/m4sugar/m4sh.m4
+++ b/lib/m4sugar/m4sh.m4
@@ -202,7 +202,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],
@@ -233,7 +233,7 @@ dnl Remove any tests from suggested that are also required
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$as_myself" ${1+"address@hidden"}])
- 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
@@ -377,7 +377,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
--
1.5.5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.,
Paolo Bonzini <=