summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2013-02-25 18:53:24 -0300
committerRafael Antognolli <rafael.antognolli@linux.intel.com>2013-02-25 18:53:24 -0300
commit8a20e32157ba0fee682a35bf9346d4cbc18826a4 (patch)
treed5ea0c96cd582377592a32ade90007a15c882df9 /configure.ac
parente9d30220866be24c46da840db7372c821d068f09 (diff)
When configuring the source outside of the git tree
(i.e. git checkout-index ...), 'git rev-list --count HEAD' will fail. Thus, just set v_rev to 0 like we did when this was an svn managed project. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Diffstat (limited to '')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e5647f2fb..494d0bf75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
3m4_define([v_maj], [1]) 3m4_define([v_maj], [1])
4m4_define([v_min], [7]) 4m4_define([v_min], [7])
5m4_define([v_mic], [99]) 5m4_define([v_mic], [99])
6m4_define([v_rev], m4_esyscmd([git rev-list --count HEAD | tr -d '\n']))dnl 6m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
7##-- When released, remove the dnl on the below line 7##-- When released, remove the dnl on the below line
8dnl m4_undefine([v_rev]) 8dnl m4_undefine([v_rev])
9##-- When doing snapshots - change soname. remove dnl on below line 9##-- When doing snapshots - change soname. remove dnl on below line