OSDN Git Service

configure: Simplify, remove an unnecessary intermediate variable
authorMartin Storsjö <martin@martin.st>
Mon, 27 Jul 2015 06:40:28 +0000 (09:40 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 27 Jul 2015 07:44:44 +0000 (10:44 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
configure

index 66edc14..5645936 100755 (executable)
--- a/configure
+++ b/configure
@@ -4693,8 +4693,7 @@ EOF
 fi
 
 for pfx in "" host_; do
-    pfx_no_=${pfx%_}
-    varname=${pfx_no_}cc_type
+    varname=${pfx%_}cc_type
     eval "type=\$$varname"
     if [ $type = "msvc" ]; then
         check_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline