r22299 - gnucash/branches/2.4 - [r22297] Configure won't accept python on Debian Wheezy
John Ralls
jralls at code.gnucash.org
Fri Aug 10 01:31:21 EDT 2012
Author: jralls
Date: 2012-08-10 01:31:21 -0400 (Fri, 10 Aug 2012)
New Revision: 22299
Trac: http://svn.gnucash.org/trac/changeset/22299
Modified:
gnucash/branches/2.4/configure.ac
Log:
[r22297] Configure won't accept python on Debian Wheezy
Debian Wheezy uses python2.pc instead of python.pc. Check both.
Modified: gnucash/branches/2.4/configure.ac
===================================================================
--- gnucash/branches/2.4/configure.ac 2012-08-09 22:45:04 UTC (rev 22298)
+++ gnucash/branches/2.4/configure.ac 2012-08-10 05:31:21 UTC (rev 22299)
@@ -1188,11 +1188,14 @@
)
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.
+ # Check for Python. We require python-2.4 because our implementation
+ # doesn't run with earlier version anymore. Building Python from
+ # source creates python.pc, Debian installs python2.pc, and Fedora
+ # 17 makes both.
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!])
+ PKG_CHECK_MODULES(PYTHON, python2 >= 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')
More information about the gnucash-changes
mailing list