From 72f307c5563bc1d8c1033d8ad0f560d4d1f87874 Mon Sep 17 00:00:00 2001
From: Ghislain MARY <ghislain.mary@belledonne-communications.com>
Date: Fri, 9 Nov 2012 10:49:15 +0100
Subject: [PATCH] Fix compilation if git is not installed.

---
 coreapi/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/coreapi/Makefile.am b/coreapi/Makefile.am
index 0c10c05da3..a984799b90 100644
--- a/coreapi/Makefile.am
+++ b/coreapi/Makefile.am
@@ -117,6 +117,9 @@ make_gitversion_h:
 	else \
 		$(ECHO) -n "" > $(GITVERSION_FILE_TMP) ; \
 	fi
+	if test ! -f $(srcdir)/$(GITVERSION_FILE) ; then \
+		cp -f $(GITVERSION_FILE_TMP) $(srcdir)/$(GITVERSION_FILE) ; \
+	fi
 	if test "`cat $(GITVERSION_FILE_TMP)`" != "`cat $(srcdir)/$(GITVERSION_FILE)`" ; then \
 		cp -f $(GITVERSION_FILE_TMP) $(srcdir)/$(GITVERSION_FILE) ; \
 	fi
-- 
GitLab