[librsvg: 1/2] Avoid unportable test(1) operator
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/2] Avoid unportable test(1) operator
- Date: Tue, 27 Nov 2018 20:56:13 +0000 (UTC)
commit 5838eacc34a3e2823beae59b62d135844bfa426c
Author: Maya Rashish <coypu sdf org>
Date: Tue Nov 27 14:02:48 2018 +0200
Avoid unportable test(1) operator
= and == are both string comparisons, but only '=' is part of POSIX.
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2ed2d284..ece758bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -268,7 +268,7 @@ AC_ARG_ENABLE(debug,
[Build Rust code with debugging information [default=no]]),
[debug_release=$enableval],
[
- if test "x$LIBRSVG_DEBUG" == "x"; then
+ if test "x$LIBRSVG_DEBUG" = "x"; then
debug_release="no"
elif test "x$LIBRSVG_DEBUG" = "xyes"; then
debug_release="yes"
@@ -288,7 +288,7 @@ fi
AM_CONDITIONAL([DEBUG_RELEASE], [test "x$debug_release" = "xyes"])
AC_ARG_VAR(RUST_TARGET, [Set rust target (default=$host)])
-if test "x$RUST_TARGET" == x; then
+if test "x$RUST_TARGET" = x; then
RUST_TARGET=$host
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]