]> git.lizzy.rs Git - rust.git/commitdiff
configure: Cleanup
authorBrian Anderson <banderson@mozilla.com>
Wed, 29 Feb 2012 19:48:29 +0000 (11:48 -0800)
committerBrian Anderson <banderson@mozilla.com>
Thu, 8 Mar 2012 20:57:40 +0000 (12:57 -0800)
configure

index 153cfa22d8ef558a0a80d943ec5d29e5e5173bae..3e48a8f3c2f1c396a41da1518f208e91a287dfab 100755 (executable)
--- a/configure
+++ b/configure
@@ -306,10 +306,11 @@ probe_need CFG_CURL        curl
 # and shouldn't attempt to load submodules
 if [ ! -e ${CFG_SRC_DIR}.git ]
 then
+    probe CFG_GIT          git
     msg "git: no git directory. disabling submodules"
     CFG_DISABLE_MANAGE_SUBMODULES=1
 else
-    probe_need CFG_GIT              git
+    probe_need CFG_GIT     git
 fi
 
 probe CFG_CLANG            clang++
@@ -482,14 +483,6 @@ done
 # Configure submodules
 step_msg "configuring submodules"
 
-# If we have no git directory then we are probably a tarball distribution
-# and shouldn't attempt to load submodules
-if [ ! -e ${CFG_SRC_DIR}.git ]
-then
-    msg "git: no git directory. disabling submodules"
-    CFG_DISABLE_MANAGE_SUBMODULES=1
-fi
-
 # Have to be in the top of src directory for this
 if [ -z $CFG_DISABLE_MANAGE_SUBMODULES ]
 then
@@ -679,14 +672,8 @@ putvar CFG_PREFIX
 putvar CFG_TARGET_TRIPLES
 putvar CFG_C_COMPILER
 putvar CFG_LIBDIR
+putvar CFG_DISABLE_MANAGE_SUBMODULES
 
-# Setting this again because it may have been changed
-if [ $CFG_DISABLE_MANAGE_SUBMODULES ]
-then
-    putvar CFG_DISABLE_MANAGE_SUBMODULES
-fi
-
-# Ditto for pandoc
 if [ ! -z $BAD_PANDOC ]
 then
     CFG_PANDOC=