summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2021-12-15 22:14:31 +0100
committerOneric <oneric@oneric.stub>2021-12-18 21:47:27 +0100
commitbff29f732e11e14b49d569b7e2651d03e04d7bd5 (patch)
tree48b5cd5d457da4cd888f628db02855f0a3b3c100
parenta5f81c90e397278df3e554027699301b3dcc984e (diff)
downloadlibass-bff29f732e11e14b49d569b7e2651d03e04d7bd5.tar.bz2
libass-bff29f732e11e14b49d569b7e2651d03e04d7bd5.tar.xz
configure: try to get sourceversion without --broken
--broken implies --dirty, but the former is only available since 2017
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8c95a4c..cf9b0b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -338,8 +338,9 @@ AM_COND_IF([ENABLE_LARGE_TILES], [
AS_IF([test -e "${srcdir}/.git"], [
AC_PATH_PROG([git_bin], [git])
AS_IF([test -n "$git_bin"], [
- tmp="$("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --broken --abbrev=40 2>/dev/null)"
- test "$?" -eq 0 || tmp="failed to get commit"
+ tmp="$("$git_bin" -C "$srcdir" describe --tags --long --always --broken --abbrev=40 2>/dev/null)" \
+ || tmp="$("$git_bin" -C "$srcdir" describe --tags --long --always --dirty --abbrev=40 2>/dev/null)" \
+ || tmp="failed to determine (>= AC_PACKAGE_VERSION)"
srcversion_string="commit: $tmp"
], [
srcversion_string="custom after: AC_PACKAGE_VERSION"