summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-03-24 19:30:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-03-24 19:30:28 -0700
commit438dec1bd1ffbcfe2281ef21ccbede56b3fef272 (patch)
tree12f1b4211ca30adea15dc5cadd0e9eb3c676ddd9 /configure
parent622f87134be4d14aefac13f3c3013d08ebe7c5d0 (diff)
downloadtxr-438dec1bd1ffbcfe2281ef21ccbede56b3fef272.tar.gz
txr-438dec1bd1ffbcfe2281ef21ccbede56b3fef272.tar.bz2
txr-438dec1bd1ffbcfe2281ef21ccbede56b3fef272.zip
* Makefile (enforce): Update error error message.
* configure (have_git): Don't set this variable if the TXR repository is missing, even if git is installed. I.e. have_git means have have the tool and the repo.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 10 insertions, 6 deletions
diff --git a/configure b/configure
index 7606a252..f813978c 100755
--- a/configure
+++ b/configure
@@ -719,14 +719,18 @@ conftest_syms()
#
# Check for git because we use it out of the Makefile
+# But this is pointless if we have no git repo.
+# "have_git" means we have a repo, and git.
#
-printf "Checking whether we have git ... "
+if [ -d $top_srcdir/.git ] ; then
+ printf "Checking whether we have git ... "
-if git --version > /dev/null 2> /dev/null ; then
- have_git=y
- printf "yes\n"
-else
- printf "missing\n"
+ if git --version > /dev/null 2> /dev/null ; then
+ have_git=y
+ printf "yes\n"
+ else
+ printf "missing\n"
+ fi
fi
#