aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-13 02:26:04 -0400
committerTimothy Gu <timothygu99@gmail.com>2015-09-15 14:58:48 -0700
commit6d1801b5aaf9b384e13adffff4ab5886dae65693 (patch)
treeec1cbd364188412d7603f719144fca695d28090c /configure
parent164cd9b42af7104edce84c6ba53d5c15fdd6d8d8 (diff)
downloadffmpeg-6d1801b5aaf9b384e13adffff4ab5886dae65693.tar.gz
configure: make assignment of variable to '=' explicit
op== is confusing, as it may easily be mistook for an equality check, while in reality it is doing an assigment to '='. This patch has the additional benefit of cleaning up 2 warnings from shellcheck.net. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index da18e7008f..2fb625babd 100755
--- a/configure
+++ b/configure
@@ -622,12 +622,12 @@ enable_deep_weak(){
}
enabled(){
- test "${1#!}" = "$1" && op== || op=!=
+ test "${1#!}" = "$1" && op='=' || op=!=
eval test "x\$${1#!}" $op "xyes"
}
disabled(){
- test "${1#!}" = "$1" && op== || op=!=
+ test "${1#!}" = "$1" && op='=' || op=!=
eval test "x\$${1#!}" $op "xno"
}