[Libreoffice-commits] .: Branch 'libreoffice-3-4' - configure.in
Michael Meeks
mmeeks at kemper.freedesktop.org
Mon Apr 4 07:27:21 PDT 2011
configure.in | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 6c3539d8e1dbad13264b862e1344e3c3a8690dec
Author: Andreas Becker <atayoohoo at googlemail.com>
Date: Mon Apr 4 15:16:30 2011 +0100
python 3 compatibility fixes
diff --git a/configure.in b/configure.in
index 1a5b972..a49bd88 100755
--- a/configure.in
+++ b/configure.in
@@ -4117,11 +4117,12 @@ elif test -n "$with_system_python" -o -n "$with_system_libs" && \
AC_MSG_RESULT([external])
AM_PATH_PYTHON([2.2])
- python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"`
- python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"`
- python_libs=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS');"`
+ python_include=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('INCLUDEPY'));"`
+ python_version=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('VERSION'));"`
+ python_libs=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBS'));"`
+ python_ldlib=`$PYTHON -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBDIR') + '/' + distutils.sysconfig.get_config_var('LDLIBRARY'));"`
PYTHON_CFLAGS="-I$python_include"
- PYTHON_LIBS="-lpython$python_version $python_libs"
+ PYTHON_LIBS="$python_ldlib $python_libs"
fi
if test "$with_system_python" = "yes" ; then
SYSTEM_PYTHON=YES
More information about the Libreoffice-commits
mailing list