summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-11-05 20:31:53 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-11-05 20:31:53 +0000
commitc125061215f025f21109954b94538d68ef893f97 (patch)
tree10fd2b8dfdb058f2a2f0f5c7ff528dfac44da66d /cpp
parent62ce20fd64a7a347555a38390fd46f15d16b89f1 (diff)
downloadqpid-python-c125061215f025f21109954b94538d68ef893f97.tar.gz
NO-JIRA: Stop linking libpython with everything when doing autoconf builds for
versions of python that do not have a pkg-config file. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1405939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac
index 4d39b87879..e7e8053f43 100644
--- a/cpp/configure.ac
+++ b/cpp/configure.ac
@@ -210,10 +210,11 @@ AS_IF([test -n "$PYTHON"], [
# location
AC_MSG_WARN([Didn't find Python 2.7 developer libs - looking for older version])
PYTHON_INC=$($PYTHON -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_inc()')
- AC_CHECK_LIB([python$PYTHON_VERSION],[Py_Initialize])
+ AC_CHECK_LIB([python$PYTHON_VERSION],[Py_Initialize],[
+ PYTHON_LIBS="-lpython$PYTHON_VERSION"
+ ])
AC_CHECK_FILE(["$PYTHON_INC/Python.h"],[
PYTHON_CFLAGS="-I$PYTHON_INC"
- PYTHON_LIBS="-lpython$PYTHON_VERSION"
have_python_dev=yes
],[
if test yes = "$with_python" ; then