From 8f95b1a2b15568bd6a78e96e4ef21c6a3749bbef Mon Sep 17 00:00:00 2001 From: Oneric Date: Thu, 16 Sep 2021 20:59:03 +0200 Subject: configure: relax check for .git For a top-level non-bare repository .git will be a directory, but for submodules .git is a regular textfile containing the relative path to the actual git-directory which will be subdir inside the toplevel repositories git-directory. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ab54167..89d5eb0 100644 --- a/configure.ac +++ b/configure.ac @@ -333,7 +333,7 @@ AM_COND_IF([ENABLE_LARGE_TILES], [ ]) ## Make a guess about the source code version -AS_IF([test -d "${srcdir}/.git"], [ +AS_IF([test -e "${srcdir}/.git"], [ AC_PATH_PROG([git_bin], [git]) AS_IF([test -n "$git_bin"], [ srcversion_string="commit: $("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --broken --abbrev=40)" -- cgit v1.2.3