From fb56fc5bfc914dadadacf60b92068f1b25601d78 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Thu, 2 May 2013 20:01:20 +0200 Subject: [PATCH 1/1] Add proper test for an installed version of git. Bail if git is not found on path. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 12430e947..ab78d58ae 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,11 @@ BINARY_AGE=0 EXTRA_RELEASE= EXTRA_GTK2_VERSION= +AC_CHECK_PROG([GIT], [git], [yes], [no], [$PATH]) +if test \( "$GIT" = "no" \); then + AC_MSG_ERROR([*** git not found. See http://git-scm.com/]) +fi + if test \( -d .git \); then GIT_VERSION=`git describe --abbrev=6 --dirty --always` else -- 2.25.1