]> git.lizzy.rs Git - rust.git/commitdiff
Remove a warning (./configure: 1140: [: unexpected operator) when built with --disab...
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 5 Jun 2014 13:17:59 +0000 (15:17 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 5 Jun 2014 13:18:11 +0000 (15:18 +0200)
configure

index 38cf29652e59924733466b167b3c9fbf8d8e5bb4..e3cf990d47ca9da955c31ec09907b4fa1f24e03f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1136,7 +1136,7 @@ do
         CXXFLAGS=$LLVM_CXXFLAGS
         LDFLAGS=$LLVM_LDFLAGS
 
-        if [ "$CFG_DISABLE_LIBCPP" != 1 ] && [ "$CFG_USING_CLANG" == 1 ]; then
+        if [ -z "$CFG_DISABLE_LIBCPP" ] && [ -n "$CFG_USING_CLANG" ]; then
             LLVM_OPTS="$LLVM_OPTS --enable-libcpp"
         fi