List:Commits« Previous MessageNext Message »
From:Monty Taylor Date:October 27 2007 10:39am
Subject:Rev 211: Added --with-python option to select specific python interpreter. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge

------------------------------------------------------------
revno: 211
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Sat 2007-10-27 03:38:56 -0700
message:
  Added --with-python option to select specific python interpreter.
modified:
  acinclude.m4                   acinclude.m4-20070228020914-u2pk759xg7thauwf-8
  configure.in                   configure.in-20070228020914-u2pk759xg7thauwf-13
=== modified file 'acinclude.m4'
--- a/acinclude.m4	2007-10-24 04:03:28 +0000
+++ b/acinclude.m4	2007-10-27 10:38:56 +0000
@@ -35,6 +35,29 @@
 AC_SUBST(PHP_EXTDIR)
 ])
 
+AC_DEFUN([WITH_PYTHON], [
+
+  AC_ARG_WITH(python, [  --with-python=PATH path to python binary],
+  with_python=$withval, withval="python")
+
+PYTHON=$withval
+
+AM_PATH_PYTHON([2.4],,[with_python="no"])
+
+echo "After AM PATH PYTHON"
+
+#if test "x$with_python" != "xno" ; then
+#  SWIG_PYTHON
+#echo "pythonexists = $pythonexists"
+#  if test "$pythonexists" = "no" ; then
+#    with_python="no"
+#  fi
+#fi
+
+
+])
+
+
 AC_DEFUN([WITH_PERL], [
 
   AC_ARG_WITH(perl, [  --with-perl=PATH	path to perl binary],

=== modified file 'configure.in'
--- a/configure.in	2007-10-27 09:26:42 +0000
+++ b/configure.in	2007-10-27 10:38:56 +0000
@@ -39,14 +39,6 @@
 AC_CHECK_PROGS(MONO,mono)
 AC_CHECK_PROGS(MCS,gmcs)
 
-AM_PATH_PYTHON([2.4],,[with_python="no"])
-if test "x$with_python" != "xno" ; then 
-  SWIG_PYTHON
-echo "pythonexists = $pythonexists"
-  if test "$pythonexists" = "no" ; then 
-    with_python="no"
-  fi
-fi
 AC_CANONICAL_HOST
 ACX_PTHREAD()
 
@@ -56,6 +48,8 @@
 
 WITH_JAVA()
 
+WITH_PYTHON()
+
 dnl Check for lua
 AC_MSG_CHECKING(for lua)
 AC_ARG_WITH(lua, AC_HELP_STRING([--with-lua],[lua]),

Thread
Rev 211: Added --with-python option to select specific python interpreter. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmergeMonty Taylor27 Oct