]> granicus.if.org Git - python/commitdiff
handle an empty OPT variable correctly #8100
authorBenjamin Peterson <benjamin@python.org>
Tue, 9 Mar 2010 21:43:36 +0000 (21:43 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 9 Mar 2010 21:43:36 +0000 (21:43 +0000)
configure
configure.in

index 56e6030f345472c731cabfe32c9cc7fca7623b3e..90bcad4c50d7944528cdc4f33a331a426ec1f38a 100755 (executable)
--- a/configure
+++ b/configure
@@ -4596,7 +4596,7 @@ fi
 # tweak OPT based on compiler and platform, only if the user didn't set
 # it on the command line
 
-if test -z "$OPT"
+if test "${OPT-unset}" == "unset"
 then
     case $GCC in
     yes)
index 7d14bfdfe98ddf6f7c0fe18a14b97dfcedb4c63f..5491778a0abcfd10fd7cb7248ec214d63c60d8aa 100644 (file)
@@ -881,7 +881,7 @@ fi],
 # tweak OPT based on compiler and platform, only if the user didn't set
 # it on the command line
 AC_SUBST(OPT)
-if test -z "$OPT"
+if test "${OPT-unset}" == "unset"
 then
     case $GCC in
     yes)