Allow autogen even when Git is not installed

* autogen.sh: Test ‘git status’ before trying to use Git.
This commit is contained in:
Paul Eggert 2015-10-02 12:40:57 -07:00
parent a5c20339c5
commit 4cace70436

View file

@ -218,7 +218,7 @@ echo timestamp > src/stamp-h.in || exit
## Configure Git, if using Git.
if test -d .git; then
if test -d .git && (git status -s) >/dev/null 2>&1; then
# Configure 'git diff' hunk header format.