Code

configure: Allow --without-python
authorBen Walton <bwalton@artsci.utoronto.ca>
Mon, 1 Feb 2010 02:15:05 +0000 (21:15 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Feb 2010 21:03:55 +0000 (13:03 -0800)
This patch allows someone to use configure to build git while at the
same time disabling the python remote helper code.  It leverages the
ability of GIT_ARG_SET_PATH to accept an optional second argument
indicating that --without-$PROGRAM is acceptable.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac

index 995abe46dca8e458319c7c9c05cea7a27ff67672..e6be739ebff7b90ea87ca32061977a246f3570de 100644 (file)
@@ -288,7 +288,7 @@ GIT_ARG_SET_PATH(shell)
 GIT_ARG_SET_PATH(perl)
 #
 # Define PYTHON_PATH to provide path to Python.
-GIT_ARG_SET_PATH(python)
+GIT_ARG_SET_PATH(python, allow-without)
 #
 # Define ZLIB_PATH to provide path to zlib.
 GIT_ARG_SET_PATH(zlib)