git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/5] autoconf: Check for subprocess.py

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 4, 2006, 22:57 UTC
Message-ID
<200609050057.46030.jnareb@gmail.com>
In-Reply-To
<200609050054.24279.jnareb@gmail.com>

Add custom test for checking if Python comes with subprocess.py, or should we use our own subprocess.py by defining WITH_OWN_SUBPROCESS_PY.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
Taken from Makefile.
Perhaps we would get rid of Python dependency soon.
 configure.ac |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 799321e..67a7aa9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -268,6 +268,16 @@ # Define NO_SYMLINK_HEAD if you never wa
 # Enable it on Windows.  By default, symrefs are still used.
 #
 # Define WITH_OWN_SUBPROCESS_PY if you want to use with python 2.3.
+AC_CACHE_CHECK(for subprocess.py,
+ ac_cv_python_has_subprocess_py,
+[if $PYTHON_PATH -c 'import subprocess' 2>/dev/null; then
+	ac_cv_python_has_subprocess_py=yes
+else
+	ac_cv_python_has_subprocess_py=no
+fi])
+if test $ac_cv_python_has_subprocess_py != yes; then
+	GIT_CONF_APPEND_LINE([WITH_OWN_SUBPROCESS_PY=YesPlease])
+fi
 #
 # Define NO_ACCURATE_DIFF if your diff program at least sometimes misses
 # a missing newline at the end of the file.
-- 
1.4.1.1
Previous: Shawn PearceNext: Jakub Narebski
Message 18 of 19 in “Some autoconf patches”
  1. 0/5 Some autoconf patchesJakub Narebski, Sep 4, 2006
  2. 1/5 autoconf: Add some commented out variables to config.mak.inJakub Narebski, Sep 4, 2006
  3. 2/5 autoconf: Add -liconv to LIBS when NEEDS_LIBICONVJakub Narebski, Sep 4, 2006
  4. Jonas FonsecaSep 5, 2006
  5. autoconf: Fix copy'n'paste errorJakub Narebski, Sep 5, 2006
  6. Junio C HamanoSep 5, 2006
  7. 3/5 autoconf: Preliminary check for working mmapJakub Narebski, Sep 4, 2006
  8. Junio C HamanoSep 4, 2006
  9. Jakub NarebskiSep 4, 2006
  10. Shawn PearceSep 5, 2006
  11. Junio C HamanoSep 5, 2006
  12. Shawn PearceSep 5, 2006
  13. Junio C HamanoSep 5, 2006
  14. Shawn PearceSep 6, 2006
  15. Junio C HamanoSep 6, 2006
  16. Junio C HamanoSep 6, 2006
  17. Shawn PearceSep 7, 2006
  18. 4/5 autoconf: Check for subprocess.pyJakub Narebski, Sep 4, 2006
  19. 5/5 autoconf: Quote AC_CACHE_CHECK argumentsJakub Narebski, Sep 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.