Commits

Akira TAGOH committed 2801e7c

Use AM_MISSING_PROG instead of hardcoding missing

  • Participants
  • Parent commits 23b0cb0

Comments (0)

Files changed (2)

 ##
 ChangeLog: $(srcdir)/ChangeLog
 $(srcdir)/ChangeLog:
-	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then	\
-	 (GIT_DIR=$(top_srcdir)/.git ./missing --run	\
-	  git log --stat) | fmt --split-only > $@.tmp	\
-	 && mv -f $@.tmp $@				\
-	 || ($(RM) $@.tmp;				\
+	$(AM_V_GEN) if test -d "$(srcdir)/.git"; then		\
+	 (GIT_DIR=$(top_srcdir)/.git $(GIT) log --stat) |	\
+	 fmt --split-only > $@.tmp				\
+	 && mv -f $@.tmp $@					\
+	 || ($(RM) $@.tmp;					\
 	     echo Failed to generate ChangeLog.  your ChangeLog may be outdated >&2;	\
 	     (test -f $@ || echo git-log is required to genereate this file >> $@));	\
-	 else						\
-	   test -f $@ || 				\
+	 else							\
+	   test -f $@ || 					\
 	   (echo A git checkout and git-log is required to genereate ChangeLog >&2 &&	\
 	    echo A git checkout and git-log is required to genereate this file >> $@);	\
 	fi

File configure.ac

 
 AM_PATH_PYTHON
 
+AM_MISSING_PROG([GIT], [git])
+
 dnl ======================================================================
 dnl gettext stuff
 dnl ======================================================================