Configure won't accept python on Debian Wheezy

Debian Wheezy uses python2.pc instead of python.pc. Check both.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22297 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2012-08-09 22:44:53 +00:00
parent f37c6fab09
commit e925c5c310

View File

@ -1072,11 +1072,14 @@ AC_ARG_ENABLE(python,
)
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')