Permalink
Browse files

autoconf: Checks for some programs

./configure script checks now for the following programs:
 * CC  - using AC_PROG_CC
 * AR  - using AC_CHECK_TOOL among ar
 * TAR - among gtar, tar

Checks not implemented:
 * INSTALL  - needs install-sh or install.sh in sources
 * RPMBUILD - not known alternatives for rpmbuild
 * PYTHON   - no PYTHON variable in Makefile,
              has to set NO_PYTHON if not present

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information...
1 parent ebdf532 commit fd22c0271b33227e651be456beb4cead934f5624 @jnareb jnareb committed with Junio C Hamano Jul 8, 2006
Showing with 12 additions and 0 deletions.
  1. +5 −0 config.mak.in
  2. +7 −0 configure.ac
View
@@ -1,6 +1,11 @@
# git Makefile configuration, included in main Makefile
# @configure_input@
+CC = @CC@
+AR = @AR@
+TAR = @TAR@
+#INSTALL = @INSTALL@ # needs install-sh or install.sh in sources
+
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
View
@@ -22,6 +22,13 @@ AC_DEFUN([GIT_CONF_APPEND_LINE],
## Checks for programs.
+AC_MSG_NOTICE([CHECKS for programs])
+
+AC_PROG_CC
+#AC_PROG_INSTALL # needs install-sh or install.sh in sources
+AC_CHECK_TOOL(AR, ar, :)
+AC_CHECK_PROGS(TAR, [gtar tar])
+
# Define NO_PYTHON if you want to loose all benefits of the recursive merge.

0 comments on commit fd22c02

Please sign in to comment.