AUDIT: r22279 - gnucash/trunk - Bug 680671: configure should check for the python-devel package if called with --enable-python

Frank H. Ellenberger fell at code.gnucash.org
Fri Aug 3 22:01:41 EDT 2012


Author: fell
Date: 2012-08-03 22:01:40 -0400 (Fri, 03 Aug 2012)
New Revision: 22279
Trac: http://svn.gnucash.org/trac/changeset/22279

Modified:
   gnucash/trunk/configure.ac
Log:
Bug 680671: configure should check for the python-devel package if called with --enable-python 
https://bugzilla.gnome.org/show_bug.cgi?id=680671
BP

Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac	2012-08-02 13:31:57 UTC (rev 22278)
+++ gnucash/trunk/configure.ac	2012-08-04 02:01:40 UTC (rev 22279)
@@ -1072,6 +1072,12 @@
   )
 if test x${enable_python} = "xtrue"
 then
+  # Check for Python
+  # We require python-2.4 because our implementation doesn't run
+  # with earlier version anymore. 
+  PKG_CHECK_MODULES(PYTHON, python >= 2.4 , , [
+    AC_MSG_ERROR([Could not find python >= 2.4. If you use --enable-python, you MUST have python installed!])
+  ])
   AM_PATH_PYTHON(2.4)
   AC_PYTHON_DEVEL(>= '2.4')
   SWIG_PYTHON



More information about the gnucash-changes mailing list