Add proper test for an installed version of git. Bail if git is not
authorMichael Rasmussen <mir@datanom.net>
Thu, 2 May 2013 18:01:20 +0000 (20:01 +0200)
committerMichael Rasmussen <mir@datanom.net>
Thu, 2 May 2013 18:01:20 +0000 (20:01 +0200)
found on path.

configure.ac

index 12430e9470e62f93fe3bf8f8bf4d2d89541ee8da..ab78d58ae1ef4723cc6855c5a60582753d684399 100644 (file)
@@ -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